×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    2

    CODE DOESN't WORK ON NOKIA 6600...ANY SUGGESTIONS?

    Hello, I have built a 2-D game using NetBeand 4.0. In the project properties of NetBeans I have set MIDP 2.0 and CLDC 1.0. The code works fine in the NetBeans emulator and a Nokia S60 emulator that I have downloaded. But it doesn't work in my Nokia 6600 phone that I recently bought... The code doesn't work in JBuilder and WTK22 that I just tried to run it. I have pasted the error messages in the end of my message

    There is a main menu in the beginning of the program, which works on the phone, but once you select to play the game from the menu, the screen only for a second changes and then returns to the main menu screen. The main menu is made using forms and the game using canvas, dows this have anything to do with this??

    I need to find how to work it immediately because it is for my dissertation...Any help is very much appreciated!!!Thanks very much for reading my letter!!

    Yorgos

    My JAD file is:

    MIDlet-1: Game,,Game
    MIDlet-Jar-Size: 76671
    MIDlet-Jar-URL: MobileGame.jar
    MIDlet-Name: MobileGame
    MIDlet-Vendor: Vendor
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-2.0

    The error message from JBuilder is:

    Running with storage root DefaultColorPhone

    Error verifying method mobilegame/Game WorldCreation()V

    Approximate bytecode offset 18: Inconsistent or missing stackmap at target

    ALERT: java/lang/VerifyError: mobilegame/Game.

    Method............: 1016db58 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'

    Stack Chunk.......: e000d4

    Frame Pointer.....: e0012c

    Current IP........: 101f1715 = 101f1707 + offset 14

    Previous Frame....: e000f4

    Previous IP.......: 10214d75 (offset 22)

    Frame size........: 7 (1 arguments, 6 local variables)

    Argument[0].......: e0088c

    Local[1]..........: 0

    Local[2]..........: e6260c

    Local[3]..........: e024f4

    Local[4]..........: e62620

    Local[5]..........: 1015a478

    Local[6]..........: e625ec

    Operand[1]........: e799f0



    Method............: 10184618 'com/sun/midp/midlet/Selector.run (virtual)'

    Stack Chunk.......: e000d4

    Frame Pointer.....: e000f4

    Current IP........: 10214d75 = 10214d5f + offset 22

    Previous Frame....: 0

    Previous IP.......: 1

    Frame size........: 6 (1 arguments, 5 local variables)

    Argument[0].......: e00a60

    Local[1]..........: e025d0

    Local[2]..........: e0088c

    Local[3]..........: 0

    Local[4]..........: 0

    Local[5]..........: 0

    Operand[1]........: e025d0



    VM status:

    Instruction pointer.: 101f1715 (offset within invoking method: 14)

    Next instruction....: 0x4c

    Frame pointer.......: e0012c

    Local pointer.......: e00110

    Stack size..........: 128; sp: e00144; ranges: e000dc-e002dc;

    Contents of the current stack frame:

    e00110: e0088c (lp)

    e00114: 0

    e00118: e6260c

    e0011c: e024f4

    e00120: e62620

    e00124: 1015a478

    e00128: e625ec

    e0012c: e000f4 (fp)

    e00130: 10214d75

    e00134: e0010c

    e00138: 1016db58

    e0013c: e000d4

    e00140: 0 (end of frame)

    e00144: e799f0 (sp)

    Execution stack contains 108 items:

    e00a60

    e025d0

    e0088c

    0

    0

    0

    0

    1

    e625f0

    10184618

    e000d4

    0

    e025d0

    e0088c

    0

    e6260c

    e024f4

    e62620

    1015a478

    e625ec

    e000f4

    10214d75

    e0010c

    1016db58

    e000d4

    0

    e799f0



    Execution completed.

    668755 bytecodes executed

    8 thread switches

    745 classes in the system (including system classes)

    3790 dynamic objects allocated (111672 bytes)

    9 garbage collections (97224 bytes collected)

    Execution completed.

    668755 bytecodes executed

    8 thread switches

    745 classes in the system (including system classes)

    3790 dynamic objects allocated (111672 bytes)

    9 garbage collections (97224 bytes collected)





    The error message from WTK22 is:

    Running with storage root DefaultColorPhone
    Method............: e771c8 'Game.<init> (virtual)'
    Stack Chunk.......: e000d4
    Frame Pointer.....: e00168
    Current IP........: e77011 = e7700c + offset 5
    Previous Frame....: e00148
    Previous IP.......: 101d4033 (offset 0)
    Frame size........: 1 (1 arguments, 0 local variables)
    Argument[0].......: e72cb4
    Operand[1]........: e72cb4

    Method............: 1015a374 'java/lang/Class.runCustomCode (static)'
    Stack Chunk.......: e000d4
    Frame Pointer.....: e00148
    Current IP........: 101d4033 = 101d4033 + offset 0
    Previous Frame....: e0012c
    Previous IP.......: 101f171a (offset 19)
    Frame size........: 0 (0 arguments, 0 local variables)
    Operand[1]........: 1006580a

    Method............: 1016db58 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'
    Stack Chunk.......: e000d4
    Frame Pointer.....: e0012c
    Current IP........: 101f171a = 101f1707 + offset 19
    Previous Frame....: e000f4
    Previous IP.......: 10214d75 (offset 22)
    Frame size........: 7 (1 arguments, 6 local variables)
    Argument[0].......: e00918
    Local[1]..........: e79a04
    Local[2]..........: e60640
    Local[3]..........: e02434
    Local[4]..........: e60654
    Local[5]..........: 1015a478
    Local[6]..........: e60620
    Operand[1]........: e72cb4

    Method............: 10184618 'com/sun/midp/midlet/Selector.run (virtual)'
    Stack Chunk.......: e000d4
    Frame Pointer.....: e000f4
    Current IP........: 10214d75 = 10214d5f + offset 22
    Previous Frame....: 0
    Previous IP.......: 1
    Frame size........: 6 (1 arguments, 5 local variables)
    Argument[0].......: e00aa4
    Local[1]..........: e02510
    Local[2]..........: e00918
    Local[3]..........: 0
    Local[4]..........: 0
    Local[5]..........: 0
    Operand[1]........: e02510

    VM status:
    Instruction pointer.: e77011 (offset within invoking method: 5)
    Next instruction....: 0xb2
    Frame pointer.......: e00168
    Local pointer.......: e00164
    Stack size..........: 128; sp: e00180; ranges: e000dc-e002dc;
    Contents of the current stack frame:
    e00164: e72cb4 (lp)
    e00168: e00148 (fp)
    e0016c: 101d4033
    e00170: e00160
    e00174: e771c8
    e00178: e000d4
    e0017c: 0 (end of frame)
    e00180: e72cb4 (sp)
    Execution stack contains 168 items:
    e00aa4
    e02510
    e00918
    0
    0
    0
    0
    1
    e60624
    10184618
    e000d4
    0
    e02510
    e00918
    e79a04
    e60640
    e02434
    e60654
    1015a478
    e60620
    e000f4
    10214d75
    e0010c
    1016db58
    e000d4
    0
    e72cb4
    e0012c
    101f171a
    e00144
    1015a374
    e000d4
    0
    1006580a
    e72cb4
    e00148
    101d4033
    ALERT: java/lang/NoSuchFieldError: No such field FRONT_MOVEMENT.[I.

    e00160
    e771c8
    e000d4
    0
    e72cb4

    Execution completed.
    716675 bytecodes executed
    11 thread switches
    749 classes in the system (including system classes)
    4372 dynamic objects allocated (131464 bytes)
    12 garbage collections (110696 bytes collected)
    Execution completed.
    716675 bytecodes executed
    11 thread switches
    749 classes in the system (including system classes)
    4372 dynamic objects allocated (131464 bytes)
    12 garbage collections (110696 bytes collected)
    Last edited by gg17; 2005-07-20 at 19:19.

  2. #2
    Registered User
    Join Date
    Jul 2005
    Posts
    2
    Doesn't anyone have a clue? It's very urgent.. thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×