This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes LWUIT Resource problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "LWUIT Resource problem" Watch "LWUIT Resource problem" New topic
Author

LWUIT Resource problem

Juwonlo Ibigbami
Ranch Hand

Joined: Nov 03, 2006
Posts: 83
Hello all
I am using LWUIT and trying out the resource files to my theme i got the following mesage.
It was working before, but i didnt know what i did.

"java.lang.NullPointerException
at java.io.DataInputStream.read(DataInputStream.java:83)
at java.io.DataInputStream.readUnsignedShort(+4)
at java.io.DataInputStream.readShort(+4)
at com.sun.lwuit.util.Resources.openFile(Resources.java:134)
at com.sun.lwuit.util.Resources.<init>(Resources.java:114)
at com.sun.lwuit.util.Resources.open(Resources.java:449)
at com.telnet.HelloMidlet.startApp(HelloMidlet.java:30)
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)
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 com.sun.lwuit.impl.midp.GameCanvasImplementation.createImage(GameCanvasImplementation.java:584)
at com.sun.lwuit.Image.createImage(Image.java:428)
at hello.MyForm.<init>(MyForm.java:38)
at com.telnet.HelloMidlet.startApp(HelloMidlet.java:36)
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)
"

Can someone help me out please?

Juwonlo
 
 
subject: LWUIT Resource problem
 
Similar Threads
problem in setting size of image in mobile
Help with SecurityException in J2ME WTK 2.5.1?
ConnectionNotFoundException
How to develop Java ME application using LWUIT with Eclipse IDE?
IOException in Sun Java Wireless Toolkit