when running my j2me application in eclipse im getting the following run time error stack. can you please tell me why is that? this happens when im loading the midlets in the application. the emulator exits at this point. I created a Manifest.mf file and created a jar file including the manifest in it. Then used the jad file to run the application. But the midlets run when deployed and run in the Wireless ToolKit 2.5.2.
Error verifying method MediaMIDlet startApp()V
Approximate bytecode offset 3: Inconsistent or missing stackmap at target
Method............: 10233084 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'
Stack Chunk.......: 22700ac
Frame Pointer.....: 2270104
Current IP........: 1033a48b = 1033a46e + offset 29
Previous Frame....: 22700cc
Previous IP.......: 103ce331 (offset 22)
Frame size........: 7 (1 arguments, 6 local variables)
Argument[0].......: 22709fc
Local[1]..........: 0
Local[2]..........: 23eb59c
Local[3]..........: 228064c
Local[4]..........: 23eb5b0
Local[5]..........: 10274b20
Local[6]..........: 23eb57c
Operand[1]........: 246f80c
Method............: 10295954 'com/sun/midp/midlet/Selector.run (virtual)'
Stack Chunk.......: 22700ac
Frame Pointer.....: 22700cc
Current IP........: 103ce331 = 103ce31b + offset 22
Previous Frame....: 0
Previous IP.......: 1
Frame size........: 6 (1 arguments, 5 local variables)
Argument[0].......: 2270ba4
Local[1]..........: 2280728
Local[2]..........: 22709fc
Local[3]..........: 0
Local[4]..........: 0
Local[5]..........: 0
Operand[1]........: 2280728
VM status:
Instruction pointer.: 1033a48b (offset within invoking method: 29)
Next instruction....: 0x4c
Frame pointer.......: 2270104
Local pointer.......: 22700e8
Stack size..........: 128; sp: 227011c; ranges: 22700b4-22702b4;
Contents of the current stack frame:
22700e8: 22709fc (lp)
22700ec: 0
22700f0: 23eb59c
22700f4: 228064c
22700f8: 23eb5b0
22700fc: 10274b20
2270100: 23eb57c
2270104: 22700cc (fp)
2270108: 103ce331
227010c: 22700e4
2270110: 10233084
2270114: 22700ac
2270118: 0 (end of frame)
227011c: 246f80c (sp)
Execution stack contains 108 items:
2270ba4
ALERT: java/lang/VerifyError: MediaMIDlet.
2280728
22709fc
0
0
0
0
1
23eb580
10295954
22700ac
0
2280728
22709fc
0
23eb59c
228064c
23eb5b0
10274b20
23eb57c
22700cc
103ce331
22700e4
10233084
22700ac
0
246f80c
Execution completed.
3558357 bytecodes executed
144 thread switches
1669 classes in the system (including system classes)
18695 dynamic objects allocated (561732 bytes)
3 garbage collections (484200 bytes collected)
Execution completed.
3558357 bytecodes executed
144 thread switches
1669 classes in the system (including system classes)
18695 dynamic objects allocated (561732 bytes)
3 garbage collections (484200 bytes collected)
ALERT: java/lang/VerifyError: MediaMIDlet.
The code inside startapp() looks like this.
public void startApp() {
if ((playerGUI != null) && restartOnResume) {
playerGUI.playSound();
}
restartOnResume = false;
}
Regards
Saatvi S.