[ https://issues.apache.org/jira/browse/CAMEL-13179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrea Cosentino resolved CAMEL-13179. -------------------------------------- Resolution: Fixed > camel-linkedin - IllegalArgumentException: Error authorizing application > during linkedin authentication > ------------------------------------------------------------------------------------------------------- > > Key: CAMEL-13179 > URL: https://issues.apache.org/jira/browse/CAMEL-13179 > Project: Camel > Issue Type: Bug > Components: camel-linkedin > Affects Versions: 2.23.1 > Reporter: Jiri Ondrusek > Assignee: Andrea Cosentino > Priority: Major > Fix For: 3.0.0, 2.23.2, 2.24.0 > > Time Spent: 10m > Remaining Estimate: 0h > > There is a problem during authentication to linkedin. Which ends with > following exception: > {noformat} > java.lang.IllegalArgumentException: Error authorizing application: Error > authorizing application: > at > org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.getRefreshToken(LinkedInOAuthRequestFilter.java:235) > at > org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.updateOAuthToken(LinkedInOAuthRequestFilter.java:307) > at > org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.<init>(LinkedInOAuthRequestFilter.java:123) > at > org.apache.camel.component.linkedin.api.AbstractResourceIntegrationTest.createOAuthHelper(AbstractResourceIntegrationTest.java:102) > at > org.apache.camel.component.linkedin.api.AbstractResourceIntegrationTest.beforeClass(AbstractResourceIntegrationTest.java:62) > at > org.apache.camel.component.linkedin.api.SearchResourceIntegrationTest.beforeClass(SearchResourceIntegrationTest.java:31) > 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) > at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) > at org.junit.runners.ParentRunner.run(ParentRunner.java:363) > at org.junit.runner.JUnitCore.run(JUnitCore.java:137) > at > com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) > at > com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) > at > com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) > Caused by: java.lang.IllegalArgumentException: Error authorizing application: > at > org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.getRefreshToken(LinkedInOAuthRequestFilter.java:189) > {noformat} > How to simulate: > 1. add your credentials to src/test/resources/test-options.properties > 2. run [camel-linkedin-api]$ mvn clean install -P linkedin-test > -Dtest=SearchResourceIntegrationTest -- This message was sent by Atlassian JIRA (v7.6.3#76005)