[EHS5] Eclipse debugging problems - Corrupted JAR | Telit Cinterion IoT Developer Community
July 25, 2018 - 4:07pm, 2204 views
Hello!
I'm working on a project using an Aplicom GPS module using the Cinterion EHS5 chip. My goal right now is to be able to get the on-device-debugging to work while running a simple Hello World program.
My problem is as follows: In Eclipse, I start my application as emulated Java ME MIDlet/JAR in debug mode. A proper connection to the device is established. This is what the console says:
Using USB port COM15.
Connecting to module...
Initializing module for debugging...
Establishing "IP connection for remote debugging of EHSx"...
Registering ip address "192.168.244.1" of remote debugging device...
Waiting for debug device registration of "IMP_NG_EHS5_REMOTE"...
Passing control to external device emulator...
Installing suite from: http://192.168.244.2:54921/Test.jad
Corrupted JAR, error while reading:
Several seconds later a window pops up saying:
Couldn't connect to virtual machine
Debugger launch time-out exceeded
I can ping to the device (192.168.244.1) without problems. Installing and running MIDlets on the device is also fine, I can use all AT commands via USB und receive the debug log via serial port.
In Eclipse, the device "IMP_NG_EHS5_REMOTE1" is configured as default.
I disconnect the terminal connection to the device while trying to start ODD.
The device is configured as follows:
ati
Cinterion
EHS5-E
REVISION 03.001
OK
at^scfg?
^SCFG: "Audio/Loop","0"
^SCFG: "Call/ECC","0"
^SCFG: "Call/Ecall/AckTimeout","5000"
^SCFG: "Call/Ecall/Callback","0"
^SCFG: "Call/Ecall/CallbackTimeout","43200000"
^SCFG: "Call/Ecall/Msd","0000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000"
^SCFG: "Call/Ecall/Pullmode","0"
^SCFG: "Call/Ecall/SessionTimeout","20000"
^SCFG: "Call/Ecall/StartTimeout","5000"
^SCFG: "Call/Speech/Codec","0"
^SCFG: "GPRS/AutoAttach","enabled"
^SCFG: "Gpio/mode/ASC1","std"
^SCFG: "Gpio/mode/DAI","gpio"
^SCFG: "Gpio/mode/DCD0","std"
^SCFG: "Gpio/mode/DSR0","std"
^SCFG: "Gpio/mode/DTR0","std"
^SCFG: "Gpio/mode/FSR","gpio"
^SCFG: "Gpio/mode/PULSE","gpio"
^SCFG: "Gpio/mode/PWM","gpio"
^SCFG: "Gpio/mode/RING0","gpio"
^SCFG: "Gpio/mode/SPI","rsv"
^SCFG: "Gpio/mode/SYNC","std"
^SCFG: "Ident/Manufacturer","Cinterion"
^SCFG: "Ident/Product","EHS5-E"
^SCFG: "MEShutdown/Fso","0"
^SCFG: "MEShutdown/sVsup/threshold","0","0"
^SCFG: "MEopMode/CFUN","0","1"
^SCFG: "MEopMode/Dormancy","0","0"
^SCFG: "MEopMode/SoR","on"
^SCFG: "Radio/Band","147"
^SCFG: "Radio/Mtpl","0"
^SCFG: "Radio/OutputPowerReduction","4"
^SCFG: "Serial/Interface/Allocation","1","1"
^SCFG: "Serial/USB/DDD","0","0","0409","1E2D","0058","Cinterion Wireless Modules
","EHx",""
^SCFG: "Tcp/IRT","3"
^SCFG: "Tcp/MR","10"
^SCFG: "Tcp/OT","6000"
^SCFG: "Tcp/WithURCs","on"
^SCFG: "Trace/Syslog/OTAP","0"
^SCFG: "URC/Ringline","local"
^SCFG: "URC/Ringline/ActiveTime","2"
^SCFG: "Userware/Autostart","1"
^SCFG: "Userware/Autostart/Delay","100"
^SCFG: "Userware/DebugInterface","192.168.244.1","192.168.244.2","0"
^SCFG: "Userware/DebugMode","on"
^SCFG: "Userware/Passwd",
^SCFG: "Userware/Stdout","asc0",,,,"off"
^SCFG: "Userware/Watchdog","1"
OK
I am running Windows 7. I use the latest version of Eclipse Photon and I installed the Gemalto SDK from the CD according to instructions.
What could be the reason for the "Corrupted JAR, error while reading:" error? I would be very happy if someone could point me towards the right direction.
Regards,
Lucas
Hello,
I have probably not seen this corrupted jar message yet. This might be a problem with the firewall but you should rather get 'JAD server not found' message.
As the process gets to downloading the MIDlets to the module it seems that most of the basic configuration problems are not the case here. I also can't see anything bad in SCFG output.
Maybe the Eclipse version is somehow a problem - I'd start from the version provided with the Gemalto SDK as it was tested and proved to be compatible. If that will work you can try newer versions. Or maybe some anti-virus software is blocking this jar and causing this corrupted jar message.
If you have tried to copy this MIDlet to the module and run we can probably exclude the project configuration. Or maybe you are using an obfuscator.
Best regards,
Bartłomiej
Hello Bartłomiej, thanks for your help.
I have found that the problem was indeed the Eclipse version. I installed Eclipse Juno which was provided with the SDK and it works perfectly now.
Thanks again!
Best regards,
Lucas