9 Replies Latest reply on Feb 24, 2006 10:51 AM by ben.wang

    NullPointerException in LRUPolicy.nodeAdded

    hjshi2000

      Hi. I got NullPoinerException in LRUPolicy in two machine cluster
      this happens when
      (I am runnin JBOSS TreeCache 1.2.2)

      1) Machine A is up running.
      2) there are request to cluster, the cache is deing updated.
      3) In the middler Machine B is restarted.

      The excepption happens duing machine B's startup.
      The policy config is as follows:
      org.jboss.cache.eviction.LRUPolicy


      10
      <!-- Cache wide default -->

      20000
      0
      0

      <!-- All sessions -->

      20000
      7200
      0





      Here is the log:
      2006-02-17 11:35:23,248 63629 INFO [org.jboss.cache.TreeCache] (MessageDispatcher up processing thread:)
      transient state: 1051057 bytes
      2006-02-17 11:35:23,248 63629 INFO [org.jboss.cache.TreeCache] (MessageDispatcher up processing thread:)
      setting transient state
      2006-02-17 11:35:24,388 64769 INFO [org.jboss.cache.TreeCache] (MessageDispatcher up processing thread:)
      locking the old tree
      2006-02-17 11:35:24,394 64775 INFO [org.jboss.cache.TreeCache] (MessageDispatcher up processing thread:)
      locking the old tree was successful
      2006-02-17 11:35:24,394 64775 INFO [org.jboss.cache.TreeCache] (MessageDispatcher up processing thread:)
      setting the transient state was successful
      2006-02-17 11:35:24,475 64856 ERROR [org.jboss.cache.TreeCache] (MessageDispatcher up processing thread:)
      failed setting transient state
      java.lang.NullPointerException
      at org.jboss.cache.eviction.LRUPolicy.nodeAdded(LRUPolicy.java:55)
      at org.jboss.cache.eviction.LRUPolicy.nodeCreated(LRUPolicy.java:93)
      at org.jboss.cache.TreeCache.notifyNodeCreated(TreeCache.java:3167)
      at org.jboss.cache.TreeCache.notifyAllNodesCreated(TreeCache.java:3219)
      at org.jboss.cache.TreeCache$MessageListenerAdaptor._setState(TreeCache.java:2932)
      at org.jboss.cache.TreeCache$MessageListenerAdaptor.setState(TreeCache.java:2871)
      at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.passUp(MessageDispatcher.java:614)
      at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:331)
      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$ProtocolAdapter$1.run(MessageDispatcher.java:691)
      at java.lang.Thread.run(Thread.java:595)
      2006-02-17 11:35:24,479 64860 INFO [org.jboss.cache.TreeCache] (MessageDispatcher up processing thread:)
      forcing release of all locks in old tree
      2006-02-17 11:35:24,501 64882 INFO [org.jboss.cache.TreeCache] (main:jboss.cache:service=SessionCache TreeCache) state was retrieved successfully (in 2623 milliseconds)