Menu

#95 JAD file parsing problem MIDlet-X: ....

v2.x.x-SNAPSHOT
open
5
2009-03-13
2009-03-06
F. Kooman
No

Hi,

If you have this in your MIDlet:

MIDlet-1: ContactlessConnectionTestMIDlet,,ds.contactless.javame.tests
.ContactlessConnectionTestMIDlet

(it is wrapped on 72 chars)

this doesn't work if you try to open this JAD file with the emulator (NullPointerException)

error Message: Error starting MIDlet: Unable to create MIDlet, java.lang.NullPointerException java.lang.NullPointerException
org.microemu.app.Common.startMidlet(Common.java:417)
java.lang.NullPointerException
at org.microemu.app.Common.startMidlet(Common.java:410)
at org.microemu.app.Common.initMIDlet(Common.java:1039)
at org.microemu.app.Headless.main(Headless.java:120)
at org.microemu.app.Main.main(Main.java:1021)
destroyMIDletContext
org.microemu.app.Common.destroyMIDletContext(Common.java:187)

The problem seems to be located in: microemu-javase/src/main/java/org/microemu/util/JadProperties.java in the method "public Vector getMidletEntries()" as it doesn't deal with reading the Class Name split over multiple lines.

Discussion

  • Vlad Skarzhevskyy

    • assigned_to: nobody --> vlads
     

Log in to post a comment.