You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by ijaxahmed <ij...@gmail.com> on 2010/10/28 18:21:52 UTC
wss4j empty password problem
Hi Wss4j Team,
I am working Axis1.* with wss4j. I am facing problem and tried to find
solution but couldn't successed thats why sending you an email. i dont
know, i should send this email here or not.
the problem is, i have made one web service client with Axis1 and trying to
access a web service which is made in c# .Net. so this web service required
session token in message header. therefore i am using wss4j to send security
header in
the soap message. but the problem is i have to send empy(" ") password and
due to that i got exception
org.apache.ws.security.WSSecurityException: WSHandler: application provided
null or empty password
at org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:842)
at
org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:36)
at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:205)
at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
at Test.TestCAS.TestCreateEvent(TestCAS.java:248)
at Test.TestCAS.main(TestCAS.java:72)
here is my client_deploy.xml
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<transport name="http"
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration >
<requestFlow >
<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<parameter name="action" value="UsernameToken"/>
<parameter name="user"
value="9B88888EBD24439EA1FDAFDBFBDB3217~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01"/>
<parameter name="passwordType" value="PasswordText" />
<parameter name="password" value=" " />
<!--
<parameter name="passwordCallbackClass" value="Test.PWCallback"/>
<parameter name="passwordType" value="PasswordDigest"/>
-->
</handler>
</requestFlow >
</globalConfiguration >
</deployment>
PLease help me , i will be very thankful to you.
Regards,
ijaz
--
View this message in context: http://old.nabble.com/wss4j-empty-password-problem-tp30078281p30078281.html
Sent from the WSS4J mailing list archive at Nabble.com.
Re: wss4j empty password problem
Posted by Ijaz Ahmed <ij...@googlemail.com>.
Hi Everyone
I am trying to consume a web service which is develop in C#.net. as i think
i have added successfully wss4j in my client project to send username and
password to server in the request
. but now sending request to server with username and password getting
axis exception . i tried to find the issue but no luck. as i am using wss4j
with axis1.* the following exception is coming
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client<http://schemas.xmlsoap.org/soap/envelope/%7DClient>
faultSubcode:
faultString: System error.
faultActor:
faultNode:
faultDetail:
{http://faults.exceptions.api.server.open.cas.de}DataLayerFault:<code>MustUnderstandSoapException</code><message>System
error.</message><serverStackTrace> at
System.ServiceModel.Dispatcher.DispatchOperationRuntime.ValidateMustUnderstand(MessageRpc&
rpc)
at
System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&
rpc)
at
System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&
rpc)
at
System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&
rpc)
at
System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&
rpc)
at
System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&
rpc)
at
System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&
rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean
isOperationContextSet)</serverStackTrace><createdOn>0</createdOn>
System error.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
at
de.cas.open.server.api.exceptions.faults.DataLayerFault.getDeserializer(DataLayerFault.java:90)
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:597)
at
org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
at
org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
at
org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
at
org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
at
org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
at Test.TestCAS.TestCreateEvent(TestCAS.java:137)
at Test.TestCAS.main(TestCAS.java:80)
could you help me why this exception coming. here is my cliend_deploy.wsdd
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="
http://xml.apache.org/axis/wsdd/providers/java">
<transport name="http"
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration >
<requestFlow >
<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<parameter name="action" value="UsernameToken"/>
<parameter name="user"
value="D7A3C1FDBE064FAFBF4FBFCD933A0264~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01
"/>
<parameter name="passwordCallbackClass" value="Test.PWCallback"/>
<parameter name="passwordType" value="PasswordDigest"/>
</handler>
</requestFlow >
</globalConfiguration >
</deployment>
i am really thankful to you and expecting your kind response again . thank
you so much.
Regards,
ijaz
On Mon, Nov 8, 2010 at 12:37 PM, Colm O hEigeartaigh <co...@apache.org>wrote:
> Hi,
>
> Please send all user questions to users@ws.apache.org. I don't use
> WSS4J with Axis, and so I probably can't help you. Could you attach a
> copy of the SOAP request that is being generated? What does your
> server configuration look like?
>
> Colm.
>
> On Wed, Nov 3, 2010 at 6:01 PM, Ijaz Ahmed <ij...@googlemail.com>
> wrote:
> > Hi Coheigea,
> > Thanks again for your last reply, its helps me and i successfully given
> > password for request. but now after sending username and
> > password successfully and still getting axis exception. i tried to find
> the
> > issue but no luck. as i told before that i am using wss4j with axis1.*
> the
> > following exception is coming
> > AxisFault
> > faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
> > faultSubcode:
> > faultString: System error.
> > faultActor:
> > faultNode:
> > faultDetail:
> > {http://faults.exceptions.api.server.open.cas.de
> }DataLayerFault:<code>MustUnderstandSoapException</code><message>System
> > error.</message><serverStackTrace> at
> >
> System.ServiceModel.Dispatcher.DispatchOperationRuntime.ValidateMustUnderstand(MessageRpc&
> > rpc)
> > at
> >
> System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&
> > rpc)
> > at
> >
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&
> > rpc)
> > at
> >
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&
> > rpc)
> > at
> >
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&
> > rpc)
> > at
> >
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&
> > rpc)
> > at
> >
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&
> > rpc)
> > at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean
> > isOperationContextSet)</serverStackTrace><createdOn>0</createdOn>
> > System error.
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> > at
> >
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> > at
> >
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> > at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> > at java.lang.Class.newInstance0(Class.java:355)
> > at java.lang.Class.newInstance(Class.java:308)
> > at
> >
> org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
> > at
> >
> org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
> > at
> >
> de.cas.open.server.api.exceptions.faults.DataLayerFault.getDeserializer(DataLayerFault.java:90)
> > 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:597)
> > at
> >
> org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
> > at
> >
> org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
> > at
> >
> org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
> > at
> >
> org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
> > at
> >
> org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
> > at
> >
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
> > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
> > at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> > Source)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> > Source)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> > Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> > at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> > at
> >
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> > at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
> > at
> >
> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
> > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> > at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> > at org.apache.axis.client.Call.invoke(Call.java:2767)
> > at org.apache.axis.client.Call.invoke(Call.java:2443)
> > at org.apache.axis.client.Call.invoke(Call.java:2366)
> > at org.apache.axis.client.Call.invoke(Call.java:1812)
> > at
> >
> de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
> > at Test.TestCAS.TestCreateEvent(TestCAS.java:137)
> > at Test.TestCAS.main(TestCAS.java:80)
> > could you help me why this exception coming. here is my
> cliend_deploy.wsdd
> > <?xml version="1.0" encoding="UTF-8"?>
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> > <transport name="http"
> > pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> > <globalConfiguration >
> > <requestFlow >
> > <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
> > <parameter name="action" value="UsernameToken"/>
> > <parameter name="user"
> >
> value="D7A3C1FDBE064FAFBF4FBFCD933A0264~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01
> "/>
> > <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
> > <parameter name="passwordType" value="PasswordDigest"/>
> >
> > </handler>
> > </requestFlow >
> > </globalConfiguration >
> > </deployment>
> >
> > i am really thankful your response and expecting your kind
> response again .
> > thank you so much.
> > Regards,
> > ijaz
> > On Thu, Oct 28, 2010 at 8:55 PM, Colm O hEigeartaigh <
> coheigea@apache.org>
> > wrote:
> >>
> >> > <parameter name="password" value=" " />
> >>
> >> I'm not sure if it's possible to set a password via configuration in
> >> this way using the Axis1 handlers. If you change the value above to be
> >> a non-empty String, do you get the same message? The correct way to
> >> set a password is to write a password callback, as you have commented
> >> out:
> >>
> >> > <!--
> >> > <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
> >> > ...
> >> > -->
> >>
> >> Colm.
> >>
> >>
> >> On Thu, Oct 28, 2010 at 5:21 PM, ijaxahmed <ij...@gmail.com> wrote:
> >> >
> >> > Hi Wss4j Team,
> >> >
> >> > I am working Axis1.* with wss4j. I am facing problem and tried to find
> >> > solution but couldn't successed thats why sending you an email. i
> dont
> >> > know, i should send this email here or not.
> >> > the problem is, i have made one web service client with Axis1 and
> trying
> >> > to
> >> > access a web service which is made in c# .Net. so this web service
> >> > required
> >> > session token in message header. therefore i am using wss4j to send
> >> > security
> >> > header in
> >> > the soap message. but the problem is i have to send empy(" ") password
> >> > and
> >> > due to that i got exception
> >> >
> >> > org.apache.ws.security.WSSecurityException: WSHandler: application
> >> > provided
> >> > null or empty password
> >> > at
> >> >
> org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:842)
> >> > at
> >> >
> >> >
> org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:36)
> >> > at
> >> >
> >> >
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:205)
> >> > at
> >> >
> org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
> >> > at
> >> >
> >> >
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> >> > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >> > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> >> > at
> org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
> >> > at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> >> > at org.apache.axis.client.Call.invoke(Call.java:2767)
> >> > at org.apache.axis.client.Call.invoke(Call.java:2443)
> >> > at org.apache.axis.client.Call.invoke(Call.java:2366)
> >> > at org.apache.axis.client.Call.invoke(Call.java:1812)
> >> > at
> >> >
> >> >
> de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
> >> > at Test.TestCAS.TestCreateEvent(TestCAS.java:248)
> >> > at Test.TestCAS.main(TestCAS.java:72)
> >> >
> >> >
> >> > here is my client_deploy.xml
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> >> > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> >> >
> >> > <transport name="http"
> >> > pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> >> >
> >> > <globalConfiguration >
> >> >
> >> > <requestFlow >
> >> >
> >> > <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
> >> >
> >> > <parameter name="action" value="UsernameToken"/>
> >> >
> >> > <parameter name="user"
> >> >
> >> >
> value="9B88888EBD24439EA1FDAFDBFBDB3217~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01
> "/>
> >> >
> >> > <parameter name="passwordType" value="PasswordText" />
> >> >
> >> > <parameter name="password" value=" " />
> >> > <!--
> >> > <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
> >> >
> >> > <parameter name="passwordType" value="PasswordDigest"/>
> >> > -->
> >> >
> >> > </handler>
> >> >
> >> > </requestFlow >
> >> >
> >> > </globalConfiguration >
> >> >
> >> > </deployment>
> >> >
> >> >
> >> > PLease help me , i will be very thankful to you.
> >> >
> >> > Regards,
> >> > ijaz
> >> > --
> >> > View this message in context:
> >> >
> http://old.nabble.com/wss4j-empty-password-problem-tp30078281p30078281.html
> >> > Sent from the WSS4J mailing list archive at Nabble.com.
> >> >
> >> >
> >
> >
>
Re: wss4j empty password problem
Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi,
Please send all user questions to users@ws.apache.org. I don't use
WSS4J with Axis, and so I probably can't help you. Could you attach a
copy of the SOAP request that is being generated? What does your
server configuration look like?
Colm.
On Wed, Nov 3, 2010 at 6:01 PM, Ijaz Ahmed <ij...@googlemail.com> wrote:
> Hi Coheigea,
> Thanks again for your last reply, its helps me and i successfully given
> password for request. but now after sending username and
> password successfully and still getting axis exception. i tried to find the
> issue but no luck. as i told before that i am using wss4j with axis1.* the
> following exception is coming
> AxisFault
> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
> faultSubcode:
> faultString: System error.
> faultActor:
> faultNode:
> faultDetail:
> {http://faults.exceptions.api.server.open.cas.de}DataLayerFault:<code>MustUnderstandSoapException</code><message>System
> error.</message><serverStackTrace> at
> System.ServiceModel.Dispatcher.DispatchOperationRuntime.ValidateMustUnderstand(MessageRpc&
> rpc)
> at
> System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&
> rpc)
> at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&
> rpc)
> at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&
> rpc)
> at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&
> rpc)
> at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&
> rpc)
> at
> System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&
> rpc)
> at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean
> isOperationContextSet)</serverStackTrace><createdOn>0</createdOn>
> System error.
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at
> org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
> at
> org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
> at
> de.cas.open.server.api.exceptions.faults.DataLayerFault.getDeserializer(DataLayerFault.java:90)
> 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:597)
> at
> org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
> at
> org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
> at
> org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
> at
> org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
> at
> org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
> at
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> at
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
> at
> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:2443)
> at org.apache.axis.client.Call.invoke(Call.java:2366)
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at
> de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
> at Test.TestCAS.TestCreateEvent(TestCAS.java:137)
> at Test.TestCAS.main(TestCAS.java:80)
> could you help me why this exception coming. here is my cliend_deploy.wsdd
> <?xml version="1.0" encoding="UTF-8"?>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <transport name="http"
> pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> <globalConfiguration >
> <requestFlow >
> <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
> <parameter name="action" value="UsernameToken"/>
> <parameter name="user"
> value="D7A3C1FDBE064FAFBF4FBFCD933A0264~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01"/>
> <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
> <parameter name="passwordType" value="PasswordDigest"/>
>
> </handler>
> </requestFlow >
> </globalConfiguration >
> </deployment>
>
> i am really thankful your response and expecting your kind response again .
> thank you so much.
> Regards,
> ijaz
> On Thu, Oct 28, 2010 at 8:55 PM, Colm O hEigeartaigh <co...@apache.org>
> wrote:
>>
>> > <parameter name="password" value=" " />
>>
>> I'm not sure if it's possible to set a password via configuration in
>> this way using the Axis1 handlers. If you change the value above to be
>> a non-empty String, do you get the same message? The correct way to
>> set a password is to write a password callback, as you have commented
>> out:
>>
>> > <!--
>> > <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
>> > ...
>> > -->
>>
>> Colm.
>>
>>
>> On Thu, Oct 28, 2010 at 5:21 PM, ijaxahmed <ij...@gmail.com> wrote:
>> >
>> > Hi Wss4j Team,
>> >
>> > I am working Axis1.* with wss4j. I am facing problem and tried to find
>> > solution but couldn't successed thats why sending you an email. i dont
>> > know, i should send this email here or not.
>> > the problem is, i have made one web service client with Axis1 and trying
>> > to
>> > access a web service which is made in c# .Net. so this web service
>> > required
>> > session token in message header. therefore i am using wss4j to send
>> > security
>> > header in
>> > the soap message. but the problem is i have to send empy(" ") password
>> > and
>> > due to that i got exception
>> >
>> > org.apache.ws.security.WSSecurityException: WSHandler: application
>> > provided
>> > null or empty password
>> > at
>> > org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:842)
>> > at
>> >
>> > org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:36)
>> > at
>> >
>> > org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:205)
>> > at
>> > org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
>> > at
>> >
>> > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>> > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>> > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>> > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
>> > at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>> > at org.apache.axis.client.Call.invoke(Call.java:2767)
>> > at org.apache.axis.client.Call.invoke(Call.java:2443)
>> > at org.apache.axis.client.Call.invoke(Call.java:2366)
>> > at org.apache.axis.client.Call.invoke(Call.java:1812)
>> > at
>> >
>> > de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
>> > at Test.TestCAS.TestCreateEvent(TestCAS.java:248)
>> > at Test.TestCAS.main(TestCAS.java:72)
>> >
>> >
>> > here is my client_deploy.xml
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <deployment xmlns="http://xml.apache.org/axis/wsdd/"
>> > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>> >
>> > <transport name="http"
>> > pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>> >
>> > <globalConfiguration >
>> >
>> > <requestFlow >
>> >
>> > <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
>> >
>> > <parameter name="action" value="UsernameToken"/>
>> >
>> > <parameter name="user"
>> >
>> > value="9B88888EBD24439EA1FDAFDBFBDB3217~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01"/>
>> >
>> > <parameter name="passwordType" value="PasswordText" />
>> >
>> > <parameter name="password" value=" " />
>> > <!--
>> > <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
>> >
>> > <parameter name="passwordType" value="PasswordDigest"/>
>> > -->
>> >
>> > </handler>
>> >
>> > </requestFlow >
>> >
>> > </globalConfiguration >
>> >
>> > </deployment>
>> >
>> >
>> > PLease help me , i will be very thankful to you.
>> >
>> > Regards,
>> > ijaz
>> > --
>> > View this message in context:
>> > http://old.nabble.com/wss4j-empty-password-problem-tp30078281p30078281.html
>> > Sent from the WSS4J mailing list archive at Nabble.com.
>> >
>> >
>
>
Re: wss4j empty password problem
Posted by Colm O hEigeartaigh <co...@apache.org>.
> <parameter name="password" value=" " />
I'm not sure if it's possible to set a password via configuration in
this way using the Axis1 handlers. If you change the value above to be
a non-empty String, do you get the same message? The correct way to
set a password is to write a password callback, as you have commented
out:
> <!--
> <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
> ...
> -->
Colm.
On Thu, Oct 28, 2010 at 5:21 PM, ijaxahmed <ij...@gmail.com> wrote:
>
> Hi Wss4j Team,
>
> I am working Axis1.* with wss4j. I am facing problem and tried to find
> solution but couldn't successed thats why sending you an email. i dont
> know, i should send this email here or not.
> the problem is, i have made one web service client with Axis1 and trying to
> access a web service which is made in c# .Net. so this web service required
> session token in message header. therefore i am using wss4j to send security
> header in
> the soap message. but the problem is i have to send empy(" ") password and
> due to that i got exception
>
> org.apache.ws.security.WSSecurityException: WSHandler: application provided
> null or empty password
> at org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:842)
> at
> org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:36)
> at
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:205)
> at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:2443)
> at org.apache.axis.client.Call.invoke(Call.java:2366)
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at
> de.cas.open.server.api.eimws.EIMServiceHttpBindingStub.createObject(EIMServiceHttpBindingStub.java:6430)
> at Test.TestCAS.TestCreateEvent(TestCAS.java:248)
> at Test.TestCAS.main(TestCAS.java:72)
>
>
> here is my client_deploy.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>
> <transport name="http"
> pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>
> <globalConfiguration >
>
> <requestFlow >
>
> <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
>
> <parameter name="action" value="UsernameToken"/>
>
> <parameter name="user"
> value="9B88888EBD24439EA1FDAFDBFBDB3217~61793C2553AABB4AA2A3F189D47F66B9@C-CM-T01"/>
>
> <parameter name="passwordType" value="PasswordText" />
>
> <parameter name="password" value=" " />
> <!--
> <parameter name="passwordCallbackClass" value="Test.PWCallback"/>
>
> <parameter name="passwordType" value="PasswordDigest"/>
> -->
>
> </handler>
>
> </requestFlow >
>
> </globalConfiguration >
>
> </deployment>
>
>
> PLease help me , i will be very thankful to you.
>
> Regards,
> ijaz
> --
> View this message in context: http://old.nabble.com/wss4j-empty-password-problem-tp30078281p30078281.html
> Sent from the WSS4J mailing list archive at Nabble.com.
>
>