在WTK中运行一个在开发环境中成功的程序出现问题
我是eclipse和Wtk22进行开发一个访问Servlet的小程序
程序好简单只是通过网络进行查询
在eclipse中进行运行时成功查询出结果,一切正常。
我把程序正确打包后,放在WTK中进行运行(已经进入了手机界面,看到了程序)
运行时在DOS的界面出了一大串字符串,但我要的结果没有出现在手机界面中。
求救各位高手,为什么运行不了呢?
在Dos中出显的错如下:
c:\wtk22\bin\emulator.exe -Xjam
Running with storage root DefaultColorPhone
Execution completed.
185492 bytecodes executed
28 thread switches
741 classes in the system (including system classes)
1328 dynamic objects allocated (62776 bytes)
1 garbage collections (0 bytes collected)
Error verifying method MobileCC startApp()V
Approximate bytecode offset 4: Inconsistent or missing stackmap at target
Method............: 1016db58 'com/sun/midp/midlet/MIDletState.createMIDlet (stat
ic) '
Stack Chunk.......: f14af4
Frame Pointer.....: f14bdc
Current IP........: 101f1715 = 101f1707 + offset 14
Previous Frame....: f14ba4
Previous IP.......: 101d42d4 (offset 52)
Frame size........: 7 (1 arguments, 6 local variables)
Argument[0].......: f11fa8
Local[1]..........: f89674
Local[2]..........: 101d42d1
Local[3]..........: f1442c
Local[4]..........: 10183d40
Local[5]..........: f895c4
Local[6]..........: 0
Operand[1]........: f89a44
Method............: 1015a558 'com/sun/midp/midlet/Scheduler.schedule (virtual) '
Stack Chunk.......: f14af4
Frame Pointer.....: f14ba4
Current IP........: 101d42d4 = 101d42a0 + offset 52
Previous Frame....: f14b70
Previous IP.......: 10212682 (offset 141)
Frame size........: 7 (2 arguments, 5 local variables)
Argument[0].......: f14508
Argument[1].......: f13bf4
Local[2]..........: 0
Local[3]..........: f89640
Local[4]..........: 1021267e
Local[5]..........: f89654
Local[6]..........: 1015a478
Operand[1]........: f14508
Method............: 10182484 'com/sun/midp/main/CommandProcessor.run (static) '
Stack Chunk.......: f14af4
Frame Pointer.....: f14b70
Current IP........: 10212682 = 102125f5 + offset 141
Previous Frame....: f14b48
Previous IP.......: 102124ba (offset 49)
Frame size........: 4 (1 arguments, 3 local variables)
Argument[0].......: f149b0
Local[1]..........: f13bf4
Local[2]..........: 0
Local[3]..........: f89628
Method............: 10182444 'com/sun/midp/main/CommandProcessor.dispatch (stati
c) '
Stack Chunk.......: f14af4
Frame Pointer.....: f14b48
Current IP........: 102124ba = 10212489 + offset 49
Previous Frame....: f14b28
Previous IP.......: 10212465 (offset 27)
Frame size........: 2 (1 arguments, 1 local variables)
Argument[0].......: f149b0
Local[1]..........: 5
Method............: 10182424 'com/sun/midp/main/CommandProcessor.perform (static
) '
Stack Chunk.......: f14af4
Frame Pointer.....: f14b28
Current IP........: 10212465 = 1021244a + offset 27
Previous Frame....: f14b08
Previous IP.......: 101de733 (offset 171)
Frame size........: 2 (1 arguments, 1 local variables)
Argument[0].......: f149b0
Local[1]..........: f895d8
Method............: 101621ac 'com/sun/midp/main/Main.main (static) '
Stack Chunk.......: f14af4
Frame Pointer.....: f14b08
Current IP........: 101de733 = 101de688 + offset 171
Previous Frame....: 0
Previous IP.......: 1
Frame size........: 3 (1 arguments, 2 local variables)
Argument[0].......: f14de0
Local[1]..........: f149b0
Local[2]..........: f1430c
VM status:
Instruction pointer.: 101f1715 (offset within invoking method: 14)
Next instruction....: 0x4c
Frame pointer.......: f14bdc
Local pointer.......: f14bc0
Stack size..........: 128; sp: f14bf4; ranges: f14afc-f14cfc;
Contents of the current stack frame:
f14bc0: f11fa8 (lp)
f14bc4: f89674
f14bc8: 101d42d1
f14bcc: f1442c
f14bd0: 10183d40
f14bd4: f895c4
f14bd8: 0
f14bdc: f14ba4 (fp)
f14be0: 101d42d4
f14be4: f14bbc
f14be8: 1016db58
f14bec: f14af4
f14bf0: 0 (end of frame)
f14bf4: f89a44 (sp)
Execution stack contains 252 items:
f14de0
f149b0
f1430c
0
1
f895c8
101621ac
f14af4
0
f149b0
f895d8
f14b08
101de733
f14b1c
10182424
f14af4
0
f149b0
5
f14b28
10212465
f14b3c
10182444
f14af4
0
f149b0
f13bf4
0
f89628
f14b48
102124ba
f14b5c
10182484
f14af4
0
f14508
f13bf4
0
f89640
1021267e
f89654
1015a478
f14b70
10212682
f14b84
1015a558
f14af4
0
f14508
f11fa8
f89674
101d42d1
f1442c
10183d40
f895c4
0
f14ba4
101d42d4
f14bbc
1016db58
f14af4
0
f89a44
Execution completed.
138772 bytecodes executed
11 thread switches
747 classes in the system (including system classes)
1187 dynamic objects allocated (52080 bytes)
ALERT: java/lang/VerifyError: MobileCC.
3 garbage collections (31860 bytes collected)
Execution completed.
138772 bytecodes executed
11 thread switches
747 classes in the system (including system classes)
1187 dynamic objects allocated (52080 bytes)
3 garbage collections (31860 bytes collected)
[解决办法]
没有预校验
发布的jar包需要预校验才能运行