Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: fuse-7.4-GA
    • Fix Version/s: fuse-7.5-ER2
    • Component/s: Camel
    • Labels:

      Description

      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>
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jpoth John Poth
                  Reporter:
                  jbouska Jan Bouska
                  Tester:
                  Jan Bouska
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: