Hi Werner, Ups... just forgot!
I'm using WSS4J Version 1.1.0. Is this bug fixed in the latest version? /greetz Dani > -----Original Message----- > From: Werner Dittmann [mailto:[EMAIL PROTECTED] > Sent: Montag, 3. Oktober 2005 22:06 > To: Albisser Daniel, INO-ITA > Cc: [email protected] > Subject: Re: Error by using Timestamp Action > > Danile, > > which version of WSS4J do you use? Straight out of the SVN or > the 1.1.0? > > Regards, > Werner > > [EMAIL PROTECTED] wrote: > > Hi all, > > > > I have already read the mail thread "ERROR : Signature Encrypt > > Timestamp" > > of this mailing list, the infos on > > http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ#time > > and http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ#npe, > but I could > > not solve my problem :o( > > > > My Client WSDD looks as following: > > ... > > <requestFlow> > > <handler name="DoSecuritySender" > > type="java:org.apache.ws.axis.security.WSDoAllSender"> > > <parameter name="action" value="Timestamp Signature"/> > > <parameter name="user" value="dummy"/> > > <parameter name="passwordCallbackClass" > > value="com.swisscom.fixnet.bluewin.b2bgw.security.PWCallback"/> > > <parameter name="signaturePropFile" > > value="client_request.properties" /> > > <parameter name="signatureKeyIdentifier" > value="DirectReference" /> > > <parameter name="signatureParts" > > > value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-w > > ss > > -wssecurity- > > > > > utility-1.0.xsd}Timestamp;{Element}{http://schemas.xmlsoap.org/soap/en > > ve > > lope/}Body" /> > > </handler> > > </requestFlow> > > ... > > > > My Server WSDD as follow: > > ... > > <requestFlow> > > <handler name="DoSecurityReceiver" > > type="java:org.apache.ws.axis.security.WSDoAllReceiver"> > > <parameter name="passwordCallbackClass" > > value="ch.bluewin.www.webservice.security.PWCallback"/> > > <parameter name="action" value="Timestamp Signature"/> > > <parameter name="signaturePropFile" > > value="server_request.properties" /> > > </handler> > > </requestFlow> > > ... > > > > By sending a request to the server I get following Exception: > > AxisFault > > faultCode: > > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > > faultSubcode: > > faultString: java.lang.NullPointerException > > faultActor: > > faultNode: > > faultDetail: > > {http://xml.apache.org/axis/}hostname:INOITAALDA1A > > > > java.lang.NullPointerException > > at > > > org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder. > > ja > > va:221) > > at > > > org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.j > > av > > a:128) > > at > > > org.apache.axis.encoding.DeserializationContext.endElement(Deserializa > > ti > > onContext.java:1087) > > at > > > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) > > at > > > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD > > is > > patcher.dispatch(Unknown Source) > > at > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk > > no > > wn 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 javax.xml.parsers.SAXParser.parse(SAXParser.java:375) > > at > > > org.apache.axis.encoding.DeserializationContext.parse(DeserializationC > > on > > text.java:227) > > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > > at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) > > at > > > org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderst > > an > > dChecker.java:62) > > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > > at org.apache.axis.client.Call.invokeEngine(Call.java:2765) > > at org.apache.axis.client.Call.invoke(Call.java:2748) > > at org.apache.axis.client.Call.invoke(Call.java:2424) > > at org.apache.axis.client.Call.invoke(Call.java:2347) > > at org.apache.axis.client.Call.invoke(Call.java:1804) > > at > > > ch.bluewin.www.webservice.ServiceBindingStub.createOrderByValue(Servic > > eB > > indingStub.java:1334) > > at > > com.swisscom.fixnet.bluewin.b2bgw.WSInvoker.main(WSInvoker.java:97) > > > > By removing the Timestamp action everything works well... hmmmm! > > > > Equipment: > > o JDK 1.5.0_03 > > o Tomcat 5.5 > > o Axis 1.2.1 > > > > Has anybody an idea about this problem? > > > > Thanks a lot for helping and... > > > > /greetz > > Dani > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
