You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by CXF-de'per <pr...@gmail.com> on 2008/09/12 00:26:04 UTC
WSHandler: Signature: error during message
procesingorg.apache.ws.security.WSSecurityException: General security error
(WSEncryptBody/WSSignEnvelope: Element to encrypt/sign not found:
http://www.w3.org/2003/05/soap-envelope, Body)
What could be the problem which makes this exception?
<bean id="wss4jOutConfiguration"
class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
<property name="properties">
<map>
<entry key="action"
value="UsernameToken Signature Encrypt" />
<entry key="user" value="fbest1" />
<entry key="encryptionKeyTransportAlgorithm"
value="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
<entry key="signatureParts"
value="{}{http://www.w3.org/2003/05/soap-envelope}Body;{}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}UsernameToken"
/>
<entry key="encryptionParts"
value="{}{http://www.w3.org/2003/05/soap-envelope}Body;{}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}UsernameToken"
/>
<entry key="signatureKeyIdentifier"
value="DirectReference" />
<entry key="encryptionKeyIdentifier"
value="SKIKeyIdentifier" />
<entry key="signaturePropFile"
value="crypto.properties" />
<entry>
<key>
<value>passwordCallbackRef</value>
</key>
<ref bean="passwordCallback" />
</entry>
</map>
</property>
</bean>
Caused by: org.apache.cxf.binding.soap.SoapFault: SECURITY_FAILED
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:181)
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:42)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205)
at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
... 90 more
Caused by: org.apache.ws.security.WSSecurityException: WSHandler: Signature:
error during message procesingorg.apache.ws.security.WSSecurityException:
General security error (WSEncryptBody/WSSignEnvelope: Element to
encrypt/sign not found: http://www.w3.org/2003/05/soap-envelope, Body)
at
org.apache.ws.security.action.SignatureAction.execute(SignatureAction.java:57)
at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:166)
... 96 more
2008-09-11 18:16:09,416 INFO [[/FirstBest-UMS]] [Flex] [ERROR]
[Message.General] Exception when invoking service: remoting-service
with message: Flex Message (flex.messaging.messages.RemotingMessage)
operation = submitById
clientId = 27C25D82-FF0C-3331-F572-2058EEBD4EF5
destination = submissionService
messageId = 1723F68F-D5B2-0714-AE4D-5375B46FE2A3
timestamp = 1221170934895
timeToLive = 1221170934895
body = null
hdr(DSEndpoint) = my-rtmp
hdr(DSId) = 2625F50D-C10A-76D1-147B-B40177D19B97
exception: flex.messaging.MessageException:
10.0.1.139-5596-2008-09-11-18-16-09,307:
javax.xml.ws.soap.SOAPFaultException: SECURITY_FAILED
2008-09-11 18:16:09,431 INFO [[/FirstBest-UMS]] [Flex] [ERROR]
[Message.General] Root cause: javax.xml.ws.soap.SOAPFaultException:
SECURITY_FAILED
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175)
at $Proxy159.getNewSubmissionNumber(Unknown Source)
at
com.firstbest.pso.amsf.bpm.IcamsSubmissionNumberHandler.execute(IcamsSubmissionNumberHandler.java:63)
at
org.springmodules.workflow.jbpm31.JbpmHandlerProxy.execute(JbpmHandlerProxy.java:133)
at org.jbpm.graph.def.Action.execute(Action.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at
org.jbpm.graph.def.Action_$$_javassist_201.execute(Action_$$_javassist_201.java)
at org.jbpm.graph.def.Action.execute(Action.java:116)
at
org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:235)
at
org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212)
at
org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:182)
at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:166)
at org.jbpm.graph.def.Node.enter(Node.java:301)
at org.jbpm.graph.def.Transition.take(Transition.java:119)
at org.jbpm.graph.def.Node.leave(Node.java:383)
at
org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:136)
at org.jbpm.graph.node.Decision.execute(Decision.java:146)
at org.jbpm.graph.def.Node.enter(Node.java:316)
at org.jbpm.graph.def.Transition.take(Transition.java:119)
at org.jbpm.graph.def.Node.leave(Node.java:383)
at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at
org.jbpm.graph.def.Node_$$_javassist_145.leave(Node_$$_javassist_145.java)
at org.jbpm.graph.exe.Token.signal(Token.java:178)
at org.jbpm.graph.exe.Token.signal(Token.java:141)
at
com.firstbest.bpm.BPMServiceImpl$2.doInJbpm(BPMServiceImpl.java:83)
at
org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:86)
at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
at
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at
org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:79)
at com.firstbest.bpm.BPMServiceImpl.signal(BPMServiceImpl.java:78)
at
com.firstbest.bpm.BPMServiceImpl$$FastClassByCGLIB$$184bfc0c.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at
com.firstbest.bpm.BPMServiceImpl$$EnhancerByCGLIB$$aa881776.signal(<generated>)
at
com.firstbest.underwriting.submission.AbstractSubmissionService$1.doInTransaction(AbstractSubmissionService.java:191)
at
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at
com.firstbest.underwriting.submission.AbstractSubmissionService.signal(AbstractSubmissionService.java:177)
at
com.firstbest.underwriting.submission.AbstractSubmissionService.signal(AbstractSubmissionService.java:237)
at
com.firstbest.underwriting.submission.SubmissionServiceImpl.submit(SubmissionServiceImpl.java:611)
at
com.firstbest.underwriting.submission.SubmissionServiceImpl.submitById(SubmissionServiceImpl.java:645)
at
com.firstbest.underwriting.submission.SubmissionServiceImpl$$FastClassByCGLIB$$411ba6aa.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
at
com.firstbest.monitor.OperationMonitorAspect.monitor(OperationMonitorAspect.java:42)
at sun.reflect.GeneratedMethodAccessor245.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
at
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:160)
at
org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at
com.firstbest.underwriting.submission.SubmissionServiceImpl$$EnhancerByCGLIB$$d1fd759e.submitById(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:168)
at
com.firstbest.flex.RemotingServiceJavaAdapter.invokeSuper(RemotingServiceJavaAdapter.java:95)
at
com.firstbest.flex.RemotingServiceJavaAdapter.invoke(RemotingServiceJavaAdapter.java:136)
at
flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:173)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1165)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:757)
at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:888)
at
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:428)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.cxf.binding.soap.SoapFault: SECURITY_FAILED
--
View this message in context: http://www.nabble.com/WSHandler%3A-Signature%3A-error-during-message-procesingorg.apache.ws.security.WSSecurityException%3A-General-security-error-%28WSEncryptBody-WSSignEnvelope%3A-Element-to-encrypt-sign-not-found%3A-http%3A--www.w3.org-2003-05-soap-envelope%2C-Body%29-tp19446019p19446019.html
Sent from the cxf-user mailing list archive at Nabble.com.