Hi, 

During our testing with CXF with a webservice client, we ran into
NullpointerException, when SAAJOutEndingInterceptor calls
message.getContent(OutputStream.class) which returns null. Please shed
some light on why this returns null which our message is NOT null, and
how we can fix the problem. 

Thanks!

-Yanping

Below is the content of the RequestMessage, class generated by wsdl2java
and taken by our wsdl2java generated Service function
marketTransactions:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><RequestMessage
xmlns="http://www.ercot.com/schema/2007-06/nodal/ews/message
<http://www.ercot.com/schema/2007-06/nodal/ews/message> "
xmlns:ns2="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w
ssecurity-utility-1.0.xsd
<http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-
utility-1.0.xsd>
"><Header><Verb>Create</Verb><Noun>BidSet</Noun><ReplayDetection><Nonce>
bidset_200806190000</Nonce><Created>2008-06-13T10:41:08-04:00</Created><
/ReplayDetection><Comment>Test program
upload</Comment></Header><Request><MarketType>DAM</MarketType><Operating
Date>2008-06-13T10:41:08.871-04:00</OperatingDate><TradingDate>2008-07-0
8-04:00</TradingDate><StartTime>2008-06-13T10:41:08.871-04:00</StartTime
><EndTime>2008-06-13T10:41:08.872-04:00</EndTime><Zone>NORTH2008</Zone><
/Request><Payload/></RequestMessage>

Log:

The submitting identity is: myuser
The password for the identity is: mypassword
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Fault
string, and possibly fault code, not set
        at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:182)
        at $Proxy39.marketTransactions(Unknown Source)
        at test.client.https.ErcotClient.main(ErcotClient.java:102)
Caused by: java.lang.NullPointerException
        at
com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:122
1)
        at
org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterce
ptor.handleMessage(SAAJOutInterceptor.java:116)
        at
org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterce
ptor.handleMessage(SAAJOutInterceptor.java:103)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
hain.java:220)
        at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
        at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
        at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
        at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:142)
        ... 2 more
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.

Reply via email to