Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User cstommijx's Avatar
    Join Date
    Jun 2006
    Posts
    21
    I am building a j2me application using the S60 SDK, 2nd Edition, Featuring Pack 3 and I received the following error when I attempted to run the app. in the S60 emulator.


    java.io.IOException
    - javax.microedition.lcdui.Image.createImage(), bci=28
    - package01.CreateEventGUI.createIMG(), bci=3
    - package01.CreateEventGUI.jbInit(), bci=22
    - package01.CreateEventGUI.<init>(), bci=152
    - package01.NokiaAPI.get_createEventGUI(), bci=12
    - package01.NokiaAPI.initialize(), bci=5
    - package01.NokiaAPI.<init>(), bci=5
    - java.lang.Class.newInstance(), bci=0
    - com.symbian.midp.runtime.MIDletExecutor$MIDletConstructorThread.run(), bci=56
    java.lang.NullPointerException
    - javax.microedition.lcdui.game.Sprite.<init>(), bci=3
    - package01.CreateEventGUI.createHeader(), bci=9
    - package01.CreateEventGUI.jbInit(), bci=26
    - package01.CreateEventGUI.<init>(), bci=152
    - package01.NokiaAPI.get_createEventGUI(), bci=12
    - package01.NokiaAPI.initialize(), bci=5
    - package01.NokiaAPI.<init>(), bci=5
    - java.lang.Class.newInstance(), bci=0
    - com.symbian.midp.runtime.MIDletExecutor$MIDletConstructorThread.run(), bci=56
    Uncaught exception: java.lang.RuntimeException: java.lang.NullPointerException
    - com.symbian.midp.runtime.MIDletExecutor$MIDletConstructorThread.run(), bci=183

  2. #2
    Registered User cstommijx's Avatar
    Join Date
    Jun 2006
    Posts
    21
    hey i found the error.

    i simply forgotten to copy over the images resource.

  3. #3
    Registered User happymobile's Avatar
    Join Date
    Oct 2006
    Posts
    4
    Hi cstommijx

    How do u slove it?? Erm i am having the following problems:

    java.lang.NullPointerException
    - ResourceManager.getResourceAsBytes(), bci=15
    - World.createObjects(), bci=325
    - World.<init>(), bci=1813
    - World.getInstance(), bci=10
    - ZTMIDlet.<init>(), bci=11
    - java.lang.Class.newInstance(), bci=0
    - com.symbian.midp.runtime.MIDletExecutor$MIDletConstructorThread.run(), bci=56

    which is a bit similar to urs, can u tell me where is the problem, pls, thank you!

  4. #4
    Super Contributor peterblazejewicz's Avatar
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699
    hi,

    she/he included resource files to be compiled into .jar to avoid runtime error while requesting images from .jar,
    make sure that your resources are already packed into jar (they should be for example in "res" folder while compiling/building midlet,

    regards,
    Peter

  5. #5
    Registered User happymobile's Avatar
    Join Date
    Oct 2006
    Posts
    4
    Hi,

    thanks for ur reply, but i have alr pack all the "res" files into the .jar file.
    But there is stil this problem, is there any other solutions??

Similar Threads

  1. S60 3rd Edition sdk emulator cannot be started up
    By ShirleyKing in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2009-03-11, 22:30
  2. SDK S60 3rd edition, not working with Visual Studio
    By shahzadamin in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2006-06-16, 10:12
  3. 新手求助:VC++6.0&SDK的安装问题
    By yinhh001 in forum Symbian
    Replies: 7
    Last Post: 2006-04-20, 11:07
  4. Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working
    By mattbee in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-10, 11:43
  5. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved