You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by Pietro Romanazzi <p....@tno.it> on 2007/02/13 11:40:21 UTC

NullPointerException with Timestamp action on server side

Dears,

I get the following error with timestamp action (signature goes fine) on the server side
Note that the timestamp action goes fine on the response (if I omit timestamp in the request)
I checked that libraries on the client and server are the same... Getting crazy.
Tried to redeploy all on a clean Tomcat. Same result.

Environment:
wss4j 1.5.1, Tomcat 5.5.20, JDK 1.5.0_08, Axis 1.4, Xerces 2.9.0 (tried also 2.8.1), Xalan 2.7.0

The parser class printout on the server is org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@5aebd9

Here the nightmare...

java.lang.NullPointerException
	at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
	at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
	at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.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$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 org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
	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.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:114)
	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:190)
	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:1910)
	at samples.message.TestMsg.doit(TestMsg.java:106)
	at samples.message.TestMsg.main(TestMsg.java:127)

here the client deploy fragment

<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<parameter name="action" value="Timestamp Signature"/>
<parameter name="user" value="privkey"/>
<parameter name="passwordCallbackClass" value="PWCallback"/>
<parameter name="signatureKeyIdentifier" value="DirectReference"/>
<parameter name="signaturePropFile" value="cryptoIAIK.properties"/>
</handler>

and the server one

<service name="MessageService" style="message">
     <requestFlow>
     <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
     <parameter name="passwordCallbackClass" value="PWCallback"/>
     <parameter name="action" value="Timestamp Signature"/>
     <parameter name="signaturePropFile" value="cryptoIAIK.properties"/>
     </handler>
     </requestFlow>
<responseFlow >
<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<parameter name="action" value="Timestamp Signature"/>
<parameter name="user" value="privkey"/>
<parameter name="passwordCallbackClass" value="PWCallback"/>
<parameter name="signatureKeyIdentifier" value="DirectReference"/>
<parameter name="signaturePropFile" value="cryptoIAIK.properties"/>
<parameter name="signatureParts" value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-
1.0.xsd}Timestamp;{}{http://schemas.xmlsoap.org/soap/envelope/}Body" />
</handler>
</responseFlow >
    <parameter name="className" value="samples.message.MessageService" />
    <parameter name="allowedMethods" value="process" />
</service>

Any Idea?

Thanks and regards,

Pietro

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: NullPointerException with Timestamp action on server side

Posted by Pietro Romanazzi <p....@tno.it>.
Sorry,

it was a problem on my side implementing the soap method.

do not lose any time on this.

Thanks and sorry again.

Regards,

Pietro

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: NullPointerException with Timestamp action on server side

Posted by Pietro Romanazzi <p....@tno.it>.
Sorry,

it was a problem on my side implementing the soap method.

do not lose any time on this.

Thanks and sorry again.

Regards,

Pietro

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org