Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: Camel
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      • I tested with both Windows 7 and Linux environment, I am not able to reproduce issue.
      • But something similar has been reported at https://github.com/aws/aws-sdk-java/issues/444. Customer tried using higher version of JODA too but same error as in description.
      • Unzip project AWS-S3_test.zip
      • Build using `mvn clean install`
      • In fabric environment, deploy it followinG way
        profile-create testprofile
        profile-edit --feature camel-blueprint --feature camel-aws testprofile
        #adding my custom bundle
        profile-edit --bundle mvn:com.mycompany/aws-s3-test/1.0.0-SNAPSHOT testprofile 
        container-create-child root abc1
        container-list
        container-add-profile abc1 testprofile 
        
      Show
      I tested with both Windows 7 and Linux environment, I am not able to reproduce issue. But something similar has been reported at https://github.com/aws/aws-sdk-java/issues/444 . Customer tried using higher version of JODA too but same error as in description. Unzip project AWS-S3_test.zip Build using `mvn clean install` In fabric environment, deploy it followinG way profile-create testprofile profile-edit --feature camel-blueprint --feature camel-aws testprofile #adding my custom bundle profile-edit --bundle mvn:com.mycompany/aws-s3-test/1.0.0-SNAPSHOT testprofile container-create-child root abc1 container-list container-add-profile abc1 testprofile

      Description

      • Customer get's following issue with camel-aws component with java version 1.8.0_111. He is in Windows 7 OS. Red Hat JBoss Fuse version is 6.2.1 GA.
        016-12-08 17:01:40,647 | ERROR | rint Extender: 3 | BlueprintCamelContext            | 2238 - org.apache.camel.camel-blueprint - 2.15.1.redhat-621084 | Error occurred during starting Camel: CamelContext(mdpOrch) due Failed to create route route1 at: >>> To[aws-s3://MyBucket?amazonS3Client=#amazonS3Client&delay=5000&maxMessagesPerPoll=5] <<< in route: Route(route1)[[From[file:xyz.txt]]... because of Failed to resolve endpoint: aws-s3://MyBucket?amazonS3Client=%23amazonS3Client&delay=5000&maxMessagesPerPoll=5 due to: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: XXXXXXXX)
        org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[aws-s3://MyBucket?amazonS3Client=#amazonS3Client&delay=5000&maxMessagesPerPoll=5] <<< in route: Route(route1)[[From[file:xyz.txt]]... because of Failed to resolve endpoint: aws-s3://MyBucket?amazonS3Client=%23amazonS3Client&delay=5000&maxMessagesPerPoll=5 due to: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: XXXXXXX)
        	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1028)
        	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:185)
        	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:841)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2895)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2618)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2467)
        	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2463)
        	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2486)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2463)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2432)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:180)
        	at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:212)
        	at org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:150)
        	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)
        	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)
        	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
        	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)
        	at org.apache.felix.framework.Felix.registerService(Felix.java:3431)
        	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
        	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:353)
        	at org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:100)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_60]
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_60]
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_60]
        	at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_60]
        	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:956)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[15:org.apache.aries.blueprint.core:1.4.4]
        	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60]
        	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:682)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:377)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)[15:org.apache.aries.blueprint.core:1.4.4]
        	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_60]
        	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60]
        	at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)[15:org.apache.aries.blueprint.core:1.4.4]
        	at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[15:org.apache.aries.blueprint.core:1.4.4]
        	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_60]
        	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60]
        	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_60]
        	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_60]
        	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
        	at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
        Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: aws-s3://MyBucket?amazonS3Client=%23amazonS3Client&delay=5000&maxMessagesPerPoll=5 due to: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: XXXXXXX)
        	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:578)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)
        	at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:200)
        	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)
        	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)
        	at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
        	at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
        	at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:533)
        	at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:494)
        	at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219)
        	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1025)
        	... 50 more
        Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: XXXXXXXXXXXX), S3 Extended Request ID: ZZZZZZZZZZZZZZ=
        	at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:937)
        	at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:506)
        	at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:273)
        	at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3660)
        	at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3612)
        	at com.amazonaws.services.s3.AmazonS3Client.listObjects(AmazonS3Client.java:624)
        	at org.apache.camel.component.aws.s3.S3Endpoint.doStart(S3Endpoint.java:106)
        	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        	at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:2869)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1097)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1058)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1054)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:574)[2241:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	... 60 more
        

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  oscerd Andrea Cosentino
                  Reporter:
                  cpandey Chandra Shekhar Pandey
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: