Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15272

Camel-jira: JSONObject["name"] not found when connecting to latest JIRA/Jira-cloud

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.1, 3.5.0
    • Component/s: camel-jira
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Camel-Jira connector doesn't work with latest jira/jira-cloud due to old client version:

      
      Caused by: com.atlassian.jira.rest.client.api.RestClientException: org.codehaus.jettison.json.JSONException: JSONObject["name"] not found.
       at com.atlassian.jira.rest.client.internal.async.DelegatingPromise.claim(DelegatingPromise.java:45) ~[jira-rest-java-client-core-5.1.6.jar:na]
       at org.apache.camel.component.jira.consumer.AbstractJiraConsumer.getIssues(AbstractJiraConsumer.java:55) ~[camel-jira-3.4.0.jar:3.4.0]
       at org.apache.camel.component.jira.consumer.AbstractJiraConsumer.getIssues(AbstractJiraConsumer.java:45) ~[camel-jira-3.4.0.jar:3.4.0]
       at org.apache.camel.component.jira.consumer.NewCommentsConsumer.getComments(NewCommentsConsumer.java:74) ~[camel-jira-3.4.0.jar:3.4.0]
       at org.apache.camel.component.jira.consumer.NewCommentsConsumer.doStart(NewCommentsConsumer.java:66) ~[camel-jira-3.4.0.jar:3.4.0]
       at org.apache.camel.support.service.BaseService.start(BaseService.java:115) ~[camel-api-3.4.0.jar:3.4.0]
       at org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:3025) ~[camel-base-3.4.0.jar:3.4.0]
       at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRouteConsumers(InternalRouteStartupManager.java:348) ~[camel-base-3.4.0.jar:3.4.0]
       at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartRouteConsumers(InternalRouteStartupManager.java:275) ~[camel-base-3.4.0.jar:3.4.0]
       at org.apache.camel.impl.engine.InternalRouteStartupManager.safelyStartRouteServices(InternalRouteStartupManager.java:180) ~[camel-base-3.4.0.jar:3.4.0]
       at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRoutes(InternalRouteStartupManager.java:114) ~[camel-base-3.4.0.jar:3.4.0]
       at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2809) ~[camel-base-3.4.0.jar:3.4.0]
       at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2657) ~[camel-base-3.4.0.jar:3.4.0]
       at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2620) ~[camel-base-3.4.0.jar:3.4.0]
       at org.apache.camel.spring.boot.SpringBootCamelContext.doStart(SpringBootCamelContext.java:43) ~[camel-spring-boot-3.4.0.jar:3.4.0]
       at org.apache.camel.support.service.BaseService.start(BaseService.java:115) ~[camel-api-3.4.0.jar:3.4.0]
       at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2452) ~[camel-base-3.4.0.jar:3.4.0]
       at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:121) ~[camel-spring-3.4.0.jar:3.4.0]
       ... 16 common frames omitted
      
      

       

      Upgrade to 5.2.1 fixes this. PR on the way.

        Attachments

          Activity

            People

            • Assignee:
              mmelko Matej Melko
              Reporter:
              mmelko Matej Melko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: