Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Runtime exception while developing J2ME mobile application with aspectJ

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Runtime exception while developing J2ME mobile application with aspectJ

    Iam trying to develop J2ME mobile application with aspectJ , there is no problem at the compilation
    time , but the problem occured at the runtime ,and the Emulator was exited.
    can any one tell why this exception occured?

    C:\WTK25\bin\emulator.exe -classpath "C:\Documents and Settings\yousef jawwad\jbproject\AspectJ\classes;" -Xdevice:defaultColorPhone -Xdescriptor:"C:\Documents and Settings\yousef jawwad\jbproject\AspectJ\jad-temp\J2ME.jad"
    Running with storage root DefaultColorPhone
    Running with locale: Arabic_Saudi Arabia.1256

    Error verifying method aspectj/J2ME startApp()V
    Approximate bytecode offset 0: Inconsistent or missing stackmap at target
    ALERT: java/lang/VerifyError: aspectj/J2ME.

    Method............: 10221664 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'
    Stack Chunk.......: 22700ac
    Frame Pointer.....: 2270104
    Current IP........: 10327513 = 103274f6 + offset 29
    Previous Frame....: 22700cc
    Previous IP.......: 103bb579 (offset 22)
    Frame size........: 7 (1 arguments, 6 local variables)
    Argument[0].......: 2270888
    Local[1]..........: 0
    Local[2]..........: 23f0d38
    Local[3]..........: 227fb84
    Local[4]..........: 23f0d4c
    Local[5]..........: 10263184
    Local[6]..........: 23f0d18
    Operand[1]........: 246f800
    Method............: 10283b04 'com/sun/midp/midlet/Selector.run (virtual)'
    Stack Chunk.......: 22700ac
    Frame Pointer.....: 22700cc
    Current IP........: 103bb579 = 103bb563 + offset 22
    Previous Frame....: 0
    Previous IP.......: 1
    Frame size........: 6 (1 arguments, 5 local variables)
    Argument[0].......: 2270a14
    Local[1]..........: 227fc60
    Local[2]..........: 2270888
    Local[3]..........: 0
    Local[4]..........: 0
    Local[5]..........: 0
    Operand[1]........: 227fc60
    VM status:
    Instruction pointer.: 10327513 (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: 2270888 (lp)
    22700ec: 0
    22700f0: 23f0d38
    22700f4: 227fb84
    22700f8: 23f0d4c
    22700fc: 10263184
    2270100: 23f0d18
    2270104: 22700cc (fp)
    2270108: 103bb579
    227010c: 22700e4
    2270110: 10221664
    2270114: 22700ac
    2270118: 0 (end of frame)
    227011c: 246f800 (sp)
    Execution stack contains 108 items:
    2270a14
    227fc60
    2270888
    0
    0
    0
    0
    1
    23f0d1c
    10283b04
    22700ac
    0
    227fc60
    2270888
    0
    23f0d38
    227fb84
    23f0d4c
    10263184
    23f0d18
    22700cc
    103bb579
    22700e4
    10221664
    22700ac
    0
    246f800
    Execution completed.
    3366869 bytecodes executed
    102 thread switches
    1648 classes in the system (including system classes)
    17413 dynamic objects allocated (520060 bytes)
    2 garbage collections (452380 bytes collected)
    Execution completed.
    3366869 bytecodes executed
    102 thread switches
    1648 classes in the system (including system classes)
    17413 dynamic objects allocated (520060 bytes)
    2 garbage collections (452380 bytes collected)



  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: J2ME with aspectJ

    Hello yousef atya and welcome to the Java Programming Forums

    Its hard to say what the error is without seeing the code.

    What emulator are you using?
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. #3
    Junior Member
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: J2ME with aspectJ

    The solution for most of the Java related errors can be found at this site: Java errors and solutions.

  4. The Following User Says Thank You to gluk For This Useful Post:

    JavaPF (April 29th, 2009)

  5. #4
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: J2ME with aspectJ

    Good link gluk, I've never seen this site before. Thanks.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. Database synchronization from RMS with MySQL in Online mode
    By jeremyraj in forum Java ME (Mobile Edition)
    Replies: 1
    Last Post: January 24th, 2011, 08:08 AM
  2. Sending and Receiving mail using J2ME without server
    By chals in forum Java ME (Mobile Edition)
    Replies: 5
    Last Post: June 2nd, 2009, 09:59 AM