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

Rob Godfrey commented on QPID-7922:
-----------------------------------

[~lorenz.quack] Ah, we're back in that horrible exception handling code we were 
discussing in QPID-7837 last week :-( (which more generally is covered by 
QPID-7531).  In particular the codec layer should be detecting a framing error, 
and reporting that (with appropriate descriptive text) back to the client, 
rather than "connection forced".  Obviously we've also said we are going to be 
more lenient than the spec here (and accept messages with no body), but for 
other weird cases (two footers perhaps :-) ), we should ensure we better report 
the actual error.



> Null pointer exception while handling a message without any payload
> -------------------------------------------------------------------
>
>                 Key: QPID-7922
>                 URL: https://issues.apache.org/jira/browse/QPID-7922
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: qpid-java-6.1.4
>            Reporter: Artyom Safronov
>
> An exception occures while sending a message created by no-args "create" 
> method of the Message.Factory.
> And this is a stack trace found in a log file of the Java broker.
> 2017-09-25 13:39:39,396 WARN  [IO-/127.0.0.1:50488] 
> (o.a.q.s.p.v.f.FrameHandler) - Unexpected exception handling frame
> java.lang.NullPointerException: null
>       at 
> org.apache.qpid.server.protocol.v1_0.ReceivingLink_1_0.messageTransfer(ReceivingLink_1_0.java:126)
>       at 
> org.apache.qpid.server.protocol.v1_0.Session_1_0$SubjectSpecificReceivingLinkListener$1.run(Session_1_0.java:1423)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> org.apache.qpid.server.protocol.v1_0.Session_1_0$SubjectSpecificReceivingLinkListener.messageTransfer(Session_1_0.java:1418)
>       at 
> org.apache.qpid.server.protocol.v1_0.ReceivingLinkEndpoint.receiveTransfer(ReceivingLinkEndpoint.java:164)
>       at 
> org.apache.qpid.server.protocol.v1_0.Session_1_0.receiveTransfer(Session_1_0.java:688)
>       at 
> org.apache.qpid.server.protocol.v1_0.AMQPConnection_1_0$5.run(AMQPConnection_1_0.java:652)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> org.apache.qpid.server.protocol.v1_0.AMQPConnection_1_0.receiveTransfer(AMQPConnection_1_0.java:647)
>       at 
> org.apache.qpid.server.protocol.v1_0.type.transport.Transfer.invoke(Transfer.java:281)
>       at 
> org.apache.qpid.server.protocol.v1_0.AMQPConnection_1_0.receive(AMQPConnection_1_0.java:309)
>       at 
> org.apache.qpid.server.protocol.v1_0.framing.FrameHandler.parse(FrameHandler.java:166)
>       at 
> org.apache.qpid.server.protocol.v1_0.AMQPConnection_1_0$10.run(AMQPConnection_1_0.java:1167)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> org.apache.qpid.server.protocol.v1_0.AMQPConnection_1_0.received(AMQPConnection_1_0.java:1140)
>       at 
> org.apache.qpid.server.transport.MultiVersionProtocolEngine.received(MultiVersionProtocolEngine.java:143)
>       at 
> org.apache.qpid.server.transport.NonBlockingConnection.processAmqpData(NonBlockingConnection.java:624)
>       at 
> org.apache.qpid.server.transport.NonBlockingConnectionPlainDelegate.processData(NonBlockingConnectionPlainDelegate.java:58)
>       at 
> org.apache.qpid.server.transport.NonBlockingConnection.doRead(NonBlockingConnection.java:512)
>       at 
> org.apache.qpid.server.transport.NonBlockingConnection.doWork(NonBlockingConnection.java:285)
>       at 
> org.apache.qpid.server.transport.NetworkConnectionScheduler.processConnection(NetworkConnectionScheduler.java:130)
>       at 
> org.apache.qpid.server.transport.SelectorThread$ConnectionProcessor.processConnection(SelectorThread.java:563)
>       at 
> org.apache.qpid.server.transport.SelectorThread$SelectionTask.performSelect(SelectorThread.java:354)
>       at 
> org.apache.qpid.server.transport.SelectorThread$SelectionTask.run(SelectorThread.java:97)
>       at 
> org.apache.qpid.server.transport.SelectorThread.run(SelectorThread.java:521)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to