2 Replies Latest reply on Mar 17, 2009 7:15 AM by manik

    NullPointerException on using RemoveOnEvictActionPolicy

    krishnan366

      I get a null pointer exception while initializing cache . I am using jboss5.0.0G.A and jbosscache3.0.2.G.A


      I find that RemoveOnEvictActionPolicy is the root cause. Is something wrong with the below configuration



      <region name="/Opportunity" actionPolicyClass="org.jboss.cache.eviction.RemoveOnEvictActionPolicy" algorithmClass="org.jboss.cache.eviction.FIFOAlgorithm"
      eventQueueSize="100000">
       <property name="maxNodes" value="20" />
       <property name="timeToLive" value="3600000"/>
       </region>


        • 1. Re: NullPointerException on using RemoveOnEvictActionPolicy
          krishnan366

          Posting the complete eviction config

          <eviction wakeUpInterval="500" >
          <default algorithmClass="org.jboss.cache.eviction.FIFOAlgorithm" eventQueueSize="100000">
          
          <property name="maxNodes" value="100" />
           <property name="minTimeToLive" value="36000"/>
           </default>
          
          
           <region name="/data" actionPolicyClass="org.jboss.cache.eviction.RemoveOnEvictActionPolicy" algorithmClass="org.jboss.cache.eviction.FIFOAlgorithm" eventQueueSize="100000">
           <property name="maxNodes" value="20" />
           <property name="timeToLive" value="3600000"/>
           </region>
          
           </eviction>


          • 2. Re: NullPointerException on using RemoveOnEvictActionPolicy
            manik

            why do you say RemoveOnEvictActionPolicy is the root cause? At what point do you see the NPE, when calling cache.start()? What do you see in your stack trace?