You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/10/09 20:46:13 UTC

[GitHub] sfescape commented on issue #2751: null payload or property values generated NullPointerException in server

sfescape commented on issue #2751: null payload or property values generated NullPointerException in server
URL: https://github.com/apache/pulsar/issues/2751#issuecomment-428345279
 
 
   Not an empty string, a null value. I'm not sure if a base64 encoded empty string works. I can test that later. Here is the null value property stack trace. I'll look to see if I can find the base64 nullpointerexception on payload.
   
   `java.lang.NullPointerException: null
           at org.apache.pulsar.common.api.proto.PulsarApi$KeyValue$Builder.setValue(PulsarApi.java:1923) ~[org.apache.pulsar-pulsar-common-2.1.1-incubating.jar:2.1.1-incubating]
           at org.apache.pulsar.client.impl.TypedMessageBuilderImpl.properties(TypedMessageBuilderImpl.java:84) ~[org.apache.pulsar-pulsar-client-original-2.1.1-incubating.jar:2.1.1-incubating]
           at org.apache.pulsar.websocket.ProducerHandler.onWebSocketText(ProducerHandler.java:179) ~[org.apache.pulsar-pulsar-websocket-2.1.1-incubating.jar:2.1.1-incubating]
           at org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextMessage(JettyListenerEventDriver.java:189) ~[org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69) ~[org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:66) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextFrame(JettyListenerEventDriver.java:158) ~[org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:162) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:376) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextIncomingFrame(AbstractExtension.java:176) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.nextIncomingFrame(PerMessageDeflateExtension.java:105) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.incomingFrame(PerMessageDeflateExtension.java:70) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:220) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:256) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:679) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:511) [org.eclipse.jetty.websocket-websocket-common-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) [org.eclipse.jetty-jetty-io-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [org.eclipse.jetty-jetty-io-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [org.eclipse.jetty-jetty-io-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [org.eclipse.jetty-jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [org.eclipse.jetty-jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721]
           at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [org.eclipse.jetty-jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [io.netty-netty-all-4.1.22.Final.jar:4.1.22.Final]
           at java.lang.Thread.run(Thread.java:748)`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services