PLS 62-W Restarting Loop | Telit Cinterion IoT Developer Community
March 8, 2019 - 7:42am, 1907 views
Hi,
I have appended to my .jad file the following to make it automatically start
Oracle-MIDlet-Autostart: 1
Oracle-MIDlet-Restart: true
Oracle-MIDlet-Restart-Count: 5
However this has had some pretty bad side-effects. There seems to be an error in my MIDlet. And it is going through a restart loop, which I am unsure how to stop. The error messages in the output are as follows :
Iniciando Teste, tamanho da memoria pre aplicacao: 22417696
java.lang.NullPointerException: 0
- usim.SIM.T_CCID(SIM.java:81)
- midlets.Main.startApp(Main.java:35)
- javax.microedition.midlet.MIDletTunnelImpl.callStartApp(), bci=1
- com.sun.midp.midlet.MIDletPeer.startApp(), bci=5
- com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=261
- com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=38
- com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=5
- com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=134
- com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26
MIDlet:midlets.Main abnormal exit
MIDlet:midlets.Main restart again
Iniciando Teste, tamanho da memoria pre aplicacao: 22355292
java.lang.NullPointerException: 0
- usim.SIM.T_CCID(SIM.java:81)
- midlets.Main.startApp(Main.java:35)
- javax.microedition.midlet.MIDletTunnelImpl.callStartApp(), bci=1
- com.sun.midp.midlet.MIDletPeer.startApp(), bci=5
- com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=261
- com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=38
- com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=5
- com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=134
- com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26
MIDlet:midlets.Main abnormal exit
MIDlet:midlets.Main restart limit reached -> reboot
^SYSLOADING
SYSTEM.OUT STARTED
MIDlet:midlets.Main autostart
MIDlet:com.cinterion.jrc.JRC_Midlet autostart
MIDlet:com.cinterion.jrc.JRC_Midlet exited
I was wondering if there was a way to remove the autostart on this so I can remove it. So far I have tried to access the USB but there is no response, and on the output ASC0 I cannot seem to enter anthing in fast enough to be able to stop it from rebooting.
Best regards
Hello,
According to these settings the application should be restarted 5 ***** and then the module should be rebooted in case of uncaught exception.
Unfortunately there is no hardware solution for this. You should try to deactivate autostart with AT^SCFG="Userware/Autostart","","0" command. The best way is to try to paste the command into a terminal program when the module starts (after ^SYSSTART). It should be easier on ASC0 then USB (if ASC0 is active and there is no system out redirected to this interface). After a few attempts this approach should succeed.
Best regards,
Bartłomiej
Thank you for your help.
Best regards.
Italo