-
Bug
-
Resolution: Done
-
Blocker
-
fuse-7.4-GA
Camel-linkedin quickstart README says:
Change your working directory to `camel-linkedin` directory. * Run `mvn clean install` to build the quickstart. * Start Red Hat Fuse 7 by running bin/fuse (on Linux) or bin\fuse.bat (on Windows). * Create the following configuration file in the etc/ directory of your Red Hat Fuse installation: InstallDir/etc/org.jboss.fuse.quickstarts.camel.linkedin.cfg Edit the org.jboss.fuse.quickstarts.camel.linkedin.cfg file with a text editor and add the following contents: userName=<LinkedIn account user name> userPassword=<LinkedIn account password> accessToken=<LinkedIn access token> clientId=<LinkedIn client id> clientSecret=<LinkedIn client secret>
When I do that I get following error:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: linkedin://search/searchCompanies?consumer.delay=60&consumer.initialDelay=15&consumer.timeUnit=SECONDS&fields=%3A%28companies%3A%28name%2Ctwitter-id%2Cwebsite-url%29%29&keywords=Red+Hat due to: Property accessToken can not be defined if property userName is set at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:758) ~[?:?] at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80) ~[?:?] at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219) ~[?:?] at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115) ~[?:?] at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121) ~[?:?] at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:69) ~[?:?] at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:97) ~[?:?] at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1283) ~[?:?] at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:204) ~[?:?] ... 25 more Caused by: java.lang.IllegalArgumentException: Property accessToken can not be defined if property userName is set
This issue is caused by ENTESB-10368. New approach is using only access token. New instructions should be:
InstallDir/etc/org.jboss.fuse.quickstarts.camel.linkedin.cfg Edit the org.jboss.fuse.quickstarts.camel.linkedin.cfg file with a text editor and add the following contents: accessToken=<LinkedIn access token>
- is caused by
-
ENTESB-10368 camel-linkedin: If accessToken is set, other credentials should be unnecessary
- Closed
- is cloned by
-
ENTESB-11757 [QUICKSTART] camel-linkedin quickstart is not working
- Closed
- relates to
-
ENTESB-11060 [camel-linkedin] Support V2 of Linkedin API
- Closed
-
ENTESB-12056 Investigate Support V2 of Linkedin API
- Closed