[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
java.lang.ClassNotFoundException (no security manager: RMI class loader disabled)  XML
Forum Index -> Ehcache
Author Message
youngl

neo

Joined: 07/20/2010 11:28:02
Messages: 1
Offline

I am getting the following stack trace (see below) with tomcat6 container. However the error goes away when I start tomcat with security manager enabled.

I am using ehcache 2.1.0 with hibernate 3.5.4-Final and spring 3.0.2-Final

Ehcache documentation says security manager is not required.

Any help w/r/t running tomcat6 w/o security manager to avoid ClassNotFoundException will be greatly appreciated.

thanx in advance.

Caused by: java.lang.ClassNotFoundException: com.playspan.catalog2.model.Offer2PubId (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375) ~[na:1.6.0_20]
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) ~[na:1.6.0_20]
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) ~[na:1.6.0_20]
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) ~[na:1.6.0_20]
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) ~[na:1.6.0_20]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) ~[na:1.6.0_20]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) ~[na:1.6.0_20]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) ~[na:1.6.0_20]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) ~[na:1.6.0_20]
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) ~[na:1.6.0_20]
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) ~[na:1.6.0_20]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) ~[na:1.6.0_20]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) ~[na:1.6.0_20]
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) ~[na:1.6.0_20]
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480) ~[na:1.6.0_20]
at net.sf.ehcache.distribution.EventMessage.readObject(EventMessage.java:138) ~[ehcache-core-2.1.0.jar:na]
at sun.reflect.GeneratedMethodAccessor345.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:
rajoshi

seraphim

Joined: 07/04/2011 04:36:10
Messages: 1491
Offline

Issue seems to be resolved.Please let us know if more information is required.

Rakesh Joshi
Senior Consultant
Terracotta.
sv100351

neo

Joined: 10/17/2014 11:57:19
Messages: 4
Offline

I am facing same issue, can you please let me know How does this issue got resolved. What kind of changes we need to do for same.
hhuynh

cherubim

Joined: 06/16/2006 11:54:06
Messages: 761
Offline

I believe the problem you're seeing is more about RMI than Ehcache

Try

http://stackoverflow.com/questions/10116114/rmi-java-lang-classnotfoundexception-class-name-no-security-manager-rmi-cla

and

http://stackoverflow.com/questions/6322107/java-no-security-manager-rmi-class-loader-disabled
sv100351

neo

Joined: 10/17/2014 11:57:19
Messages: 4
Offline

Thanks for your reply,

I have tried both java.rmi.server.useCodebaseOnly and java.rmi.server.codebase but still same issue is coming.

Is there any other way to resolve this issue.
sv100351

neo

Joined: 10/17/2014 11:57:19
Messages: 4
Offline

Hi,

I am trying for RMI replication in my application. I am using Ehcache 2.7.4.
When i am trying to deploy bundle in fuse ESb and once cache is created below error is coming while RMI replication.

I have tried both java.rmi.server.useCodebaseOnly and java.rmi.server.codebase but still same issue is coming.

2014-10-16 10:57:29,593 | WARN | plication Thread | RMIAsynchronousCacheReplicator | n.RMIAsynchronousCacheReplicator 325 | 200 - net.sf.ehcache - 2.7.4 | Unable to send message to remote peer. Message was: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: com.sample.dataaccess.translation.entity.Translation (no security manager: RMI class loader disabled)
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: com.sample.dataaccess.translation.entity.Translation (no security manager: RMI class loader disabled)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:353)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at sun.rmi.transport.Transport$1.run(Transport.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:252)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
at net.sf.ehcache.distribution.RMICachePeer_Stub.send(Unknown Source)
at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.writeReplicationQueue(RMIAsynchronousCacheReplicator.java:314)
at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.replicationThreadMain(RMIAsynchronousCacheReplicator.java:127)
at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.access$000(RMIAsynchronousCacheReplicator.java:58)
at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator$ReplicationThread.run(RMIAsynchronousCacheReplicator.java:389)
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team