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

[QUICKSTART] camel-linkedin quickstart is not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • fuse-7.5-ER2
    • fuse-7.4-GA
    • Camel
    • Fuse 7.5 Sprint 52 - Bug fix

      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>
      

              johnpoth John Poth
              jbouska@redhat.com Jan Bouska
              Jan Bouska Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: