James Netherton created CAMEL-12345:
---------------------------------------

             Summary: LinkedIn component throws IllegalArgumentException on API 
requests
                 Key: CAMEL-12345
                 URL: https://issues.apache.org/jira/browse/CAMEL-12345
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.21.0
            Reporter: James Netherton


Almost all of the camel-linkedin integration tests are failing on master and 
for the 2.21.0 tag. The error is pretty much the same for all of them. For 
example SearchResourceIntegrationTest.testSearchCompanies:

 
{code:java}
Caused by: org.apache.camel.RuntimeCamelException: Error invoking 
searchCompanies with {keywords=linkedin, 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)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Value for fields is not specified
at 
org.apache.cxf.jaxrs.client.AbstractClient.convertParamValue(AbstractClient.java:824)
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.$Proxy54.searchCompanies(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{code}
 

I tried setting the CamelLinkedIn.fields header, but this leads to further 
errors. The CXF 3.2.2 upgrade may be the culprit here. The tests run fine on 
Camel 2.20.x with CXF 3.2.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to