You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2016/02/05 20:13:40 UTC

[jira] [Commented] (ARTEMIS-389) See NPE on artemis backup log (ReplicationAddTXMessage)

    [ https://issues.apache.org/jira/browse/ARTEMIS-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15134745#comment-15134745 ] 

Justin Bertram commented on ARTEMIS-389:
----------------------------------------

Can you provide details on the use-case here or (ideally) a reproducible test-case?  The NPE is thrown intentionally here when the file is null or unopened.  The real question is why it's null/unopened at this point.  Please provide additional details or we'll just have to close this JIRA.  Thanks!

> See NPE on artemis backup log (ReplicationAddTXMessage)
> -------------------------------------------------------
>
>                 Key: ARTEMIS-389
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-389
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>         Environment: production
>            Reporter: Howard Nguyen
>
> {code}
> 00:02:11,891 WARN  [org.apache.activemq.artemis.core.server] AMQ222086: error handling packet PACKET(ReplicationAddTXMessage)[type=92, channelID=2, packetObject=ReplicationAddTXMessage] for replication: java.lang.NullPointerException: File not opened, file=null
>         at org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.checkOpened(AIOSequentialFile.java:293) [artemis-journal-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.io.aio.AIOSequentialFile.writeDirect(AIOSequentialFile.java:205) [artemis-journal-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.io.AbstractSequentialFile.write(AbstractSequentialFile.java:256) [artemis-journal-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.journal.impl.JournalImpl.appendRecord(JournalImpl.java:2461) [artemis-journal-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.journal.impl.JournalImpl.appendAddRecordTransactional(JournalImpl.java:858) [artemis-journal-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.journal.impl.JournalBase.appendAddRecordTransactional(JournalBase.java:145) [artemis-journal-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.journal.impl.JournalImpl.appendAddRecordTransactional(JournalImpl.java:78) [artemis-journal-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.replication.ReplicationEndpoint.handleAppendAddTXRecord(ReplicationEndpoint.java:654) [artemis-server-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.replication.ReplicationEndpoint.handlePacket(ReplicationEndpoint.java:170) [artemis-server-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:594) [artemis-core-client-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:368) [artemis-core-client-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:350) [artemis-core-client-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1140) [artemis-core-client-1.2.0.jar:1.2.0]
>         at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:68) [artemis-core-client-1.2.0.jar:1.2.0]
>         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112) [netty-all-4.0.32.Final.jar:4.0.32.Final]
>         at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)