Skip to main content

SecurityException: MIDletSuite with more than one midlet

No replies
bmike
Offline
Joined: 2008-08-08
Points: 0

Hello,
I have found one problem using phoneME feature MR2. When starting a MIDletSuite that contains more than one class which extend MIDlet I get a SecurityException. The Exception is thrown in MIDletStateHandler.newMIDletPeer. newMidletPeer is set to null (newMidletPeer = null;) at the end of this method. In case the MIDlet constructor is then called for the next class derived from MIDlet the exception is thrown because newMidletPeer is null.

This happens when using JMUnit (http://sourceforge.net/projects/jmunit/) where TestCase and TestSuite are both derived from Assertion which extends MIDlet.

Is there any particular reason for this in phoneME? Or is it intended to avoid that the MIDlet constructor is called more than once?

I would appreciate it very much if someone could give me more information on this. Thanks in advance.

Mike