1 2 Previous Next 18 Replies Latest reply on Jan 5, 2012 8:00 AM by snatera

    secureXML

    snatera

      Hi everybody,

       

      First of all "Merry Chrismas".

       

      I need your help, I need to work with security in apache camel and I have problems to configure it.

       

      I have the folow:

       

      [Marshal[org.apac... because of Data format 'secureXML' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath

          at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:820)

          at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)

          at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:698)

          at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1660)

          at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1447)

          at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1339)

          at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:167)

          at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)

          at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)

          at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1317)

          at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:211)

          at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:106)

          ... 10 more

      Caused by: java.lang.IllegalArgumentException: Data format 'secureXML' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath

          at org.apache.camel.model.DataFormatDefinition.getDataFormat(DataFormatDefinition.java:90)

          at org.apache.camel.model.DataFormatDefinition.getDataFormat(DataFormatDefinition.java:80)

          at org.apache.camel.model.MarshalDefinition.createProcessor(MarshalDefinition.java:144)

          at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:437)

          at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:183)

          at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:817)

          ... 21 more

       

       

      I am looking for and answer but I don't found it.

       

      Please help me.

        • 1. Re: secureXML
          snatera

          I forgot this information, I am working with:

           

          • apache-servicemix-4.4.1-fuse-01-13

          • camel-cxf (2.8.0.fuse-01-13)

           

          • 2. Re: secureXML
            njiang

            Hi

             

            Did you install the camel-security feature ?

            The stack trace shows that camel-core cannot find the camel-security bundle.

             

            Willem

            • 3. Re: secureXML
              snatera

              I add the dependency in the Pom.xml

               

               

               

              I need anything else?

              • 4. Re: secureXML
                ffang

                Hi,

                Add the dependency in pom.xml doesn't means install the necessary dependency bundle in OSGi container,

                You need do something like

                features:install camel-xmlsecurity

                from FUSE ESB console

                Freeman

                • 5. Re: secureXML
                  snatera

                  Thanks for all, now the Bus is working fine 

                  • 6. Re: secureXML
                    snatera

                    I have another question,

                     

                    I did a client to receive the answer of the Bus, The answer of the bus have to be decryption?

                     

                    I have the follow:

                     

                     

                    • 7. Re: secureXML
                      snatera

                      I am seeing that my client does not receiving anything.

                       

                      I am not sure if the bus response is the correct 

                       

                      Without camel security the bus response is correct, but with camel security the bus response does not response anything.

                       

                      any suggestions?

                      • 8. Re: secureXML
                        njiang

                        Can you check the log of camel ?

                        There must be some thing useful

                         

                        Willem

                        • 9. Re: secureXML
                          snatera

                          Hi,

                           

                          Thanks for your help. I am reviewing the log of camel and it is show me the follow error:

                           

                          | WARN  | qtp6075435-138   | PhaseInterceptorChain            |  -  -  | Interceptor for servicio#hello has thrown exception, unwinding now

                          org.apache.cxf.interceptor.Fault: Illegal key size or default parameters

                               at org.apache.camel.component.cxf.CxfConsumer$1.checkFailure(CxfConsumer.java:194)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                               at org.apache.camel.component.cxf.CxfConsumer$1.setResponseBack(CxfConsumer.java:174)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                               at org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:103)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                               at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:68)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                               at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:232)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:939)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:185)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.Server.handleAsync(Server.java:391)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:443)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:922)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:780)[109:org.eclipse.jetty.http:7.4.5.fuse20111017]

                               at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)[109:org.eclipse.jetty.http:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:43)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:538)[110:org.eclipse.jetty.io:7.4.5.fuse20111017]

                               at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)[110:org.eclipse.jetty.io:7.4.5.fuse20111017]

                               at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)[115:org.eclipse.jetty.util:7.4.5.fuse20111017]

                               at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

                          Caused by: org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size or default parameters

                          Original Exception was java.security.InvalidKeyException: Illegal key size or default parameters

                               at org.apache.xml.security.encryption.XMLCipher.encryptKey(Unknown Source)[128:org.apache.servicemix.bundles.xmlsec:1.4.5.1]

                               at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.embedKeyInfoInEncryptedData(XMLSecurityDataFormat.java:434)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                               at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.encrypt(XMLSecurityDataFormat.java:290)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                               at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.encryptSymmetric(XMLSecurityDataFormat.java:250)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                               at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.marshal(XMLSecurityDataFormat.java:193)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:58)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:59)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:53)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.Pipeline.process(Pipeline.java:116)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.Pipeline.process(Pipeline.java:79)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:139)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:106)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                               at org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:88)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                               at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:68)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                               at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_26]

                               at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_26]

                               at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_26]

                               at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                               at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:939)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.Server.handle(Server.java:346)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:438)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                               ... 8 more

                           

                          I am new working with servicemix and apache camel and I am not understand the errors very well

                           

                          Thanks for all

                          • 10. Re: secureXML
                            snatera

                            I am again.

                             

                            Looking my beans.xml I did that:

                             

                             

                             

                            It show me the next error:

                             

                            11:06:55,452 | ERROR | qtp2429965-708   | DefaultErrorHandler              | 89 - org.apache.camel.camel-core - 2.8.0.fuse-01-13 | Failed delivery for exchangeId: ID-sicilia-40603-1325165906521-11-1. Exhausted after delivery attempt: 1 caught: org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size or default parameters

                            Original Exception was java.security.InvalidKeyException: Illegal key size or default parameters

                            org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size or default parameters

                            Original Exception was java.security.InvalidKeyException: Illegal key size or default parameters

                                 at org.apache.xml.security.encryption.XMLCipher.encryptKey(Unknown Source)[128:org.apache.servicemix.bundles.xmlsec:1.4.5.1]

                                 at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.embedKeyInfoInEncryptedData(XMLSecurityDataFormat.java:434)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                                 at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.encrypt(XMLSecurityDataFormat.java:290)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                                 at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.encryptSymmetric(XMLSecurityDataFormat.java:250)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                                 at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.marshal(XMLSecurityDataFormat.java:193)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:58)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:59)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:53)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.Pipeline.process(Pipeline.java:116)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.Pipeline.process(Pipeline.java:79)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:139)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:106)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:88)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                                 at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:68)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                                 at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_26]

                                 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_26]

                                 at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_26]

                                 at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:939)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.Server.handle(Server.java:346)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:438)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:922)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:780)[109:org.eclipse.jetty.http:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)[109:org.eclipse.jetty.http:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:43)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:538)[110:org.eclipse.jetty.io:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)[110:org.eclipse.jetty.io:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)[115:org.eclipse.jetty.util:7.4.5.fuse20111017]

                                 at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

                            11:06:55,456 | WARN  | qtp2429965-708   | PhaseInterceptorChain            |  -  -  | Interceptor for servicio#hello has thrown exception, unwinding now

                            org.apache.cxf.interceptor.Fault: Illegal key size or default parameters

                                 at org.apache.camel.component.cxf.CxfConsumer$1.checkFailure(CxfConsumer.java:194)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                                 at org.apache.camel.component.cxf.CxfConsumer$1.setResponseBack(CxfConsumer.java:174)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                                 at org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:103)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                                 at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:68)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                                 at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:232)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:939)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:185)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.Server.handleAsync(Server.java:391)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:443)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:922)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:780)[109:org.eclipse.jetty.http:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)[109:org.eclipse.jetty.http:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:43)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:538)[110:org.eclipse.jetty.io:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)[110:org.eclipse.jetty.io:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)[115:org.eclipse.jetty.util:7.4.5.fuse20111017]

                                 at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

                            Caused by: org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size or default parameters

                            Original Exception was java.security.InvalidKeyException: Illegal key size or default parameters

                                 at org.apache.xml.security.encryption.XMLCipher.encryptKey(Unknown Source)[128:org.apache.servicemix.bundles.xmlsec:1.4.5.1]

                                 at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.embedKeyInfoInEncryptedData(XMLSecurityDataFormat.java:434)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                                 at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.encrypt(XMLSecurityDataFormat.java:290)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                                 at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.encryptSymmetric(XMLSecurityDataFormat.java:250)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                                 at org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat.marshal(XMLSecurityDataFormat.java:193)[232:org.apache.camel.camel-xmlsecurity:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:58)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:59)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:53)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.Pipeline.process(Pipeline.java:116)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.Pipeline.process(Pipeline.java:79)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:139)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:106)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[89:org.apache.camel.camel-core:2.8.0.fuse-01-13]

                                 at org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:88)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                                 at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:68)[143:org.apache.camel.camel-cxf:2.8.0.fuse-01-13]

                                 at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_26]

                                 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_26]

                                 at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_26]

                                 at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[133:org.apache.cxf.bundle:2.4.3.fuse-00-13]

                                 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:939)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.Server.handle(Server.java:346)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:438)[114:org.eclipse.jetty.server:7.4.5.fuse20111017]

                                 ... 8 more

                            • 11. Re: secureXML
                              njiang

                              Can I have a look at your cxfEndpoint configuration ?

                              I just went through the route, I found you use the secureXML to marsh and unmarsh the

                              message. There are something interesting.

                               

                              If you don't set the dataformat of the cxfEndpoint it will use the POJO module, the message body just a list of POJO and secureXML only support the to encrypt or decode the DOM. I don't think they can work together. You may need to try PAYLOAD which message body is a Element list. You can also try the MESSAGE dataformat, the message body is a stream of the full SOAP envelope, and it is easy to be turn into DOM.

                               

                              Willem

                              • 12. Re: secureXML
                                snatera

                                Hi Williem,

                                 

                                Happy new year 2012.

                                 

                                It is my cxfEndpoint:

                                     

                                 

                                I hope for your reply, thanks for all.

                                • 13. Re: secureXML
                                  snatera

                                  Hi Williem,

                                   

                                  I have a question about secureXML options.

                                   

                                  In the option:

                                   

                                  secureTag :null , the entire payload is encrypted/decrypted. It encrypted/decrypted the <soap:Envelope><soap: Header> and <soap: body>?

                                   

                                  If I use secureTagContents:true with secureTag :null, it only encrypted/decrypted the <soap:body>?

                                  • 14. Re: secureXML
                                    davsclaus

                                    Hi

                                     

                                    Are you from outside US by any chance?

                                     

                                    There is some US export restrictions on the JDK/JVM, which limits the length/size of encryption keys that the JDK/JVM can encrypt/decrypt by default.

                                     

                                    In the past I have got bitten by this, and had to install an add-on to the JDK/JVM to allow unlimited length/size of keys.

                                     

                                    Maybe its what you see as well. I remember the exception message from the JDK/JVM was not very detailed and precise when this is the problem.

                                    1 2 Previous Next