You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jiri Ondrusek (JIRA)" <ji...@apache.org> on 2019/02/11 14:00:00 UTC
[jira] [Created] (CAMEL-13179) IllegalArgumentException: Error
authorizing application duringlinkedin authentication
Jiri Ondrusek created CAMEL-13179:
-------------------------------------
Summary: IllegalArgumentException: Error authorizing application duringlinkedin authentication
Key: CAMEL-13179
URL: https://issues.apache.org/jira/browse/CAMEL-13179
Project: Camel
Issue Type: Bug
Components: camel-linkedin
Affects Versions: 3.0.0
Reporter: Jiri Ondrusek
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-component]$ mvn clean install -P linkedin-test
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)