HTTP Protocol Permission error
Posted: Mon Oct 20, 2014 3:34 pm
Im trying to send data from the raspberry pi to my website, where i can then process the data using php and place the data into a database. Im doing it this way to offload some of the work onto the server, rather than doing it all on the PI. I keep running into Connector.open permission error. I have tried adding the HTTP Protocol permission into the API Permissions but I am struggling to get this to work
Here is the code which is causing it:
Error messsage:
Can someone point me in the right direction to fix this please. Iv been trawling through google and can't find much on it.
Here is the code which is causing it:
Code: Select all
HttpConnection connection = (HttpConnection) Connector.open(url);Code: Select all
java.security.AccessControlException:
- com/oracle/meep/security/AccessControllerInternal.checkPermission(), bci=128
- java/security/AccessController.checkPermission(), bci=1
- com/sun/midp/io/j2me/http/BasicHttpProtocol.checkForPermission(), bci=32
- com/sun/midp/io/j2me/http/BasicHttpProtocol.openPrim(), bci=2
- javax/microedition/io/Connector.open(), bci=77
- javax/microedition/io/Connector.open(), bci=6
- javax/microedition/io/Connector.open(), bci=3
- co/uk/samueldown/gps/GpsDevice.sendGPSData(GpsDevice.java:61)
- co/uk/samueldown/gps/GpsDevice.<init>(GpsDevice.java:41)
- co/uk/samueldown/gpio/Button.valueChanged(Button.java:37)
- com/oracle/deviceaccess/gpio/impl/GPIOPinEventHandler.processEvent(), bci=26
- com/oracle/deviceaccess/gpio/impl/GPIOPinEventHandler.processEvent(), bci=7
- com/oracle/deviceaccess/gpio/impl/GPIOEventHandler.process(), bci=62
- com/sun/midp/events/EventQueue.run(), bci=129
- java/lang/Thread.run(), bci=5