Skip to main content

Application Error: While installing the build on SE W910

5 replies [Last post]
jayshil
Offline
Joined: 2010-08-13

Hi,

I found some weird problem, after installing the application. On starting the app on SONY W910 it gives "Application error".

While using older version of LWUIT it worked, I am not really sure which version of LWUIT was being used so cant test the subsequent revisions.

Anyone else found similar problem?

Regards,
J

P.S. i would be trying to form a sample app and try it on SONY. To make sure its not my application that's causing the error.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jayshil
Offline
Joined: 2010-08-13

Have added a comment due to which i get the below exception.

Exception caught in main:
java.lang.Error: Static initializer: java/lang/NullPointerException
at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:163)
at com.sun.midp.midlet.Scheduler.schedule(Scheduler.java:305)
at com.sun.midp.main.CommandProcessor.run(+73)
at com.sun.midp.main.CommandProcessor.dispatch(CommandProcessor.java:196)
at com.sun.midp.main.CommandProcessor.perform(CommandProcessor.java:160)
at com.sun.midp.main.Main.main(+154)

jayshil
Offline
Joined: 2010-08-13

Ok i checked it once again. The issue was i was initiating a class called as RecordMgr(which in turn implements RecordListener and throws RecordException) in my main method. Which was causing the problem.

I changed it from the main() to the startApp() method and it started working. Certainly, it is no way related to the LWUIT code base as far as i can say. But somehow the older version used to work fine with the RecordMgr object being initialized in the constructor.

So as far as I am concerned it was something to do with the main() method of the midlet. Anyways, it might help someone who might have come across the similar issue.

Marking the question as answered.

jayshil
Offline
Joined: 2010-08-13

Ok, the funny thing is the test build works. So it would be my application giving an error somewhere.

For me this thread is closed.

jayshil
Offline
Joined: 2010-08-13

Guys, i found some interesting stuff. May be someone can help.

Using the latest version of LWUIT my app gives a exception:
Exception caught in main:
java.lang.Error: Static initializer: java/lang/NullPointerException
at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:163)
at com.sun.midp.midlet.Scheduler.schedule(Scheduler.java:305)
at com.sun.midp.main.CommandProcessor.run(+73)
at om.sun.midp.main.CommandProcessor.dispatch(CommandProcessor.java:196)
at com.sun.midp.main.CommandProcessor.perform(CommandProcessor.java:160)
at com.sun.midp.main.Main.main(+154)

However, with the older version it works fine.

I doubt its a problem of LWUIT because if i try making a fresh project it works fine.

So anyone has any ideas on the above exception, please do let me know.

Regards,
J

vprise
Offline
Joined: 2003-11-07

You have a build error probably compiling/preverifying against the old LWUIT while linking the new one.