This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes restricted api Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "restricted api" Watch "restricted api" New topic

restricted api

caid bradley

Joined: Jan 08, 2005
Posts: 5
hi there

i'm trying to start invoke one midlet (Setup) from another midlet (MainMidlet) in the same suite.

however, both


give the following error:

java.lang.SecurityException: Application not authorized to access the restricted API
at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8)
at com.sun.midp.midlet.MIDletState.<init>(+78)
at javax.microedition.midlet.MIDletProxy.<init>(+5)
at javax.microedition.midlet.MIDlet.<init>(+13)
at Setup.<init>(+4)

i've tried setting the security domain to trusted/untrusted/minimum/maximum, i've tried signing/not signing the midlet, adding permissions etc. still no joy.

what do i have to do to get this up and running?

Thanks in advance.

[ January 08, 2005: Message edited by: caid bradley ]
I agree. Here's the link:
subject: restricted api
Similar Threads
Help with SecurityException in J2ME WTK 2.5.1?
Referencing a method form another class?
Creating an instance of a class in another class