Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The probability that your application is actually crashing the Java Virtual Machine bytecode interpreter thread and terminating the whole native process is very small.</p> <p>It has happened before but you need to eliminate several other potential issues before being convinced of an actual crash.</p> <p>It is more likely that either:</p> <ul> <li>Your MIDlet is not created or not started because the MIDP runtime decides it is not correct.<br> or</li> <li>Your MIDlet simply throws an exception that you don't catch, which can make it look like it was brutally terminated.</li> </ul> <p>Since the MIDlet installer is supposed to prevent you from installing a bad MIDlet, the uncaught exception issue is more likely.</p> <p>How to find an uncaught exception:</p> <ul> <li>Start with the simplest HelloWorld MIDlet, using a <code>Form</code> so you can easily insert more <code>StringItem</code>s at the top of the screen.</li> <li>Create and start a new <code>Thread</code> in <code>MIDlet.startApp()</code></li> <li>In your override of <code>Thread.run()</code>, add a <code>try{}catch(Throwable){}</code> block.</li> <li>Inside that block, do whatever your original MIDlet did.</li> <li>Use the form as your standard output for debugging.</li> </ul> <p>You can use Form logging to make sure you don't enter an infinite loop, to display exception classes and messages, to flag logical milestones, to display variable values...</p> <p>That's the first step to figuring out what is going on.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload