1 Reply Latest reply on Sep 22, 2011 8:21 AM by Johan Burstedt

    JBoss4.2.3.GA - [ERROR,SerializationStreamFactory] access denied

    Johan Burstedt Newbie

      Moved client/server app from 4.0.2 ==> 4.2.3.GA

       

      Start server using: run -b 0.0.0.0 -c default

       

      When I try to start the client, Java Web Start is used, the following exception is cought in the java console:

       

       

       

       

       

      [ERROR,SerializationStreamFactory] access denied (java.util.PropertyPermission SERIALIZATION read)

      java.security.AccessControlException: access denied (java.util.PropertyPermission SERIALIZATION 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 org.jboss.remoting.serialization.SerializationStreamFactory.<clinit>(SerializationStreamFactory.java:59)

          at org.jboss.invocation.unified.interfaces.JavaSerializationManager.register(JavaSerializationManager.java:80)

          at org.jboss.invocation.unified.interfaces.JavaSerializationManager.register(JavaSerializationManager.java:61)

          at org.jboss.invocation.unified.interfaces.JavaSerializationManager.<clinit>(JavaSerializationManager.java:55)

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Unknown Source)

          at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.<clinit>(UnifiedInvokerProxy.java:52)

          at sun.misc.Unsafe.ensureClassInitialized(Native Method)

          at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)

          at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)

          at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)

          at java.lang.reflect.Field.getFieldAccessor(Unknown Source)

          at java.lang.reflect.Field.getLong(Unknown Source)

          at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)

          at java.io.ObjectStreamClass.access$700(Unknown Source)

          at java.io.ObjectStreamClass$2.run(Unknown Source)

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

          at java.io.ObjectStreamClass.<init>(Unknown Source)

          at java.io.ObjectStreamClass.lookup(Unknown Source)

          at java.io.ObjectStreamClass.initNonProxy(Unknown Source)

          at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)

          at java.io.ObjectInputStream.readClassDesc(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.readObject(Unknown Source)

          at java.util.HashMap.readObject(Unknown Source)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)

          at java.io.ObjectInputStream.readSerialData(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.defaultReadFields(Unknown Source)

          at java.io.ObjectInputStream.readSerialData(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.readObject(Unknown Source)

          at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:143)

          at java.io.ObjectInputStream.readExternalData(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.defaultReadFields(Unknown Source)

          at java.io.ObjectInputStream.readSerialData(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.readObject(Unknown Source)

          at java.rmi.MarshalledObject.get(Unknown Source)

          at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)

          at javax.naming.InitialContext.lookup(Unknown Source)

          at com.om.myserver.ServiceFactory.lookUpHome(ServiceFactory.java:85).....

       

       

      starting client from command promt is working well.

       

      What have I missed? Config? Enviromental? Java Web Start related?