<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
how to config org.jboss.cache.loader.LocalDelegatingCacheLoader
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="https://community.jboss.org/people/lkrzyzanek">Libor Krzyžanek</a> in <i>JBoss Cache</i> - <a href="https://community.jboss.org/message/828121#828121">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi, </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm failed to config this cache loader in the tutorial, any clue should be helpful</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>=====my config=========</p><p>   <loaders passivation="false" shared="false"></p><p>        <!--</p><p>           we can have multiple cache loaders, which get chained</p><p>           --> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>          <loader class="org.jboss.cache.loader.LocalDelegatingCacheLoader" async="false" fetchPersistentState="true"</p><p>                ignoreModifications="true" purgeOnStartup="true">  </p><p>                 <properties></p><p>                  </properties></p><p>        </loader>  </p><p>  </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    </loaders></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>====error log of launching 1st instance ==== </p><p>2013-07-16 14:49:04,193 WARN  [org.jboss.cache.transaction.GenericTransactionManagerLookup] (main) Falling back to JBoss Cache's internal DummyTransactionManager</p><p>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]</p><p>2013-07-16 14:49:04,615 INFO  [org.jboss.cache.statetransfer.DefaultStateTransferIntegrator] (Incoming-1,127.0.0.1:54627) Using version 4096</p><p>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</p><p>java.lang.NullPointerException</p><p>          at org.jboss.cache.loader.LocalDelegatingCacheLoader.getChildrenNames(LocalDelegatingCacheLoader.java:74)</p><p>          at org.jboss.cache.loader.AbstractDelegatingCacheLoader.getChildrenNames(AbstractDelegatingCacheLoader.java:84)</p><p>          at org.jboss.cache.interceptors.CacheLoaderInterceptor.loadChildren(CacheLoaderInterceptor.java:362)</p><p>          at org.jboss.cache.interceptors.CacheLoaderInterceptor.visitGetChildrenNamesCommand(CacheLoaderInterceptor.java:191)</p><p>          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)</p><p>          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)</p><p>          at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)</p><p>          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)</p><p>          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)</p><p>          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)</p><p>          at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)</p><p>          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)</p><p>          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)</p><p>          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)</p><p>          at org.jboss.cache.interceptors.TxInterceptor.attachGtxAndPassUpChain(TxInterceptor.java:301)</p><p>          at org.jboss.cache.interceptors.TxInterceptor.handleDefault(TxInterceptor.java:283)</p><p>          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)</p><p>          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)</p><p>          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)</p><p>          at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)</p><p>          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)</p><p>          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)</p><p>          at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)</p><p>          at org.jboss.cache.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:178)</p><p>          at org.jboss.cache.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:130)</p><p>          at org.jboss.cache.commands.AbstractVisitor.visitGetChildrenNamesCommand(AbstractVisitor.java:125)</p><p>          at org.jboss.cache.commands.read.GetChildrenNamesCommand.acceptVisitor(GetChildrenNamesCommand.java:115)</p><p>          at org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:287)</p><p>          at org.jboss.cache.invocation.CacheInvocationDelegate.getChildrenNamesInternal(CacheInvocationDelegate.java:654)</p><p>          at org.jboss.cache.invocation.CacheInvocationDelegate.getChildrenNames(CacheInvocationDelegate.java:639)</p><p>          at org.jboss.cache.invocation.NodeInvocationDelegate.getChildrenNames(NodeInvocationDelegate.java:297)</p><p>          at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateTransientState(DefaultStateTransferIntegrator.java:353)</p><p>          at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateTransientState(DefaultStateTransferIntegrator.java:234)</p><p>          at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateState(DefaultStateTransferIntegrator.java:113)</p><p>          at org.jboss.cache.statetransfer.DefaultStateTransferManager.setState(DefaultStateTransferManager.java:201)</p><p>          at org.jboss.cache.statetransfer.DefaultStateTransferManager.setState(DefaultStateTransferManager.java:165)</p><p>          at org.jboss.cache.remoting.jgroups.ChannelMessageListener.setState(ChannelMessageListener.java:297)</p><p>          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:714)</p><p>          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:776)</p><p>          at org.jgroups.JChannel.up(JChannel.java:1288)</p><p>          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:454)</p><p>          at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:486)</p><p>          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:575)</p><p>          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:512)</p><p>          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:275)</p><p>          at org.jgroups.protocols.FRAG2.up(FRAG2.java:188)</p><p>          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:820)</p><p>          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:233)</p><p>          at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:628)</p><p>          at org.jgroups.protocols.UNICAST.up(UNICAST.java:309)</p><p>          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:750)</p><p>          at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:167)</p><p>          at org.jgroups.protocols.FD.up(FD.java:284)</p><p>          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:307)</p><p>          at org.jgroups.protocols.MERGE2.up(MERGE2.java:144)</p><p>          at org.jgroups.protocols.Discovery.up(Discovery.java:264)</p><p>          at org.jgroups.protocols.PING.up(PING.java:273)</p><p>          at org.jgroups.protocols.TP.passMessageUp(TP.java:1273)</p><p>          at org.jgroups.protocols.TP.access$100(TP.java:49)</p><p>          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1826)</p><p>          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1805)</p><p>          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</p><p>          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</p><p>          at java.lang.Thread.run(Thread.java:662)</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/828121#828121">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>