Gemalto is now part of the Thales Group, find out more.

You are here

Strange error on file generation on EHS5 | Thales IoT Developer Community

May 26, 2021 - 6:59pm, 449 views

Hi everyone.

This is the first message I write on this community, so please be excuse me if I write the message on the wrong forum.

I am porting some Java code from some Gemalto TC65/TC65X board to the new version of EHS5 board. I have fix some small errors so far. However I am facing some strange error. At the beginning of my program I generate some files. Using TC65/TC65X boards theres is no problem, however on EHS5 came out the following error:

cannot write file
java.io.IOException: cannot write file
 - com.sun.io.j2me.file.DefaultFileHandler.write(), bci=0
 - com.sun.io.j2me.file.Protocol.writeBytes(), bci=13
 - com.sun.midp.io.BaseOutputStream.write(), bci=43
 - src.ai.c(), bci=115
 - src.p.a(), bci=76
 - src.main.<init>(), bci=1177
 - java.lang.Class.newInstance(), bci=0
 - com.sun.midp.main.CldcMIDletLoader.newInstance(), bci=69
 - com.sun.midp.midlet.MIDletStateHandler.createMIDlet(), bci=63
 - com.sun.midp.midlet.MIDletStateHandler.createAndRegisterMIDlet(), bci=17
 - com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=24
 - 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

This happens on the middle of the second file creation. I have used some delay code ("Thread.sleep(ms)") trying to avoid some problem on the speed of the file creation. The strange thing that I have found is that the error always happen after 5 minutos of the start of the file creation.

I think that the problem could be something about configuration. However I do not find the problem. Any idea? Thanks a lot!

PD: Some info

ati1
Cinterion
EHS6
REVISION 04.013
A-REVISION 01.000.06

AT^SJAM=5
^SJAM: "a:/JRC-1.60.02.jad","Java Remote Control MIDlet Suite","Cinterion","1.60.02",1,1