You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Chau, Hoang" <Ho...@adp.com> on 2007/05/12 00:42:53 UTC

Re:How to set Transport out?

Hi all,

I used createEmptyConfiguration() in my test program that the reason
axis2 did not pick up the default transport out. I changed it to
createDefaultConfiguration but now I ran into another problem with null
pointer exception. Here is the error:

Exception in thread "main" java.lang.NullPointerException
	at
com.ctc.wstx.sw.BaseNsStreamWriter.doWriteDefaultNs(BaseNsStreamWriter.j
ava:529)
	at
com.ctc.wstx.sw.SimpleNsStreamWriter.writeDefaultNamespace(SimpleNsStrea
mWriter.java:113)
	at
com.ctc.wstx.sw.SimpleNsStreamWriter.writeNamespace(SimpleNsStreamWriter
..java:121)
	at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeNamespace(MTOMXMLStrea
mWriter.java:148)
	at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElemen
t(StreamingOMSerializer.java:238)
	at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(S
treamingOMSerializer.java:71)
	at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(Strea
mingOMSerializer.java:54)
	at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMS
erializerUtil.java:490)
	at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementI
mpl.java:783)
	at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(
OMElementImpl.java:808)
	at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOA
PEnvelopeImpl.java:234)
	at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPE
nvelopeImpl.java:218)
	at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(
OMElementImpl.java:808)
	at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.
java:418)
	at
org.apache.axis2.transport.http.SOAPMessageFormatter.getBytes(SOAPMessag
eFormatter.java:77)
	at
org.apache.axis2.transport.http.AxisRequestEntity.getContentLength(AxisR
equestEntity.java:109)
	at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.getRequestCo
ntentLength(EntityEnclosingMethod.java:332)
	at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.addContentLe
ngthRequestHeader(EntityEnclosingMethod.java:402)
	at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.addRequestHe
aders(EntityEnclosingMethod.java:370)
	at
org.apache.commons.httpclient.HttpMethodBase.writeRequestHeaders(HttpMet
hodBase.java:2036)
	at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase
..java:1919)
	at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:993)
	at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:397)
	at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:170)
	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
96)
	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
46)
	at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstrac
tHTTPSender.java:558)
	at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
76)
	at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
	at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:305)
	at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:201)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
	at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:330)
	at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)
	at
gov.ca.edd.FsetServiceFsetServiceSoapStub.SendTransmission(FsetServiceFs
etServiceSoapStub.java:843)

I appreciate any help


Hoang
-----------------------------------------
This message and any attachments are intended only for the use of
the addressee and may contain information that is privileged and
confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended
recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this
communication in error, notify the sender immediately by return
email and delete the message and any attachments from your system.


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