Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9943

camel-linkedin: fields property behaves differently on EAP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.3
    • fuse-7.2
    • WildFly Camel
    • None
    • % %
    • Hide
      1. git clone https://gitlab.cee.redhat.com/jboss-fuse-qe/jbossqe-camel-it.git
      2. prepare fuse on eap with "admin:admin123." credentials, start it.
      3. mvn clean install -am -amd -Pjboss-eap -pl :linkedin-test
      Show
      git clone https://gitlab.cee.redhat.com/jboss-fuse-qe/jbossqe-camel-it.git prepare fuse on eap with "admin:admin123." credentials, start it. mvn clean install -am -amd -Pjboss-eap -pl :linkedin-test

      When 'fields' header is not specified on EAP, we can see this error:

      Caused by: org.apache.camel.RuntimeCamelException: Error invoking getCompanyById with {company_id=2414183, fields=}: Value for fields is not specified
      	at org.apache.camel.util.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:514)
      	at org.apache.camel.util.component.AbstractApiProducer.doInvokeMethod(AbstractApiProducer.java:120)
      	at org.apache.camel.component.linkedin.LinkedInProducer.doInvokeMethod(LinkedInProducer.java:43)
      	at org.apache.camel.util.component.AbstractApiProducer$1.run(AbstractApiProducer.java:86)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      	... 3 more
      Caused by: java.lang.IllegalArgumentException: Value for fields is not specified
      	at org.apache.cxf.jaxrs.client.AbstractClient.convertParamValue(AbstractClient.java:818)
      	at org.apache.cxf.jaxrs.client.ClientProxyImpl.getPathParamValues(ClientProxyImpl.java:452)
      	at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:179)
      	at com.sun.proxy.$Proxy95.getCompanyById(Unknown Source)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.camel.util.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:506)
      	... 10 more

      The fields option should be optional. If it's not specified, it should return a default set of fields. The option behaves correctly in Karaf and spring-boot, the problem is only in EAP.

            tdiesler@redhat.com Thomas Diesler
            jkasztur@redhat.com Jan Kasztura (Inactive)
            Jan Kasztura Jan Kasztura (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: