This is the message I receive when trying to open a MIDlet that uses HttpConnection.
What I want to do is to connect to an URL and retrieve data from a file matching the URL.
![]()
This is the message I receive when trying to open a MIDlet that uses HttpConnection.
What I want to do is to connect to an URL and retrieve data from a file matching the URL.
![]()
give permissions for http connection in JAD file as below
MIDlet-Permissions: javax.microedition.io.Connector.http, javax.microedition.io.Connector.https
Thx. Another problem:
I'm trying to write a file on C:/ on the device (this root exists)
and I've explicitly asked for permissions in the JAD:
javax.microedition.io.Connector.file.read, javax.microedition.io.Connector.file.write
And even though I am asked if it is okay to read/write when running the application,
In C:\ I get a SecurityException "Access denied" or IllegalModeException "Connection opened in WRITE mode"
depending on the exact URI...
Does anybody know what memory locations that are okay to write to?
Last edited by alixwarnke; 2008-02-29 at 15:20.
Java ME Developer's Library contains some information
http://www.forum.nokia.com/document/...818328681.html
Hartti
I looked through it briefly, couldn't find what I was looking for, can you pinpoint the precise document/pages please?
After a second quick glance...this might not be as helpful as I originally thought though...
http://www.forum.nokia.com/document/...82070821D.html
Directory and file access restrictions
File API also contains the “restricted access to the directory” concept. This is needed if a user starts to navigate, for example, from root to c:/data/Images/ directory (the fileconn.dir.photos property points to that directory). The user has only a restricted access to the c:/ root and c:/data/ directory. This means that the user has only read access rights to the data/ directory. The list() operation returns only those directories/files to where the user has access.
The user can create/modify/delete files and sub-directories under the c:/data/Images/ directory, but cannot change the name of the c:/data/Images/ directory. This restriction concerns all directories that are pointed to by a File API system property.
In S60, access to *.jar and *.jad files are forbidden for other access domains except Manufacturer.
In Series 40, the following files are visible but cannot have user actions (read/write/rename/copy) performed on them (by midlets in any domain):
*
RMS files
*
JAR files
*
JAD files
*
INI files
Hi Guys,
I'm trying to connect to the our client applet on Nokia 6212 NFC device using jsr 177 (apdu:0;target=A0.00.xx.xx.xx.xx.xx), but I'm getting a SecurityException and after I tried to add these permissions to my jad file (javax.microedition.apdu.aid, javax.microedition.apdu.sat, javax.microedition.jcrmi)
and now I can't even run my midlet on my device and the error is: "Application not supported. Delete?"
Any idea???
Have you signed you MIDlet? Does the Access Control List on the SIM card to access that Applet on the card?
Hartti
Hi Hartti,
I have signed the midley. And I don't want to talk to SIM Card, I'm trying to talk to the our applet on the secure element. I can also send APDU commands and get the response back using ISO14443.
Thanks,
Alig