camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Poth (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-11453) Fix camel-box feature
Date Mon, 26 Jun 2017 08:55:00 GMT
John Poth created CAMEL-11453:
---------------------------------

             Summary: Fix camel-box feature
                 Key: CAMEL-11453
                 URL: https://issues.apache.org/jira/browse/CAMEL-11453
             Project: Camel
          Issue Type: Bug
          Components: camel-box
    Affects Versions: 2.19.1
         Environment: Karaf 4.1.1 (latest at time of writing)
            Reporter: John Poth


Some dependencies from mvn:com.box/box-java-sdk are missing in the camel-box feature. This
happens when using the default authentication type (APP_USER_AUTHENTICATION). Below are some
stack traces. I cam provide a PR:

{code}
Caused by: java.lang.NoClassDefFoundError: org/bouncycastle/openssl/PEMParser
	at com.box.sdk.BoxDeveloperEditionAPIConnection.decryptPrivateKey(BoxDeveloperEditionAPIConnection.java:366)
~[?:?]
	at com.box.sdk.BoxDeveloperEditionAPIConnection.constructJWTAssertion(BoxDeveloperEditionAPIConnection.java:327)
~[?:?]
	at com.box.sdk.BoxDeveloperEditionAPIConnection.authenticate(BoxDeveloperEditionAPIConnection.java:237)
~[?:?]
	at com.box.sdk.BoxDeveloperEditionAPIConnection.tryRestoreUsingAccessTokenCache(BoxDeveloperEditionAPIConnection.java:305)
~[?:?]
	at com.box.sdk.BoxDeveloperEditionAPIConnection.getAppUserConnection(BoxDeveloperEditionAPIConnection.java:212)
~[?:?]
	at org.apache.camel.component.box.internal.BoxConnectionHelper.createAppUserAuthenticatedConnection(BoxConnectionHelper.java:238)
~[?:?]
	at org.apache.camel.component.box.internal.BoxConnectionHelper.createConnection(BoxConnectionHelper.java:89)
~[?:?]
	at org.apache.camel.component.box.BoxComponent.doStart(BoxComponent.java:85) ~[?:?]
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3555)
~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelContext.java:3561)
~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3295)
~[?:?]
{code}

{code}
Caused by: java.lang.NoClassDefFoundError: org/jose4j/lang/JoseException
	at org.apache.camel.component.box.internal.BoxConnectionHelper.createAppUserAuthenticatedConnection(BoxConnectionHelper.java:238)
~[?:?]
	at org.apache.camel.component.box.internal.BoxConnectionHelper.createConnection(BoxConnectionHelper.java:89)
~[?:?]
	at org.apache.camel.component.box.BoxComponent.doStart(BoxComponent.java:85) ~[?:?]
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3555)
~[?:?]
{code}

{code}
Caused by: java.lang.ClassNotFoundException: com.eclipsesource.json.JsonObject not found by
wrap_file__home_jpoth_.m2_repository_com_box_box-java-sdk_2.1.1_box-java-sdk-2.1.1.jar [413]
	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1550)
~[?:?]
	at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:79) ~[?:?]
	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1958)
~[?:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
	at com.box.sdk.BoxAPIConnection.authenticate(BoxAPIConnection.java:149) ~[?:?]
	at com.box.sdk.BoxAPIConnection.<init>(BoxAPIConnection.java:98) ~[?:?]
	at org.apache.camel.component.box.internal.BoxConnectionHelper.createStandardAuthenticatedConnection(BoxConnectionHelper.java:202)
~[?:?]
	at org.apache.camel.component.box.internal.BoxConnectionHelper.createConnection(BoxConnectionHelper.java:91)
~[?:?]
	at org.apache.camel.component.box.BoxComponent.doStart(BoxComponent.java:85) ~[?:?]
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3555)
~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelContext.java:3561)
~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3295)
~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:203) ~[?:?]
	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3106) ~[?:?]
	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3102) ~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3125)
~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3102) ~[?:?]
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[?:?]
	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3040) ~[?:?]
	at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:244)
~[?:?]
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message