You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/08/17 11:53:36 UTC

[GitHub] [camel-kafka-connector] orpiske opened a new issue #376: Unclean startup causes an NPE on shutdown

orpiske opened a new issue #376:
URL: https://github.com/apache/camel-kafka-connector/issues/376


   If the connector fails to start for any reason, it throws a NPE during shutdown because it tries to de-reference a null pointer. 
   
   ```
   [2020-08-17 13:45:20,965] WARN Could not stop task (org.apache.kafka.connect.runtime.WorkerSinkTask:165)
   org.apache.kafka.connect.errors.ConnectException: Failed to stop Camel context
           at org.apache.camel.kafkaconnector.CamelSinkTask.stop(CamelSinkTask.java:158)
           at org.apache.kafka.connect.runtime.WorkerSinkTask.close(WorkerSinkTask.java:163)
           at org.apache.kafka.connect.runtime.WorkerTask.doClose(WorkerTask.java:163)
           at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:190)
           at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:234)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           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)
   Caused by: java.lang.NullPointerException
           at org.apache.camel.kafkaconnector.CamelSinkTask.stop(CamelSinkTask.java:156)
   ```
   
   I'll send a PR for this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [camel-kafka-connector] orpiske closed issue #376: Unclean startup causes an NPE on shutdown

Posted by GitBox <gi...@apache.org>.
orpiske closed issue #376:
URL: https://github.com/apache/camel-kafka-connector/issues/376


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [camel-kafka-connector] orpiske commented on issue #376: Unclean startup causes an NPE on shutdown

Posted by GitBox <gi...@apache.org>.
orpiske commented on issue #376:
URL: https://github.com/apache/camel-kafka-connector/issues/376#issuecomment-675899903


   Merged. Closing.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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