You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pchakinala <pr...@planetsoft.com> on 2011/05/04 16:45:56 UTC
org.apache.xml.security.signature.ReferenceNotInitializedException:
Element process1122Response has a relative namespace: xmlns="tpps"
Hi,
I found below exception when working with cxf client to call webservice
using Signature. Its working fine with user name token approach. My usecase
flow is like below.
cxf client [Observed Exceptions here] ---> cxf bc consumer --->cxf bc
provider --->Third Party service
[java] WARNING: Interceptor for
{tpps}TPPServiceService#{tpps}process1122Response has
thrown exception, unwinding now
[java] org.apache.cxf.binding.soap.SoapFault: Security processing
failed.
[java] at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutIntercepto
rInternal.handleMessage(WSS4JOutInterceptor.java:272)
[java] at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutIntercepto
rInternal.handleMessage(WSS4JOutInterceptor.java:134)
[java] at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptor
Chain.java:255)
[java] at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
[java] at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
[java] at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
[java] at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
[java] at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
[java] at $Proxy36.process1122Response(Unknown Source)
[java] at demo.order.client.Client.main(Client.java:48)
[java] Caused by: org.apache.ws.security.WSSecurityException: Error
during Signature:
; nested exception is:
[java] org.apache.ws.security.WSSecurityException: Signature
creation failed; nes
ted exception is:
[java]
org.apache.xml.security.signature.ReferenceNotInitializedException: Elemen
t process1122Response has a relative namespace: xmlns="tpps"
[java] Original Exception was
org.apache.xml.security.signature.ReferenceNotInitializ
edException: Element process1122Response has a relative namespace:
xmlns="tpps"
[java] Original Exception was
org.apache.xml.security.signature.XMLSignatureException
: Element process1122Response has a relative namespace: xmlns="tpps".
Here attached full exception stack trace along with Third party service WSDL
File. I have constructed proxy classes using cxf wsdl2java tool.Is there any
problem with WSDL file or generated proxy classes.Please suggest
http://servicemix.396122.n5.nabble.com/file/n4370042/config.zip config.zip
Regards,
Praveen Chakinala
--
View this message in context: http://servicemix.396122.n5.nabble.com/org-apache-xml-security-signature-ReferenceNotInitializedException-Element-process1122Response-has-a-tp4370042p4370042.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE:
org.apache.xml.security.signature.ReferenceNotInitializedExcepti on:
Elementprocess1122Response has a relative namespace: xmlns="tpps"
Posted by pchakinala <pr...@planetsoft.com>.
Hi Samuel
In this scenarios ,its problem with namespace in wsdl file. Earlier
targetNamespace value is "tpps". It worked fine after changing it to
http://www.test.com/tpp.
<wsdl:definitions targetNamespace="tpps"
changed to
<wsdl:definitions targetNamespace="http://www.test.com/tpp"
Regards,
Praveen Chakinala
--
View this message in context: http://servicemix.396122.n5.nabble.com/org-apache-xml-security-signature-ReferenceNotInitializedException-Element-process1122Response-has-a-tp4370042p4537678.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE:
org.apache.xml.security.signature.ReferenceNotInitializedExcepti on:
Elementprocess1122Response has a relative namespace: xmlns="tpps"
Posted by Samuel <sa...@gmail.com>.
What's the solution to this problem ?
--
View this message in context: http://servicemix.396122.n5.nabble.com/org-apache-xml-security-signature-ReferenceNotInitializedException-Element-process1122Response-has-a-tp4370042p4535962.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE:
org.apache.xml.security.signature.ReferenceNotInitializedExcepti on:
Elementprocess1122Response has a relative namespace: xmlns="tpps"
Posted by pchakinala <pr...@planetsoft.com>.
Thanks for the Update. Its problem with WSDL File.
Regards,
Praveen Chakinala
From: Freeman-2 [via ServiceMix] [mailto:ml-node+4371724-1761452684-113647@n5.nabble.com]
Sent: Thursday, May 05, 2011 7:33 AM
To: pchakinala
Subject: Re:org.apache.xml.security.signature.ReferenceNotInitializedExcepti on: Elementprocess1122Response has a relative namespace: xmlns="tpps"
Hi,
This error happen when standalone cxf client try to send out request,
no servicemix get involved at all at this stage.
We actually have a test case which have a client configure with
signature action, you may need take a look[1]
[1]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/security/client.xml
Freeman
On 2011-5-4, at 下午10:45, pchakinala wrote:
> Hi,
> I found below exception when working with cxf client to call
> webservice
> using Signature. Its working fine with user name token approach. My
> usecase
> flow is like below.
>
> cxf client [Observed Exceptions here] ---> cxf bc consumer --->cxf bc
> provider --->Third Party service
>
>
> [java] WARNING: Interceptor for
> {tpps}TPPServiceService#{tpps}process1122Response has
> thrown exception, unwinding now
> [java] org.apache.cxf.binding.soap.SoapFault: Security processing
> failed.
> [java] at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor
> $WSS4JOutIntercepto
> rInternal.handleMessage(WSS4JOutInterceptor.java:272)
> [java] at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor
> $WSS4JOutIntercepto
> rInternal.handleMessage(WSS4JOutInterceptor.java:134)
> [java] at
> org
> .apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptor
> Chain.java:255)
> [java] at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
> [java] at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
> [java] at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
> [java] at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
> [java] at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
> 124)
>
> [java] at $Proxy36.process1122Response(Unknown Source)
> [java] at demo.order.client.Client.main(Client.java:48)
> [java] Caused by: org.apache.ws.security.WSSecurityException:
> Error
> during Signature:
> ; nested exception is:
> [java] org.apache.ws.security.WSSecurityException: Signature
> creation failed; nes
> ted exception is:
> [java]
> org.apache.xml.security.signature.ReferenceNotInitializedException:
> Elemen
> t process1122Response has a relative namespace: xmlns="tpps"
> [java] Original Exception was
> org.apache.xml.security.signature.ReferenceNotInitializ
> edException: Element process1122Response has a relative namespace:
> xmlns="tpps"
> [java] Original Exception was
> org.apache.xml.security.signature.XMLSignatureException
> : Element process1122Response has a relative namespace: xmlns="tpps".
>
> Here attached full exception stack trace along with Third party
> service WSDL
> File. I have constructed proxy classes using cxf wsdl2java tool.Is
> there any
> problem with WSDL file or generated proxy classes.Please suggest
> http://servicemix.396122.n5.nabble.com/file/n4370042/config.zip <http://servicemix.396122.n5.nabble.com/file/n4370042/config.zip?by-user=t>
> config.zip
>
> Regards,
> Praveen Chakinala
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/org-apache-xml-security-signature-ReferenceNotInitializedException-Element-process1122Response-has-a-tp4370042p4370042.html <http://servicemix.396122.n5.nabble.com/org-apache-xml-security-signature-ReferenceNotInitializedException-Element-process1122Response-has-a-tp4370042p4370042.html?by-user=t>
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[hidden email]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
_____
If you reply to this email, your message will be added to the discussion below:
http://servicemix.396122.n5.nabble.com/org-apache-xml-security-signature-ReferenceNotInitializedException-Element-process1122Response-has-a-tp4370042p4371724.html
To unsubscribe from org.apache.xml.security.signature.ReferenceNotInitializedException: Element process1122Response has a relative namespace: xmlns="tpps", click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4370042&code=cHJhdmVlbi5jaGFraW5hbGFAcGxhbmV0c29mdC5jb218NDM3MDA0MnwtMjAwNDE3OTQwNg==> .
--
View this message in context: http://servicemix.396122.n5.nabble.com/org-apache-xml-security-signature-ReferenceNotInitializedException-Element-process1122Response-has-a-tp4370042p4372714.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: org.apache.xml.security.signature.ReferenceNotInitializedException: Element process1122Response has a relative namespace: xmlns="tpps"
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
This error happen when standalone cxf client try to send out request,
no servicemix get involved at all at this stage.
We actually have a test case which have a client configure with
signature action, you may need take a look[1]
[1]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/security/client.xml
Freeman
On 2011-5-4, at 下午10:45, pchakinala wrote:
> Hi,
> I found below exception when working with cxf client to call
> webservice
> using Signature. Its working fine with user name token approach. My
> usecase
> flow is like below.
>
> cxf client [Observed Exceptions here] ---> cxf bc consumer --->cxf bc
> provider --->Third Party service
>
>
> [java] WARNING: Interceptor for
> {tpps}TPPServiceService#{tpps}process1122Response has
> thrown exception, unwinding now
> [java] org.apache.cxf.binding.soap.SoapFault: Security processing
> failed.
> [java] at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor
> $WSS4JOutIntercepto
> rInternal.handleMessage(WSS4JOutInterceptor.java:272)
> [java] at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor
> $WSS4JOutIntercepto
> rInternal.handleMessage(WSS4JOutInterceptor.java:134)
> [java] at
> org
> .apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptor
> Chain.java:255)
> [java] at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
> [java] at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
> [java] at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
> [java] at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
> [java] at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
> 124)
>
> [java] at $Proxy36.process1122Response(Unknown Source)
> [java] at demo.order.client.Client.main(Client.java:48)
> [java] Caused by: org.apache.ws.security.WSSecurityException:
> Error
> during Signature:
> ; nested exception is:
> [java] org.apache.ws.security.WSSecurityException: Signature
> creation failed; nes
> ted exception is:
> [java]
> org.apache.xml.security.signature.ReferenceNotInitializedException:
> Elemen
> t process1122Response has a relative namespace: xmlns="tpps"
> [java] Original Exception was
> org.apache.xml.security.signature.ReferenceNotInitializ
> edException: Element process1122Response has a relative namespace:
> xmlns="tpps"
> [java] Original Exception was
> org.apache.xml.security.signature.XMLSignatureException
> : Element process1122Response has a relative namespace: xmlns="tpps".
>
> Here attached full exception stack trace along with Third party
> service WSDL
> File. I have constructed proxy classes using cxf wsdl2java tool.Is
> there any
> problem with WSDL file or generated proxy classes.Please suggest
> http://servicemix.396122.n5.nabble.com/file/n4370042/config.zip
> config.zip
>
> Regards,
> Praveen Chakinala
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/org-apache-xml-security-signature-ReferenceNotInitializedException-Element-process1122Response-has-a-tp4370042p4370042.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference