Skip to main content

Problem converting to the phoneme…

11 replies [Last post]
irisbr
Offline
Joined: 2006-11-30

I have an application which runs OK on the WTK22 environment.
I now want to run it on phoneme.

I have downloaded the phoneme_feature-mr1-rel-bin-b04-win-09_nov_2006.zip then I run successfully the installMidlet.bat.
But when I run the runMidlet command I get the following exception:

java.lang.NullPointerException: 0
- com.sun.midp.chameleon.MIDPWindow.hideDisplayable(), bci=28
- javax.microedition.lcdui.Display..unknown.(), bci=88
- .unknown...unknown.(), bci=2
- .unknown..process(), bci=50
- com.sun.midp.events.EventQueue.run(), bci=107
- java.lang.Thread.run(), bci=5
REPORT: handleFatalError: uncaught exception in isolate 1 event processing thread
REPORT: The MIDlet suite could not be run.
The MIDlet suite could not be run.

The same application runs perfectly on the WTK22 environment.
Has anyone encounter with this issue? Are there any ideas?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aka1278
Offline
Joined: 2006-10-18

Hi Irisbr!

Thanks for providing new details about the issue.
Unfortunately, the problem is still a puzzle since there are still too many unknown facts about your MIDlets.
If it's possible (I mean if it's not proprietary commercial code), could your share the skeleton of the MIDlet your have troubles with?

WBR, Alexey.

irisbr
Offline
Joined: 2006-11-30

Sure . You can download the code from:
http://jcp.org/aboutJava/communityprocess/edr/jsr190/index.html (-->RI)

Thanks a lot!
Irisbr.

aka1278
Offline
Joined: 2006-10-18

Hi Irisbr!

Thanks for the sample.
Please wait a little while we are looking at it.

WBR, Alexey.

irisbr
Offline
Joined: 2006-11-30

Thanks a lot!!!

aka1278
Offline
Joined: 2006-10-18

Hi Irisbr!

I was able to run Guess MIDlet from JSR-190 RI using PhoneME MR1 win32 binaries.
I also built PhoneME MR1 for linux_qte_gcc from source files and again the MIDlet ran successfully.

To run this MIDlet please keep in the mind the following:

1) JSR-190 is supported neither WTK nor PhoneME (development of JSR-190 specification is still in progress):
Thus, you have to specify to VM where implementation of the JSR is located. The RI consists of two .jar files: jsr190api.jar and jsr190impl.jar.
You can use -classpathext flag of runMidlet to tell VM about additional class paths.

2) You have to install the MIDlet:
runMidlet's -classpathext flag mentioned above allows to run MIDlets without install.
However, manifest file inside Jar of this particular MIDlet doesn't contain all properties that present in the Jad file (ex., Exporter-Host).
Since these properties are requested by the MIDlet, this MIDlet have to be installed.

Finally, I would like to share with you the commands I used to run the MIDlet:

set JSR_190=c:\JSR190
cd c:\phoneme_feature-mr1-rel-bin-b04-win-09_nov_2006\win32_i386_mvm\bin\i386
runMidlet -classpathext %JSR_190%\jsr190api\jsr190api.jar;%JSR_190%\jsr190impl\jsr190impl.jar 1 com.amdocs.guess.Guess

, where 1 is suiteId of installed Guess MIDlet. If you have more then one installed MIDlet, suiteId of the MIDlet can be different.

Please let me know if it works for you.

WBR, Alexey.

irisbr
Offline
Joined: 2006-11-30

Hi Alexey,

Thanks a lot for your detailed answer!
I have installed the MIDlet and used your cmd but unfortunately got the following exception:
REPORT: Unexpected exception caught in MIDletSuiteLoader
Any ideas?

Thanks again.
Iris

asg024
Offline
Joined: 2006-11-17

hi, irisbr
What exact command you try to execute ? Could you start this MIDlet using usertest?

thanks
Sveta

irisbr
Offline
Joined: 2006-11-30

I have tried to run the cmd: usertest as well. I saw my application in the emulator and when I select it , i get the exception again :

java.lang.NullPointerException: 0
- org.exporter.ExporterManagerImpl.initialize(), bci=4
- org.exporter.ExporterManagerImpl.open(), bci=18
- com.Guess.startApp(), bci=72
- .unknown..callStartApp(), bci=1
- com.sun.midp.midlet.MIDletPeer..unknown.(), bci=5
- com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=222
- com.sun.midp.main.AppIsolateMIDletSuiteLoader.run(), bci=519
- com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=6
java.lang.NullPointerException: 0
- com.sun.midp.chameleon.MIDPWindow.hideDisplayable(), bci=28
- javax.microedition.lcdui.Display..unknown.(), bci=88
- .unknown...unknown.(), bci=2
- .unknown..process(), bci=50
- com.sun.midp.events.EventQueue.run(), bci=107
- java.lang.Thread.run(), bci=5
REPORT: handleFatalError: uncaught exception in isolate 2 event processing thread

asg024
Offline
Joined: 2006-11-17

irisbr,
Do you observe such problem only with particular MIDlet? Could you please give more details about this MIDlet? What displayable is used as a start one? Alert? Canvas? Is displayable changed while the MIDlet is starting up?

regards,
Sveta

irisbr
Offline
Joined: 2006-11-30

Hi Sveta,

I have tried to run another application (that runs OK on WTK22)using usertest and then launch - and got error 0:
java.lang.NullPointerException: 0
- org.exporter.ExporterManagerImpl.initialize(), bci=4
- org.exporter.ExporterManagerImpl.open(), bci=18
- com.maze.Maze.(), bci=140
- java.lang.Class.newInstance(), bci=0
- com.sun.midp.midlet.MIDletStateHandler..unknown.(), bci=119
- com.sun.midp.midlet.MIDletStateHandler..unknown.(), bci=7
- com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=23
- com.sun.midp.main.AppIsolateMIDletSuiteLoader.run(), bci=519
- com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=6

I am using Canvas for start up display.

Thanks for your help! Irisbr.

asg024
Offline
Joined: 2006-11-17

Irisbr
Did you catch only one exception? From the log you listed below I just see that NullPointerException exception happened in MIDlet code (org.exporter.ExporterManagerImpl.initialize() method).

Do you still see the exception com.sun.midp.chameleon.MIDPWindow.hideDisplayable()
you are mentioned in your previous message?

thanks,
Sveta