3 Replies Latest reply on Jan 18, 2005 7:29 AM by glynj

    ClassNotFoundException

    glynj Newbie

      I'm trying to get to grips with JBossCache in standalone mode. I try to put an object (a SessionState class) into the cache (a TreeCache) and get the following. Any suggestions please.


      org.jboss.util.NestedRuntimeException: java.lang.ClassNotFoundException: com.misys.riskvision.TestCache.SessionState; - nested throwable: (java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: com.misys.riskvision.TestCache.SessionState)
      at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3083)
      at org.jboss.cache.TreeCache.put(TreeCache.java:1758)
      at org.jboss.cache.TreeCache.put(TreeCache.java:1741)
      at com.misys.riskvision.TestCache.SessionStore.putSession(SessionStore.java:61)
      at com.misys.riskvision.TestCache.SessionCache.main(SessionCache.java:28)
      Caused by: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: com.misys.riskvision.TestCache.SessionState
      at org.jgroups.Message.getObject(Message.java:224)
      at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:203)
      at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:615)
      at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:512)
      at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326)
      at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:722)
      at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:554)
      at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:691)
      at java.lang.Thread.run(Thread.java:534)