Skip to main content

Problem with update function on phoneMe mr4 rev 18144 for wm 5

3 replies [Last post]
acircus
Offline
Joined: 2009-01-17
Points: 0

When i want to update my app,i receive the message:java.lang.IllegalArgumentException: Must specify URL of .jad file
In jad file,i specified the URL of jar, but where to specify the URL of .jad?
I must specify that when i installed my app,i enter the http://xx.xxxx.com and on the screen appear the 2 files (jar and jad) and i installed the jar file
if i try to install wit http://xx.xxxx.com/xxx.jad an error occurred.
Please tell me how can i fix this.
Appreciate,
Alex

Message was edited by: acircus

Message was edited by: acircus

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davyp
Offline
Joined: 2007-01-03
Points: 0

Can you check what happens if you enter the url http://xx.xxxx.com and install the jad file
(instead of the jar file)?

To install a midlet you should indeed not enter a direct url to the jad. What happens is that
in the background the webpage is fetched and parsed to find download links to midlets.

Maybe it might also help to use absolute urls in the webpage (instead of relative urls) for
the references to the jad and jar files.

Davy

acircus
Offline
Joined: 2009-01-17
Points: 0

Now it wors if I install the jad file.The update function works now.
But I encountered another problem : I cannot make a socket connection.I receive the error:securityException:"application not authoriuzed to acces the restriced api"

I set up the permisions in my jad file:
MIDlet-Permissions:
javax.microedition.io.Connector.socket, javax.microedition.io.Connector.file.read, javax.microedition.io.Connector.file.write, javax.microedition.io.Connector.obex.server.tcp, javax.microedition.io.Connector.http, javax.microedition.io.Connector.serversocket, javax.microedition.io.Connector.obex.client.tcp

If i install the jar file it works but it tells me that my app doesn't have any description and it don't come from a trusted location and i want to avoid this by installing the jad file which is signed.

With the jad file i cannot set up the permisions from within the phoneMe settings menu(the settings window is empty) but with the jar i can set the level of the permisions ask (ask once,ask evertime,etc)

I use your 20166 win mobile 5 binaries(the cab file for midp).

Is this related to the sign keystore?Or the phoneMe doesn't recognioze the perimisions set in the jad file?

Please get back to me when you will see this message.

Thanks,
Alex.

davyp
Offline
Joined: 2007-01-03
Points: 0

I am not sure what is causing this problem, but if the certificates with which you signed the
midlet are recognized and valid, I don't think the signature keystore is to blame. I find it odd you
cannot change the permissions in the settings window. I also notice your are using Obex API,
but JSR 82 for bluetooth is not available in my builds of phoneME Feature.

Can you somehow make your signed midlet available (or a stripped down version) with which I
can try to reproduce the issue?

Davy