0 Replies Latest reply on Nov 29, 2010 7:13 AM by 812400

    SecurityException: Application not authorized to access the restricted API

      Hi All,

      I am developing a J2ME application.
      While i am trying to execute it, it displays the following error.

      Running in the maximum security domain
      startApp threw an Exception
      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>(+83)
           at javax.microedition.midlet.MIDletProxy.<init>(+5)
           at javax.microedition.midlet.MIDlet.<init>(+13)
           at com.crassy.cityguide.midlet.MyMidlet.<init>(+4)
           at com.crassy.cityguide.midlet.MyMidlet.startApp(+7)
           at javax.microedition.midlet.MIDletProxy.startApp(+7)
           at com.sun.midp.midlet.Scheduler.schedule(+270)
           at com.sun.midp.main.Main.runLocalClass(+28)
           at com.sun.midp.main.Main.main(+80)
      Execution completed.
      3410635 bytecodes executed
      38 thread switches
      1667 classes in the system (including system classes)
      17753 dynamic objects allocated (534748 bytes)
      2 garbage collections (458448 bytes collected)

      Could anybody help me to clear this issue please.

      Thanks in advance.

      Edited by: user11420363 on Nov 28, 2010 6:37 AM

      Edited by: crassy on Nov 28, 2010 11:13 PM