java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled)

Atlassian JIRA | David Currie [Atlassian] | 1 year ago
  1. 0

    h3. Summary When connecting JIRA to Confluence, using JIRA Data Center, the MyWork plugin throws an exception. h3. Environment JIRA Data Center h3. Steps to Reproduce # Install 2 notes of JDC. # Start them up. # Use the JIRA instance as normal. h3. Expected Results This works without any problems. h3. Actual Results The below exception is thrown whilst using the application, indicating cache replication is broken. The plugin does not function as expected. {noformat} 2015-11-05 12:22:13,877 myWorkHostChecker:thread-1 ERROR [n.s.ehcache.distribution.RMISynchronousCacheReplicator] Exception on replication of putNotification. RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled). Continuing... java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:354) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162) at net.sf.ehcache.distribution.RMICachePeer_Stub.put(Unknown Source) at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.replicatePutNotification(RMISynchronousCacheReplicator.java:149) at com.atlassian.cache.ehcache.replication.rmi.RMISynchronousCacheReplicator.replicateViaCopy(RMISynchronousCacheReplicator.java:60) at com.atlassian.cache.ehcache.replication.rmi.RMISynchronousCacheReplicator.notifyElementPut(RMISynchronousCacheReplicator.java:48) at net.sf.ehcache.event.RegisteredEventListeners.internalNotifyElementPut(RegisteredEventListeners.java:180) at net.sf.ehcache.event.RegisteredEventListeners.notifyElementPut(RegisteredEventListeners.java:158) at net.sf.ehcache.Cache.notifyPutInternalListeners(Cache.java:1532) at net.sf.ehcache.Cache.putInternal(Cache.java:1502) at net.sf.ehcache.Cache.put(Cache.java:1427) at net.sf.ehcache.Cache.put(Cache.java:1392) at com.atlassian.cache.ehcache.DelegatingCache.put(DelegatingCache.java:81) at com.atlassian.mywork.client.service.HostIdCache.setHost(HostIdCache.java:47) at com.atlassian.mywork.client.service.HostServiceImpl.setActiveHost(HostServiceImpl.java:209) at com.atlassian.mywork.client.service.HostServiceImpl.updateHostAvailability(HostServiceImpl.java:190) at com.atlassian.mywork.client.service.HostServiceImpl.enable(HostServiceImpl.java:101) at com.atlassian.mywork.client.service.ServiceSelectorImpl$2.run(ServiceSelectorImpl.java:193) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:314) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) ... 3 more Caused by: java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:396) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:186) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:637) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:264) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:214) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) at java.io.ObjectInputStream.readEnum(ObjectInputStream.java:1726) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:501) at net.sf.ehcache.Element.readObject(Element.java:860) ... 3 filtered at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1900) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:326) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:308) ... 12 more {noformat} h3. Workaround Disable the Workbox plugin(s): * Workbox - Common Plugin * Workbox - JIRA Provider Plugin h3. Notes This is raised in Confluence as it's caused by the MyWork (Workbox) plugin, however it affects JIRA. It is also a spurious error that doesn't break cache replication, however does mean the plugin itself will not function as expected.

    Atlassian JIRA | 1 year ago | David Currie [Atlassian]
    java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled)
  2. 0

    h3. Summary When connecting JIRA to Confluence, using JIRA Data Center, the MyWork plugin throws an exception. Plugins cannot put keys or values in replicated caches that come from classes not accessible from webapp classloader, such as from the plugin classloader. This is what MyWork is doing with one of its replicated caches. h3. Environment JIRA Data Center Workbox plugin *3.0.4* h3. Steps to Reproduce # Install 2 notes of JDC. # Start them up. # Use the JIRA instance as normal. h3. Expected Results This works without any problems. h3. Actual Results The below exception is thrown whilst using the application, indicating cache replication is broken. The plugin does not function as expected. {noformat} 2015-11-05 12:22:13,877 myWorkHostChecker:thread-1 ERROR [n.s.ehcache.distribution.RMISynchronousCacheReplicator] Exception on replication of putNotification. RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled). Continuing... java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:354) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162) at net.sf.ehcache.distribution.RMICachePeer_Stub.put(Unknown Source) at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.replicatePutNotification(RMISynchronousCacheReplicator.java:149) at com.atlassian.cache.ehcache.replication.rmi.RMISynchronousCacheReplicator.replicateViaCopy(RMISynchronousCacheReplicator.java:60) at com.atlassian.cache.ehcache.replication.rmi.RMISynchronousCacheReplicator.notifyElementPut(RMISynchronousCacheReplicator.java:48) at net.sf.ehcache.event.RegisteredEventListeners.internalNotifyElementPut(RegisteredEventListeners.java:180) at net.sf.ehcache.event.RegisteredEventListeners.notifyElementPut(RegisteredEventListeners.java:158) at net.sf.ehcache.Cache.notifyPutInternalListeners(Cache.java:1532) at net.sf.ehcache.Cache.putInternal(Cache.java:1502) at net.sf.ehcache.Cache.put(Cache.java:1427) at net.sf.ehcache.Cache.put(Cache.java:1392) at com.atlassian.cache.ehcache.DelegatingCache.put(DelegatingCache.java:81) at com.atlassian.mywork.client.service.HostIdCache.setHost(HostIdCache.java:47) at com.atlassian.mywork.client.service.HostServiceImpl.setActiveHost(HostServiceImpl.java:209) at com.atlassian.mywork.client.service.HostServiceImpl.updateHostAvailability(HostServiceImpl.java:190) at com.atlassian.mywork.client.service.HostServiceImpl.enable(HostServiceImpl.java:101) at com.atlassian.mywork.client.service.ServiceSelectorImpl$2.run(ServiceSelectorImpl.java:193) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:314) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) ... 3 more Caused by: java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:396) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:186) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:637) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:264) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:214) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) at java.io.ObjectInputStream.readEnum(ObjectInputStream.java:1726) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:501) at net.sf.ehcache.Element.readObject(Element.java:860) ... 3 filtered at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1900) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:326) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:308) ... 12 more {noformat} h3. Workaround Disable the Workbox plugin(s): * Workbox - Common Plugin * Workbox - JIRA Provider Plugin h3. Notes This is raised in Confluence as it's caused by the MyWork (Workbox) plugin, however it affects JIRA. It is also a spurious error that doesn't break cache replication, however does mean the plugin itself will not function as expected. h5. Functionality Workbox (MyWork) plugin is required to show notifications from JIRA in Confluence. If you have enabled this functionality in Confluence, when you disable plugin in JIRA, Confluence users will not get notifications from JIRA anymore. See more details [Including notifications from JIRA|https://confluence.atlassian.com/display/DOC/Configuring+Workbox+Notifications]

    Atlassian JIRA | 1 year ago | David Currie [Atlassian]
    java.lang.ClassNotFoundException: com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled)
  3. 0

    java.rmi.server.codebase not working on linux

    Stack Overflow | 4 years ago | Giacogiac
    java.lang.ClassNotFoundException: server.SimpleBark
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring RMI Exception

    Stack Overflow | 5 years ago | Mike
    java.lang.ClassNotFoundException: oracle.net.ns.NetException (no security manager: RMI class loader disabled)
  6. 0

    I am running a RMI application and no security manager: RMI class loader disabled exception comes

    Stack Overflow | 3 years ago
    java.lang.ClassNotFoundException: Client.prog (no security manager: RMI class loader disabled)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      com.atlassian.mywork.client.service.HostServiceImpl$HostType (no security manager: RMI class loader disabled)

      at sun.rmi.server.UnicastServerRef.dispatch()
    2. Java RT
      UnicastRef.invoke
      1. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:354)
      2. sun.rmi.transport.Transport$1.run(Transport.java:200)
      3. sun.rmi.transport.Transport$1.run(Transport.java:197)
      4. java.security.AccessController.doPrivileged(Native Method)
      5. sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      6. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
      7. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
      8. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683)
      9. java.security.AccessController.doPrivileged(Native Method)
      10. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
      11. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      12. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      13. java.lang.Thread.run(Thread.java:745)
      14. sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
      15. sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
      16. sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
      16 frames
    3. Ehcache
      RMISynchronousCacheReplicator.replicatePutNotification
      1. net.sf.ehcache.distribution.RMICachePeer_Stub.put(Unknown Source)
      2. net.sf.ehcache.distribution.RMISynchronousCacheReplicator.replicatePutNotification(RMISynchronousCacheReplicator.java:149)
      2 frames
    4. com.atlassian.cache
      RMISynchronousCacheReplicator.notifyElementPut
      1. com.atlassian.cache.ehcache.replication.rmi.RMISynchronousCacheReplicator.replicateViaCopy(RMISynchronousCacheReplicator.java:60)
      2. com.atlassian.cache.ehcache.replication.rmi.RMISynchronousCacheReplicator.notifyElementPut(RMISynchronousCacheReplicator.java:48)
      2 frames
    5. Ehcache
      Cache.put
      1. net.sf.ehcache.event.RegisteredEventListeners.internalNotifyElementPut(RegisteredEventListeners.java:180)
      2. net.sf.ehcache.event.RegisteredEventListeners.notifyElementPut(RegisteredEventListeners.java:158)
      3. net.sf.ehcache.Cache.notifyPutInternalListeners(Cache.java:1532)
      4. net.sf.ehcache.Cache.putInternal(Cache.java:1502)
      5. net.sf.ehcache.Cache.put(Cache.java:1427)
      6. net.sf.ehcache.Cache.put(Cache.java:1392)
      6 frames
    6. com.atlassian.cache
      DelegatingCache.put
      1. com.atlassian.cache.ehcache.DelegatingCache.put(DelegatingCache.java:81)
      1 frame
    7. com.atlassian.mywork
      ServiceSelectorImpl$2.run
      1. com.atlassian.mywork.client.service.HostIdCache.setHost(HostIdCache.java:47)
      2. com.atlassian.mywork.client.service.HostServiceImpl.setActiveHost(HostServiceImpl.java:209)
      3. com.atlassian.mywork.client.service.HostServiceImpl.updateHostAvailability(HostServiceImpl.java:190)
      4. com.atlassian.mywork.client.service.HostServiceImpl.enable(HostServiceImpl.java:101)
      5. com.atlassian.mywork.client.service.ServiceSelectorImpl$2.run(ServiceSelectorImpl.java:193)
      5 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames