BGS5 OTAP Installation completed with result: 907 Invalid JAR | Thales IoT Developer Community
November 16, 2014 - 1:50am, 5084 views
Hi there,
I'm using a BGS5 hardware with my Java sofware. The thing is when I copy my Jad, Jar file to the BGS5 it runs OK with the autostart, but if i call AT^SJOTAP this is the result:
[OTAP] midlets stopped
[OTAP] PS Detach
[OTAP] Starting installation
[OTAP] Try to get http://******************/****/****.jad ...
[OTAP] Transfer finished.
[OTAP] Update of existing midlet
[OTAP] JAR file download
[OTAP] Try to get http://******************/****/****.jar ...
[OTAP] Transfer finished.
[OTAP] Installation completed with result: 907 Invalid JAR
[OTAP] No NotifyURL set. Not posting result.
[OTAP] DONE with status: Invalid JAR Type
[OTAP] operation failed
[OTAP] Reboot now
Obs: "http://******************/****/****" is to protect my http address...
Again, the jad and jar files over the server are the same running on the module. It download the jad/jar but return this 907 status.
Can you help me to solve this?
Thank you
I've found the solution... The problem was the mime type of my server located at /etc/mime.types
application/x-java-archive jar
should be
application/java-archive jar
Hi Steffano,
Good to hear that!
If you have anything else, don't hesitate to write...
Best regards,
Bartłomiej
Hi everyone, I followed all your (and [JavaCint] forum) instruction but still I can't
update my BGS5T terminal through OTAP. Please help!
Here the details:
Jad file :
MIDlet-1: Rpp, ,rpp.Rpp
MIDlet-Jar-Size: 171827
MIDlet-Jar-URL: http://***/***.jar
MIDlet-Name: Rpp
MIDlet-Vendor: meXage s.r.l.
MIDlet-Version: 4.0.1
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: IMP-NG
Oracle-MIDlet-Autostart: 1
Oracle-MIDlet-Restart: true
Oracle-MIDlet-Restart-Count: 1
curl http://***/rpp.jad -v
...
< HTTP/1.1 200 OK
< Content-Type: text/vnd.sun.j2me.app-descriptor
...
OTAP result:
[OTAP] Starting OTAP download operation
[OTAP] Stopping all midlets
[OTAP] midlets stopped
[OTAP] PS Detach
[OTAP] Starting installation
[OTAP] Try to get http://***rpp.jad ...
[OTAP] Redirecting to URL: http://193.76.212.142/
[OTAP] Transfer finished.
[OTAP] DONE with status: Invalid JAD Type
Hello,
The HTTP server must be set up to handle the correct MIME types for the .jar and .jad files. But it seems that you have already applied that.
For jad files, the MIME type should be set to text/vnd.sun.j2me.app-descriptor. For jar files, the MIME type should be set to application/java-archive.
Jad file seems OK. Have you tried to install and run the same application locally without OTAP?
I can see that there's a redirection on the server. I would make sure that that the MIME settings are done on the server where the redirection points. But it also seems to be OK according to your report.
For now I can't see a good starting point. Please provide the AT^SCFG? and ATI1 outputs together with the full OTAP trace. You could also try to download a jar file instead if jad to check if that would be possible.
Regards,
Bartłomiej
If you need help with programming gemalto BGS5, EHS6,ELS61, PLS61 you can hire us. We have completed lots of IoT projects with Gemalto and other devices.
Hello,
If you are able to correctly install the same MIDlet from the module's flash file system it is probably the configuration problem. Please double check your MIME settings on the server. Please also paste ATI1 and AT^SCFG? commands.
Regards,
Bartłomiej
Hello MCS,
It seems that you have deleted your question. So for now I assume it no longer valid.
BR,
Bartłomiej