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/12/23 00:00:01 UTC
[GitHub] jerrypeng opened a new pull request #3245: Fix: Empty exception
message in java functions can cause an NPE
jerrypeng opened a new pull request #3245: Fix: Empty exception message in java functions can cause an NPE
URL: https://github.com/apache/pulsar/pull/3245
### Motivation
The following NPE could happen if Exception message is null
```
java.lang.NullPointerException: null
at org.apache.pulsar.functions.proto.InstanceCommunication$FunctionStatus$ExceptionInformation$Builder.setExceptionString(InstanceCommunication.java:911) ~[org.apache.pulsar-pulsar-functions-proto-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.pulsar.functions.instance.FunctionStatsManager.addSourceException(FunctionStatsManager.java:357) ~[org.apache.pulsar-pulsar-functions-instance-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.pulsar.functions.instance.FunctionStatsManager.incrSourceExceptions(FunctionStatsManager.java:410) ~[org.apache.pulsar-pulsar-functions-instance-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.pulsar.functions.instance.JavaInstanceRunnable.readInput(JavaInstanceRunnable.java:434) ~[org.apache.pulsar-pulsar-functions-instance-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.pulsar.functions.instance.JavaInstanceRunnable.run(JavaInstanceRunnable.java:228) [org.apache.pulsar-pulsar-functions-instance-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
``
----------------------------------------------------------------
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