Error acceding to serial por with browser

  • Follow


First of all forgive me for my English.
I'm working with java code where it comunicates with a hardware board
through the serial port. The program starts in an applet called by a
html document. The preliminaries tests are under windows 98. And the
problem is the following.

When I open the html file with the appletviewer, I found this
exceptions:

java.lang.ExceptionInitializerError:
java.security.AccessControlException: access denied
(java.util.PropertyPermisssion javax.comm.properties read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:188)
at java.security.AccessController.checkPermission(AccessController.java,
Compiled Code)
at java.lang.SecurityManager.checkPermission(SecurityManager.java,
Compiled Code)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java,
Compiled Code)
at java.lang.System.getProperty(System.java, Compiled Code)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:678)


However if I run the class code in command line (i. e. c:\>java
interfaz) there is no problem.


Giving thanks beforehand, and wishing that anybody can quickly give me
a helpfull answer.



Sebasti�n L�pez
0
Reply seloro 9/2/2003 4:19:16 PM

On 2 Sep 2003 09:19:16 -0700, seloro@terra.es (^CeFoS^) wrote or
quoted :

>java.lang.ExceptionInitializerError:
>java.security.AccessControlException: access denied
>(java.util.PropertyPermisssion javax.comm.properties read)

see http://mindprod.com/jgloss/signedapplets.html
and follow the links.  You must sign your Applet.


Using a serial port from an Applet is considered a dangerous security
risk.


--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming. 
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
0
Reply Roedy 9/2/2003 8:24:30 PM


1 Replies
226 Views

(page loaded in 0.104 seconds)

Similiar Articles:













7/23/2012 2:52:40 AM


Reply: