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/11/03 21:19:24 UTC

[GitHub] [camel-kafka-connector] vbbhatia14 opened a new issue #665: Error with Syslog Source Connector

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


   Hi,
   
   I tried the below and got the error as : hostname can't be null even though I had provided a host. Tried with both localhost and 0.0.0.0 as in doc.
   
   **My CamelSyslogSourceConnector.properties values below:**
   
   name=CamelSyslogSourceConnector
   connector.class=org.apache.camel.kafkaconnector.syslog.CamelSyslogSourceConnector
   tasks.max=1
   
   # use the kafka converters that better suit your needs, these are just defaults:
   key.converter=org.apache.kafka.connect.storage.StringConverter
   value.converter=org.apache.kafka.connect.storage.StringConverter
   
   # comma separated topics to send messages into
   topics=syslog
   
   # mandatory properties (for a complete properties list see the connector documentation):
   
   # The protocol to use which can be tcp or udp. One of: [tcp] [udp]
   camel.source.path.protocol=udp
   # The hostname. For the consumer the hostname is localhost or 0.0.0.0. For the producer the hostname is the remote host to connect to
   camel.source.path.host=**0.0.0.0**
   # The host port number
   camel.source.path.port=514
   
   **The error stacktrace:**
   
   [2020-11-03 21:14:33,407] ERROR Error starting CamelContext (camel-1) due to exception thrown: hostname can't be null (org.apache.camel.impl.engine.AbstractCamelContext:2674)
   java.lang.IllegalArgumentException: hostname can't be null
           at java.net.InetSocketAddress.checkHost(InetSocketAddress.java:149)
           at java.net.InetSocketAddress.<init>(InetSocketAddress.java:216)
           at org.apache.camel.component.netty.SingleTCPNettyServerBootstrapFactory.startServerBootstrap(SingleTCPNettyServerBootstrapFactory.java:184)
           at org.apache.camel.component.netty.SingleTCPNettyServerBootstrapFactory.doStart(SingleTCPNettyServerBootstrapFactory.java:113)
           at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
           at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
           at org.apache.camel.component.netty.NettyConsumer.doStart(NettyConsumer.java:75)
           at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
           at org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:3056)
           at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRouteConsumers(InternalRouteStartupManager.java:362)
           at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartRouteConsumers(InternalRouteStartupManager.java:282)
           at org.apache.camel.impl.engine.InternalRouteStartupManager.safelyStartRouteServices(InternalRouteStartupManager.java:181)
           at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRoutes(InternalRouteStartupManager.java:115)
           at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2837)
           at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2666)
           at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2629)
           at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
           at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2395)
           at org.apache.camel.main.SimpleMain.doStart(SimpleMain.java:43)
           at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
           at org.apache.camel.kafkaconnector.CamelSourceTask.start(CamelSourceTask.java:115)
           at org.apache.kafka.connect.runtime.WorkerSourceTask.execute(WorkerSourceTask.java:213)
           at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:184)
           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)
   


----------------------------------------------------------------
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] vbbhatia14 commented on issue #665: Error with Syslog Source Connector

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


   @valdar I am using 0.6 version.


----------------------------------------------------------------
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] tadayosi commented on issue #665: Error with Syslog Source Connector

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


   This should be fixed with 0.9.0. @vbbhatia14 Can you please check it once 0.9.0 is released?  Thanks.


-- 
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] valdar commented on issue #665: Error with Syslog Source Connector

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


   @vbbhatia14 `0.9.0` is out now if you want to try it.


-- 
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] valdar closed issue #665: Error with Syslog Source Connector

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


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] valdar commented on issue #665: Error with Syslog Source Connector

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


   @vbbhatia14 I am closing this because I am pretty sure it is fixed, feel free to reopen it if needed.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] valdar commented on issue #665: Error with Syslog Source Connector

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


   @vbbhatia14 what version of the connector did you use?


----------------------------------------------------------------
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