You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Neo Xu (JIRA)" <ji...@apache.org> on 2018/03/15 01:57:00 UTC

[jira] [Comment Edited] (CAMEL-12345) LinkedIn component throws IllegalArgumentException on API requests

    [ https://issues.apache.org/jira/browse/CAMEL-12345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16399742#comment-16399742 ] 

Neo Xu edited comment on CAMEL-12345 at 3/15/18 1:56 AM:
---------------------------------------------------------

[~jamesnetherton]

 

Can you please attach your testing project?  It works for me.

{code}

INFO] 
[INFO] Camel :: LinkedIn :: Parent ........................ SUCCESS [ 2.923 s]
[INFO] Camel :: LinkedIn :: API ........................... SUCCESS [ 13.740 s]
[INFO] Camel :: LinkedIn :: Component ..................... SUCCESS [ 6.515 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.659 s
[INFO] Finished at: 2018-03-15T12:55:03+11:00
[INFO] Final Memory: 46M/153M

{code}


was (Author: neoxu999):
[~jamesnetherton] Can you please attach the testing project? I'd like to try to make a PR.

> 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
>            Priority: Major
>             Fix For: 2.21.1, 2.22.0
>
>
> 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)