valdar opened a new issue #120: Unable to initialize REST resources in tests
URL: https://github.com/apache/camel-kafka-connector/issues/120
 
 
   Tests logs contains:
   ```2020-04-03 17:10:47,906 [pool-2-thread-1] ERROR 
org.apache.camel.kafkaconnector.services.kafkaconnect.KafkaConnectRunner - 
Container init or start has failed due to: 
   org.apache.kafka.connect.errors.ConnectException: Unable to initialize REST 
resources
        at 
org.apache.kafka.connect.runtime.rest.RestServer.initializeResources(RestServer.java:301)
 ~[connect-runtime-2.4.1.jar:?]
        at org.apache.kafka.connect.runtime.Connect.start(Connect.java:54) 
~[connect-runtime-2.4.1.jar:?]
        at 
org.apache.camel.kafkaconnector.services.kafkaconnect.KafkaConnectRunner.run(KafkaConnectRunner.java:198)
 ~[test-classes/:?]
        at 
org.apache.camel.kafkaconnector.services.kafkaconnect.KafkaConnectRunnerService.lambda$start$0(KafkaConnectRunnerService.java:107)
 ~[test-classes/:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[?:1.8.0_242]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_242]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_242]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
   Caused by: java.lang.NullPointerException
        at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:802)
 ~[jetty-server-9.4.20.v20190813.jar:9.4.20.v20190813]
        at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:276)
 ~[jetty-servlet-9.4.20.v20190813.jar:9.4.20.v20190813]
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
 ~[jetty-util-9.4.20.v20190813.jar:9.4.20.v20190813]
        at 
org.apache.kafka.connect.runtime.rest.RestServer.initializeResources(RestServer.java:299)
 ~[connect-runtime-2.4.1.jar:?]```
   This is most probably due to how kafka connect environment is initialized 
mimiking what kafka connect standalone dose and missing the REST server init 
part.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to