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


   Hi guys
   
   I am struggling with camel-jira-kafka-connector. My goal is use it as a 
source connector for new comments. I followed the provided documentation and 
took the configuration base from the projects 
[example](https://github.com/apache/camel-kafka-connector/blob/master/connectors/camel-jira-kafka-connector/src/main/docs/examples/CamelJiraSourceConnector.properties).
 
   
   However, I always run into the following error (`Cannot find endpoint with 
scheme jira`):
   
   ```
   [2020-07-07 00:12:11,684] ERROR 
WorkerSourceTask{id=CamelJiraSourceConnector-0} Task threw an uncaught and 
unrecoverable exception (org.apache.kafka.connect.runtime.WorkerTask:186)
   org.apache.kafka.connect.errors.ConnectException: Failed to create and start 
Camel context
           at 
org.apache.camel.kafkaconnector.CamelSourceTask.start(CamelSourceTask.java:103)
           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.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:834)
   Caused by: java.lang.IllegalArgumentException: Cannot find endpoint with 
scheme jira
           at 
org.apache.camel.catalog.impl.AbstractCamelCatalog.doAsEndpointUri(AbstractCamelCatalog.java:684)
           at 
org.apache.camel.catalog.impl.AbstractCamelCatalog.asEndpointUri(AbstractCamelCatalog.java:673)
           at 
org.apache.camel.kafkaconnector.utils.TaskHelper.buildUrl(TaskHelper.java:44)
           at 
org.apache.camel.kafkaconnector.CamelSourceTask.start(CamelSourceTask.java:89)
           ... 8 more
   
   ``` 
   
   I used the following configuration:
   
   ```
   name=CamelJiraSourceConnector
   connector.class=org.apache.camel.kafkaconnector.jira.CamelJiraSourceConnector
   tasks.max=1
   
   key.converter=org.apache.kafka.connect.storage.StringConverter
   value.converter=org.apache.kafka.connect.storage.StringConverter
   
   camel.component.jira.jiraUrl=http://localhost:8080
   camel.component.jira.password=xxx
   camel.component.jira.username=user
   camel.source.endpoint.jiraUrl=http://localhost:8080
   camel.source.endpoint.username=user
   camel.source.endpoint.password=xxx
   
   camel.source.path.type=newComments
   topics=mytopic
   ```
   I specified the JIRA endpoint according the documentation. I also tried Jira 
online, where I received the same result. Also, I tried OAuth - same result. 
What am I doing wrong?
   
   It is also not clear to me why there are configurations for components and 
source.endpoints. What is the difference? 
   
   Thanks for your support
   
    


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to