Hi All,

I get an exception when trying to run a JMS subscriber from within a java
app launched via Web Start.  It appears the authentication for the JMS
connection fails because the JMS SocketHandler code makes calls to
System.getProperty.  This sort of operation is not allowed within the
security sandbox of a Web Start launched application (or applet).

I am tempted to patch the JBOSS JMS code to fix this, but I am wondering if
there is a work-around for this other than just increasing the permissions
of the java Application.  If I do patch the JMS code should I just submit
the patch to the JBoss patches on sourceforge?

I have included the traceback for the problem.  It's a bit hard to track
down the problem because it turns out that the NestedThrowable$Util class
violates the security sandbox too and so the exception traceback is not
complete.

Below is the exception trace back:

java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:140)
        at org.jboss.util.NestedThrowable$Util.class$(NestedThrowable.java:27)
        at org.jboss.util.NestedThrowable$Util.<clinit>(NestedThrowable.java:101)
        at org.jboss.mq.SpyJMSException.<init>(SpyJMSException.java:67)
        at org.jboss.mq.Connection.authenticate(Connection.java:766)
        at org.jboss.mq.Connection.<init>(Connection.java:233)
        at org.jboss.mq.Connection.<init>(Connection.java:264)
        at org.jboss.mq.SpyConnection.<init>(SpyConnection.java:59)
        at
org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory
.java:78)
        at
com.nextbus.bustracker.app.JMSConfigurationSubscriber.<init>(JMSConfiguratio
nSubscriber.java:93)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:306)
        at java.lang.Class.newInstance(Class.java:259)
        at com.nextbus.bustracker.app.Factory.<init>(Factory.java:51)
        at com.nextbus.bustracker.app.Main.<init>(Main.java:22)
        at com.nextbus.bustracker.app.Main.main(Main.java:42)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.sun.javaws.Launcher.executeApplication(Unknown Source)
        at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
        at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
        at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
        at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
        at com.sun.javaws.Launcher.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:536)
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission
org.jboss.util.NestedThrowable.parentTraceEnabled read)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:270)
        at
java.security.AccessController.checkPermission(AccessController.java:401)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
        at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
        at java.lang.System.getProperty(System.java:611)
        at org.jboss.util.NestedThrowable$Util.getBoolean(NestedThrowable.java:123)
        at org.jboss.util.NestedThrowable.<clinit>(NestedThrowable.java:39)



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to