JBoss Community

how to config org.jboss.cache.loader.LocalDelegatingCacheLoader

reply from Libor Krzyžanek in JBoss Cache - View the full discussion

Hi,

 

 

I'm failed to config this cache loader in the tutorial, any clue should be helpful

 

 

=====my config=========

   <loaders passivation="false" shared="false">

        <!--

           we can have multiple cache loaders, which get chained

           -->

 

          <loader class="org.jboss.cache.loader.LocalDelegatingCacheLoader" async="false" fetchPersistentState="true"

                ignoreModifications="true" purgeOnStartup="true"> 

                 <properties>

                  </properties>

        </loader> 

 

 

    </loaders>

 

====error log of launching 1st instance ====

2013-07-16 14:49:04,193 WARN  [org.jboss.cache.transaction.GenericTransactionManagerLookup] (main) Falling back to JBoss Cache's internal DummyTransactionManager

2013-07-16 14:49:04,584 INFO  [org.jboss.cache.RPCManagerImpl] (main) Received new cluster view: [127.0.0.1:53717|1] [127.0.0.1:53717, 127.0.0.1:54627]

2013-07-16 14:49:04,615 INFO  [org.jboss.cache.statetransfer.DefaultStateTransferIntegrator] (Incoming-1,127.0.0.1:54627) Using version 4096

2013-07-16 14:49:04,615 INFO  [org.jboss.cache.interceptors.CacheLoaderInterceptor] (Incoming-1,127.0.0.1:54627) Cache loader was unable to load state

java.lang.NullPointerException

          at org.jboss.cache.loader.LocalDelegatingCacheLoader.getChildrenNames(LocalDelegatingCacheLoader.java:74)

          at org.jboss.cache.loader.AbstractDelegatingCacheLoader.getChildrenNames(AbstractDelegatingCacheLoader.java:84)

          at org.jboss.cache.interceptors.CacheLoaderInterceptor.loadChildren(CacheLoaderInterceptor.java:362)

          at org.jboss.cache.interceptors.CacheLoaderInterceptor.visitGetChildrenNamesCommand(CacheLoaderInterceptor.java:191)

          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)

          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

          at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)

          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)

          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)

          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

          at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)

          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)

          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)

          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

          at org.jboss.cache.interceptors.TxInterceptor.attachGtxAndPassUpChain(TxInterceptor.java:301)

          at org.jboss.cache.interceptors.TxInterceptor.handleDefault(TxInterceptor.java:283)

          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)

          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)

          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

          at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)

          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)

          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)

          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

          at org.jboss.cache.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:178)

          at org.jboss.cache.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:130)

          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)

          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)

          at org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:287)

          at org.jboss.cache.invocation.CacheInvocationDelegate.getChildrenNamesInternal(CacheInvocationDelegate.java:654)

          at org.jboss.cache.invocation.CacheInvocationDelegate.getChildrenNames(CacheInvocationDelegate.java:639)

          at org.jboss.cache.invocation.NodeInvocationDelegate.getChildrenNames(NodeInvocationDelegate.java:297)

          at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateTransientState(DefaultStateTransferIntegrator.java:353)

          at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateTransientState(DefaultStateTransferIntegrator.java:234)

          at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateState(DefaultStateTransferIntegrator.java:113)

          at org.jboss.cache.statetransfer.DefaultStateTransferManager.setState(DefaultStateTransferManager.java:201)

          at org.jboss.cache.statetransfer.DefaultStateTransferManager.setState(DefaultStateTransferManager.java:165)

          at org.jboss.cache.remoting.jgroups.ChannelMessageListener.setState(ChannelMessageListener.java:297)

          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:714)

          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:776)

          at org.jgroups.JChannel.up(JChannel.java:1288)

          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:454)

          at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:486)

          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:575)

          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:512)

          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:275)

          at org.jgroups.protocols.FRAG2.up(FRAG2.java:188)

          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:820)

          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:233)

          at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:628)

          at org.jgroups.protocols.UNICAST.up(UNICAST.java:309)

          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:750)

          at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:167)

          at org.jgroups.protocols.FD.up(FD.java:284)

          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:307)

          at org.jgroups.protocols.MERGE2.up(MERGE2.java:144)

          at org.jgroups.protocols.Discovery.up(Discovery.java:264)

          at org.jgroups.protocols.PING.up(PING.java:273)

          at org.jgroups.protocols.TP.passMessageUp(TP.java:1273)

          at org.jgroups.protocols.TP.access$100(TP.java:49)

          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1826)

          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1805)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:662)

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community