• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.SecurityException

 
Alagoas Mirra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone out there help me with this SecurityException. I got problem with this exception for a very long time! I tried many ways to solve it, but nothing is working. Can anyone tell me, what causes this java.lang.SecurityException and how can i solve it?

java.lang.SecurityException: Application not authorized to access the restricted API
at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+40)
at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+7)
at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8)
at com.sun.midp.midlet.MIDletState.<init>(+66)
at javax.microedition.midlet.MIDletProxy.<init>(+5)
at javax.microedition.midlet.MIDlet.<init>(+13)
at Project.<init>(+4)
at MainPage.commandAction(+23)
at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm guessing here, but you're not trying to access a MIDP2.0 API from a MIDP1.0 phone, emulator or project are you?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic