Hi my application connects to a server via HTTP, works okay with WTK 1.04 but gives the following with WTK 2.1 although it has been given all the permissions and securtiy is set to minimum

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)


Thanks