×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    8

    Problem with SNAP libraries

    I have a problem with SNAP Libraries when I deployed SnapMobileSample using Netbean IDE 6.0.1 and SNAP_Mobile_SDK-2_0. Here is the problem:

    1. When I add both SNAP libraries: sm-api.jar and sm-api-j2me-2.0-b1-release.jar, I got this result on the screen of Java Wireless Tookit:

    Commuinity build.sample.commui.Commuinity Exception: java.lang.ClassNotFoundException: build/samples/commui/Community


    And here is what Netbean shows:

    a) Running with Community
    Running in the identified_third_party security domain
    Unable to create MIDlet build.samples.commui.Community
    java.lang.ClassNotFoundException: build/samples/commui/Community
    at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:155)
    at com.sun.midp.midlet.Selector.run(Selector.java:151)

    b) Running MainApp
    Unable to create MIDlet build.samples.commui.MainApp
    java.lang.ClassNotFoundException: build/samples/commui/MainApp
    at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:155)
    at com.sun.midp.midlet.Selector.run(Selector.java:151)

    c) Running with CommUItest
    ResourceManager.getImage /fading_background.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.commui.Community.<clinit>(+16)
    at java.lang.Class.runCustomCode(+0)
    at samples.commui.CommUITest.startApp(+15)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    ResourceManager.getImage /overlay_background.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.commui.Community.<clinit>(+25)
    at java.lang.Class.runCustomCode(+0)
    at samples.commui.CommUITest.startApp(+15)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    ResourceManager.getImage /selected_section.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.commui.Community.<clinit>(+34)
    at java.lang.Class.runCustomCode(+0)
    at samples.commui.CommUITest.startApp(+15)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    ResourceManager.getImage /device_splash.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.commui.Community.<clinit>(+43)
    at java.lang.Class.runCustomCode(+0)
    at samples.commui.CommUITest.startApp(+15)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    CustomFont init Font1
    ResourceManager.getImage /Font1.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.ui.CustomFont$FontData.<init>(CustomFont.java:42)
    at samples.ui.CustomFont.<init>(CustomFont.java:108)
    at samples.ui.Component.<init>(Component.java:160)
    at samples.commui.BuddyList.<init>(BuddyList.java:50)
    at samples.commui.Community.<init>(Community.java:254)
    at samples.commui.CommUITest.startApp(CommUITest.java:41)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    startApp threw an Exception
    java.lang.NullPointerException
    java.lang.NullPointerException
    at samples.ui.CustomFont$FontData.<init>(CustomFont.java:43)
    at samples.ui.CustomFont.<init>(CustomFont.java:108)
    at samples.ui.Component.<init>(Component.java:160)
    at samples.commui.BuddyList.<init>(BuddyList.java:50)
    at samples.commui.Community.<init>(Community.java:254)
    at samples.commui.CommUITest.startApp(CommUITest.java:41)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    CustomFont init Font1
    ResourceManager.getImage /Font1.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.ui.CustomFont$FontData.<init>(CustomFont.java:42)
    at samples.ui.CustomFont.<init>(CustomFont.java:108)
    at samples.ui.Component.<init>(Component.java:160)
    at samples.commui.BuddyList.<init>(BuddyList.java:50)
    at samples.commui.Community.<init>(Community.java:254)
    at samples.commui.CommUITest.startApp(CommUITest.java:41)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    startApp threw an Exception
    java.lang.NullPointerException
    java.lang.NullPointerException
    at samples.ui.CustomFont$FontData.<init>(CustomFont.java:43)
    at samples.ui.CustomFont.<init>(CustomFont.java:108)
    at samples.ui.Component.<init>(Component.java:160)
    at samples.commui.BuddyList.<init>(BuddyList.java:50)
    at samples.commui.Community.<init>(Community.java:254)
    at samples.commui.CommUITest.startApp(CommUITest.java:41)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)

    2. When I try to run HelloMidlet with one of Snap Libraries (sm-api-j2me-2.0-b1-release.jar) there is no error. But when I run with both of them I received the same error result.

    Anyone knows how to solve this problem, please help me.
    Thanks

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    8

    Problem with SNAP Mobile - java.lang.ClassNotFoundException

    I have a problem with SNAP Libraries when I deployed SnapMobileSample using Netbean IDE 6.0.1 and SNAP_Mobile_SDK-2_0. Here is the problem:

    1. When I add both SNAP libraries: sm-api.jar and sm-api-j2me-2.0-b1-release.jar, I got this result on the screen of Java Wireless Tookit:

    Commuinity build.sample.commui.Commuinity Exception: java.lang.ClassNotFoundException: build/samples/commui/Community


    And here is what Netbean shows:

    a) Running with Community
    Running in the identified_third_party security domain
    Unable to create MIDlet build.samples.commui.Community
    java.lang.ClassNotFoundException: build/samples/commui/Community
    at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:155)
    at com.sun.midp.midlet.Selector.run(Selector.java:151)

    b) Running MainApp
    Unable to create MIDlet build.samples.commui.MainApp
    java.lang.ClassNotFoundException: build/samples/commui/MainApp
    at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:155)
    at com.sun.midp.midlet.Selector.run(Selector.java:151)

    c) Running with CommUItest
    ResourceManager.getImage /fading_background.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.commui.Community.<clinit>(+16)
    at java.lang.Class.runCustomCode(+0)
    at samples.commui.CommUITest.startApp(+15)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    ResourceManager.getImage /overlay_background.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.commui.Community.<clinit>(+25)
    at java.lang.Class.runCustomCode(+0)
    at samples.commui.CommUITest.startApp(+15)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    ResourceManager.getImage /selected_section.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.commui.Community.<clinit>(+34)
    at java.lang.Class.runCustomCode(+0)
    at samples.commui.CommUITest.startApp(+15)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    ResourceManager.getImage /device_splash.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.commui.Community.<clinit>(+43)
    at java.lang.Class.runCustomCode(+0)
    at samples.commui.CommUITest.startApp(+15)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    CustomFont init Font1
    ResourceManager.getImage /Font1.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.ui.CustomFont$FontData.<init>(CustomFont.java:42)
    at samples.ui.CustomFont.<init>(CustomFont.java:108)
    at samples.ui.Component.<init>(Component.java:160)
    at samples.commui.BuddyList.<init>(BuddyList.java:50)
    at samples.commui.Community.<init>(Community.java:254)
    at samples.commui.CommUITest.startApp(CommUITest.java:41)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    startApp threw an Exception
    java.lang.NullPointerException
    java.lang.NullPointerException
    at samples.ui.CustomFont$FontData.<init>(CustomFont.java:43)
    at samples.ui.CustomFont.<init>(CustomFont.java:108)
    at samples.ui.Component.<init>(Component.java:160)
    at samples.commui.BuddyList.<init>(BuddyList.java:50)
    at samples.commui.Community.<init>(Community.java:254)
    at samples.commui.CommUITest.startApp(CommUITest.java:41)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    CustomFont init Font1
    ResourceManager.getImage /Font1.png
    cache.get null
    java.io.IOException
    at javax.microedition.lcdui.ImmutableImage.getImageFromStream(Image.java:968)
    at javax.microedition.lcdui.ImmutableImage.<init>(Image.java:939)
    at javax.microedition.lcdui.Image.createImage(Image.java:313)
    at samples.ui.ResourceManager.getImage(ResourceManager.java:91)
    at samples.ui.CustomFont$FontData.<init>(CustomFont.java:42)
    at samples.ui.CustomFont.<init>(CustomFont.java:108)
    at samples.ui.Component.<init>(Component.java:160)
    at samples.commui.BuddyList.<init>(BuddyList.java:50)
    at samples.commui.Community.<init>(Community.java:254)
    at samples.commui.CommUITest.startApp(CommUITest.java:41)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    startApp threw an Exception
    java.lang.NullPointerException
    java.lang.NullPointerException
    at samples.ui.CustomFont$FontData.<init>(CustomFont.java:43)
    at samples.ui.CustomFont.<init>(CustomFont.java:108)
    at samples.ui.Component.<init>(Component.java:160)
    at samples.commui.BuddyList.<init>(BuddyList.java:50)
    at samples.commui.Community.<init>(Community.java:254)
    at samples.commui.CommUITest.startApp(CommUITest.java:41)
    at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)

    2. When I try to run HelloMidlet with one of Snap Libraries (sm-api-j2me-2.0-b1-release.jar) there is no error. But when I run with both of them I received the same error result.

    Anyone knows how to solve this problem, please help me.
    Thanks

  3. #3
    Nokia Developer Expert
    Join Date
    Apr 2008
    Posts
    14

    Re: Problem with SNAP libraries

    If you run the SDK 2.0 Hello examples, I recommend you to use the sm-api-j2me-2.0-b1-release.jar only, because this is the updated lib for the 2.0 examples.

    sm-api.jar, seems to me, is packaged within the Netbeans IDE, and should work with previous versions of Hello examples, if not updated. Also, it's like Windows' device drivers. The integreated ones are packaged within the Windows operating system. However, you can always use the different drivers directly provided by manufacturers. Though most likely coming from the same source, they may be still slightly different on some degree, let alone the major release version upgrades.

Similar Threads

  1. Problem compiling UI HelloCarbide Application
    By sbosio in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2007-11-15, 05:07
  2. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  3. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  5. 7210 Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-18, 12:36

Posting Permissions

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