<!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="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">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;">
    NullMarkerNodeForRemoval issue
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/thomas.heute%40jboss.com">Thomas Heute</a> in <i>JBoss Cache</i> - <a href="http://community.jboss.org/message/538849#538849">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>The NullMarkerNodeForRemoval object introduced to solve the following issue:</p><p><a class="jive-link-external-small" href="https://jira.jboss.org/jira/browse/JBCACHE-1493" target="_blank">https://jira.jboss.org/jira/browse/JBCACHE-1493</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>is generating a NPE:</p><pre class="jive-pre"><code class="jive-code">java.lang.NullPointerException
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.invocation.NodeInvocationDelegate.clearDataDirect(NodeInvocationDelegate.java:243)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.write.ClearDataCommand.perform(ClearDataCommand.java:79)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.CallInterceptor.invokeCommand(CallInterceptor.java:108)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.CallInterceptor.handleAlterCacheMethod(CallInterceptor.java:173)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.CallInterceptor.visitClearDataCommand(CallInterceptor.java:149)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.write.ClearDataCommand.acceptVisitor(ClearDataCommand.java:86)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.EvictionInterceptor.visitClearDataCommand(EvictionInterceptor.java:235)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.write.ClearDataCommand.acceptVisitor(ClearDataCommand.java:86)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.MVCCLockingInterceptor.handleClearDataCommand(MVCCLockingInterceptor.java:124)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.PrePostProcessingCommandInterceptor.visitClearDataCommand(PrePostProcessingCommandInterceptor.java:167)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.write.ClearDataCommand.acceptVisitor(ClearDataCommand.java:86)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.ReplicationInterceptor.handleCrudMethod(ReplicationInterceptor.java:150)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.ReplicationInterceptor.visitClearDataCommand(ReplicationInterceptor.java:137)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.write.ClearDataCommand.acceptVisitor(ClearDataCommand.java:86)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.AbstractVisitor.visitClearDataCommand(AbstractVisitor.java:80)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.write.ClearDataCommand.acceptVisitor(ClearDataCommand.java:86)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:501)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:388)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:134)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:68)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:140)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:68)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:178)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.InvocationContextInterceptor.visitPrepareCommand(InvocationContextInterceptor.java:106)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:68)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.interceptors.InterceptorChain.invokeRemote(InterceptorChain.java:316)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.remote.ReplicateCommand.processSingleCommand(ReplicateCommand.java:139)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.commands.remote.ReplicateCommand.perform(ReplicateCommand.java:115)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.marshall.CommandAwareRpcDispatcher.executeCommand(CommandAwareRpcDispatcher.java:319)
&#160;&#160;&#160;&#160;&#160;at org.jboss.cache.marshall.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:246)
&#160;&#160;&#160;&#160;&#160;at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:637)
&#160;&#160;&#160;&#160;&#160;at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:545)
&#160;&#160;&#160;&#160;&#160;at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:368)
&#160;&#160;&#160;&#160;&#160;at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:775)
&#160;&#160;&#160;&#160;&#160;at org.jgroups.JChannel.up(JChannel.java:1336)
&#160;&#160;&#160;&#160;&#160;at org.jgroups.mux.Multiplexer$Task.run(Multiplexer.java:1185)
&#160;&#160;&#160;&#160;&#160;at org.jgroups.mux.Multiplexer$ExecuteTask.run(Multiplexer.java:1208)
&#160;&#160;&#160;&#160;&#160;at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
&#160;&#160;&#160;&#160;&#160;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
&#160;&#160;&#160;&#160;&#160;at java.lang.Thread.run(Thread.java:619)

</code></pre><p>We found out about this while doing more extensive QA on GateIn:</p><p><a class="jive-link-external-small" href="https://jira.jboss.org/jira/browse/GTNPORTAL-855" target="_blank">https://jira.jboss.org/jira/browse/GTNPORTAL-855</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The code returning the NPE is simply:</p><pre class="jive-pre"><code class="jive-code">public void clearDataDirect()
{
&#160;&#160; node.clear();
}</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Looks like a bug, if you confirm I can create the Jira</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/538849#538849">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="http://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>