net.sf.ehcache.distribution.RemoteCacheException: Error bootstrapping from remote peer. Message was: null

Terracotta Project Issue Tracker | Andrey Adamovich | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [EHC-926] UnsupportedOperationException at CacheKeySet.toArray - Terracotta Project Issue Tracker

    terracotta.org | 1 year ago
    net.sf.ehcache.distribution.RemoteCacheException: Error bootstrapping from remote peer. Message was: null
  2. 0

    I make a simple 2 cache node simulation. First starting one node and then after some time starting another one. When second node starts it throws a warning during bootstrap: 21:10:39.404 [Bootstrap Thread for cache getOrtVisningListeHent] WARN n.s.e.d.RMIBootstrapCacheLoader - Error asynchronously performing bootstrap. The cause was: Error bootstrapping from remote peer. Message was: null net.sf.ehcache.distribution.RemoteCacheException: Error bootstrapping from remote peer. Message was: null at net.sf.ehcache.distribution.RMIBootstrapCacheLoader.doLoad(RMIBootstrapCacheLoader.java:176) at net.sf.ehcache.distribution.RMIBootstrapCacheLoader$BootstrapThread.run(RMIBootstrapCacheLoader.java:107) Caused by: java.lang.UnsupportedOperationException: null at net.sf.ehcache.store.CacheKeySet.toArray(CacheKeySet.java:121) at net.sf.ehcache.util.SetAsList.toArray(SetAsList.java:83) at java.util.ArrayList.<init>(ArrayList.java:136) at net.sf.ehcache.distribution.RMICachePeer.getKeys(RMICachePeer.java:125) 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:592) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:154) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at net.sf.ehcache.distribution.RMICachePeer_Stub.getKeys(Unknown Source) at net.sf.ehcache.distribution.RMIBootstrapCacheLoader.doLoad(RMIBootstrapCacheLoader.java:146) ... 1 common frames omitted After that notmal replication between 2 nodes works fine. Ehcache configuration is attached to the issue.

    Terracotta Project Issue Tracker | 5 years ago | Andrey Adamovich
    net.sf.ehcache.distribution.RemoteCacheException: Error bootstrapping from remote peer. Message was: null
  3. 0

    I make a simple 2 cache node simulation. First starting one node and then after some time starting another one. When second node starts it throws a warning during bootstrap: 21:10:39.404 [Bootstrap Thread for cache getOrtVisningListeHent] WARN n.s.e.d.RMIBootstrapCacheLoader - Error asynchronously performing bootstrap. The cause was: Error bootstrapping from remote peer. Message was: null net.sf.ehcache.distribution.RemoteCacheException: Error bootstrapping from remote peer. Message was: null at net.sf.ehcache.distribution.RMIBootstrapCacheLoader.doLoad(RMIBootstrapCacheLoader.java:176) at net.sf.ehcache.distribution.RMIBootstrapCacheLoader$BootstrapThread.run(RMIBootstrapCacheLoader.java:107) Caused by: java.lang.UnsupportedOperationException: null at net.sf.ehcache.store.CacheKeySet.toArray(CacheKeySet.java:121) at net.sf.ehcache.util.SetAsList.toArray(SetAsList.java:83) at java.util.ArrayList.<init>(ArrayList.java:136) at net.sf.ehcache.distribution.RMICachePeer.getKeys(RMICachePeer.java:125) 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:592) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:154) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at net.sf.ehcache.distribution.RMICachePeer_Stub.getKeys(Unknown Source) at net.sf.ehcache.distribution.RMIBootstrapCacheLoader.doLoad(RMIBootstrapCacheLoader.java:146) ... 1 common frames omitted After that notmal replication between 2 nodes works fine. Ehcache configuration is attached to the issue.

    Terracotta Project Issue Tracker | 5 years ago | Andrey Adamovich
    net.sf.ehcache.distribution.RemoteCacheException: Error bootstrapping from remote peer. Message was: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      null

      at net.sf.ehcache.store.CacheKeySet.toArray()
    2. Ehcache
      SetAsList.toArray
      1. net.sf.ehcache.store.CacheKeySet.toArray(CacheKeySet.java:121)
      2. net.sf.ehcache.util.SetAsList.toArray(SetAsList.java:83)
      2 frames
    3. Java RT
      ArrayList.<init>
      1. java.util.ArrayList.<init>(ArrayList.java:136)
      1 frame
    4. Ehcache
      RMICachePeer.getKeys
      1. net.sf.ehcache.distribution.RMICachePeer.getKeys(RMICachePeer.java:125)
      1 frame
    5. Java RT
      UnicastRef.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:592)
      5. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      6. sun.rmi.transport.Transport$1.run(Transport.java:154)
      7. sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      8. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      9. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      10. java.lang.Thread.run(Thread.java:595)
      11. sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      12. sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      13. sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      13 frames
    6. Ehcache
      RMIBootstrapCacheLoader$BootstrapThread.run
      1. net.sf.ehcache.distribution.RMICachePeer_Stub.getKeys(Unknown Source)
      2. net.sf.ehcache.distribution.RMIBootstrapCacheLoader.doLoad(RMIBootstrapCacheLoader.java:146)
      3. net.sf.ehcache.distribution.RMIBootstrapCacheLoader$BootstrapThread.run(RMIBootstrapCacheLoader.java:107)
      3 frames