Skip to main content

JNLP security issue.

No replies
sohaibs
Offline
Joined: 2008-11-25
Points: 0

How can i run security manager in a JNLP file.
My JNLP files looks like this

<?xml version='1.0' encoding='utf-8'?>

Yus Explorer
Yus

Somefile.xml

The contents of the file wideopen.policy are as follows

grant {
// Allow everything for now
permission java.security.AllPermission;
};

The error that i get is as follows,

java.lang.NoClassDefFoundError

at com.yolus.cam.export.implementation.tcp.TCPServiceLocator.connect(TCPServiceLocator.java:39)

at com.yolus.cam.export.implementation.StubInvocationHandler.invoke(StubInvocationHandler.java:226)

at com.yolus.cam.export.ClassLoadingMediator.invoke(ClassLoadingMediator.java:54)

at $Proxy0.get(Unknown Source)

at com.yolus.cam.export.ServiceReference.getRemoteReference(ServiceReference.java:252)

at com.yolus.yes.sql.RemoteQueryExecutor.connect(RemoteQueryExecutor.java:81)

at com.yolus.yes.sql.RemoteQueryExecutor.(RemoteQueryExecutor.java:65)

at com.yolus.yes.sql.YolusConnection.(YolusConnection.java:76)

at com.yolus.yes.connector.implementation.YolusManagedConnection.getInternalConnection(YolusManagedConnection.java:271)

at com.yolus.yes.connector.implementation.YolusManagedConnection.execute(YolusManagedConnection.java:156)

at com.yolus.yes.connector.implementation.YolusConnection.execute(YolusConnection.java:142)

at com.yolus.yes.connector.implementation.YolusInteraction.execute(YolusInteraction.java:111)

at com.drkw.gerts.support.yolusThreadedAccess.run(yolusThreadedAccess.java:49)

at java.lang.Thread.run(Unknown Source)

java.lang.ExceptionInInitializerError

at com.yolus.cam.export.implementation.tcp.TCPServiceLocator.connect(TCPServiceLocator.java:39)

at com.yolus.cam.export.implementation.StubInvocationHandler.invoke(StubInvocationHandler.java:226)

at com.yolus.cam.export.ClassLoadingMediator.invoke(ClassLoadingMediator.java:54)

at $Proxy0.get(Unknown Source)

at com.yolus.cam.export.ServiceReference.getRemoteReference(ServiceReference.java:252)

at com.yolus.yes.sql.RemoteQueryExecutor.connect(RemoteQueryExecutor.java:81)

at com.yolus.yes.sql.RemoteQueryExecutor.(RemoteQueryExecutor.java:65)

at com.yolus.yes.sql.YolusConnection.(YolusConnection.java:76)

at com.yolus.yes.connector.implementation.YolusManagedConnection.getInternalConnection(YolusManagedConnection.java:271)

at com.yolus.yes.connector.implementation.YolusManagedConnection.execute(YolusManagedConnection.java:156)

at com.yolus.yes.connector.implementation.YolusConnection.execute(YolusConnection.java:142)

at com.yolus.yes.connector.implementation.YolusInteraction.execute(YolusInteraction.java:111)

at com.drkw.gerts.support.yolusThreadedAccess.run(yolusThreadedAccess.java:49)

at java.lang.Thread.run(Unknown Source)

Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission sun.rmi.transport.tcp.handshakeTimeout read)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)

at java.lang.System.getProperty(Unknown Source)

at com.yolus.cam.export.implementation.tcp.TCPConnection$1.run(TCPConnection.java:43)

at java.security.AccessController.doPrivileged(Native Method)

at com.yolus.cam.export.implementation.tcp.TCPConnection.(TCPConnection.java:41)