-
Bug
-
Resolution: Done
-
Major
-
camel-k-1.6-GA
-
None
-
False
-
False
-
%
-
Todo
-
Jira source kamelet fails when retrieving a new issue with:
2021-10-13 13:03:55,620 INFO [io.quarkus] (main) camel-k-integration 1.6.0 on JVM (powered by Quarkus 2.2.3.Final-redhat-00009) started in 3.959s. 2021-10-13 13:03:55,621 INFO [io.quarkus] (main) Profile prod activated. 2021-10-13 13:03:55,621 INFO [io.quarkus] (main) Installed features: [camel-bean, camel-core, camel-direct, camel-jackson, camel-java-joor-dsl, camel-jira, camel-k-core, camel-k-runtime, camel-kamelet, camel-yaml-dsl, cdi, rest-client] 2021-10-13 13:04:01,728 ERROR [org.apa.cam.pro.err.DefaultErrorHandler] (Camel (camel-1) thread #0 - jira://newIssues) Failed delivery for (MessageId: 82DC8CD98D78C61-0000000000000000 on ExchangeId: 82DC8CD98D78C61-0000000000000000). Exhausted after delivery attempt: 1 caught: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Joda date/time type `org.joda.time.DateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-joda" to enable handling (through reference chain: com.atlassian.jira.rest.client.api.domain.Issue["creationDate"]) Message History (complete message history is disabled) --------------------------------------------------------------------------------------------------------------------------------------- RouteId ProcessorId Processor Elapsed (ms) [jira-source-1 ] [jira-source-1 ] [from[jira://newIssues?jiraUrl=https://issues.redhat.com&jql=project=FUQT&passw] [ 81] ... [jira-source-1 ] [marshal1 ] [marshal[org.apache.camel.model.dataformat.JsonDataFormat@2d82408] ] [ 0] Stacktrace --------------------------------------------------------------------------------------------------------------------------------------- : com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Joda date/time type `org.joda.time.DateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-joda" to enable handling (through reference chain: com.atlassian.jira.rest.client.api.domain.Issue["creationDate"]) at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77) at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1276) at com.fasterxml.jackson.databind.ser.impl.UnsupportedTypeSerializer.serialize(UnsupportedTypeSerializer.java:35) at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:728) at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:770) at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:178) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319) at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1514) at com.fasterxml.jackson.databind.ObjectWriter._writeValueAndClose(ObjectWriter.java:1215) at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:1043) at org.apache.camel.component.jackson.AbstractJacksonDataFormat.marshal(AbstractJacksonDataFormat.java:152) at org.apache.camel.support.processor.MarshalProcessor.process(MarshalProcessor.java:64) at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:463) at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:179) at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64) at org.apache.camel.processor.Pipeline.process(Pipeline.java:184) at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:398) at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83) at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:41) at org.apache.camel.component.jira.consumer.NewIssuesConsumer.poll(NewIssuesConsumer.java:66) at org.apache.camel.support.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:190) at org.apache.camel.support.ScheduledPollConsumer.run(ScheduledPollConsumer.java:107) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) 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:829)
integration code:
// camel-k: language=java package com.test; import org.apache.camel.builder.RouteBuilder; public class MyRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { from("kamelet:jira-source?password=<pw>&jiraUrl=<jira url>&jql=<jql>&username=<user>").log("${body}"); } }
- is blocked by
-
ENTESB-19541 Missing dependency com.atlassian.httpclient:atlassian-httpclient-api in jira-source kamelet integration
- Closed
- relates to
-
ENTESB-16477 Unable to download jira client dependency with productized build
- Closed
- mentioned on