Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11453

Fix camel-box feature

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.19.1
    • 2.19.2, 2.20.0
    • camel-box
    • None
    • Karaf 4.1.1 (latest at time of writing)

    • Unknown

    Description

      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:

      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) ~[?:?]
      
      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) ~[?:?]
      
      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) ~[?:?]
      

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              jpoth John Poth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: