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 Jim Alateras <ji...@comware.com.au> on 2007/03/30 02:02:32 UTC
NullPointerException using ServiceClient
Folks,
Just wondering if anyone has encountered this NPE during the creation of
a ServiceClient
[CODE]
ServiceClient client = new ServiceClient(null, new
URL("file:src/main/wsdl/SimplePAProcess.wsdl"),
new
QName("http://dlgpsr.qld.gov.au/eda/bpms/200611/SimplePAProcess/Client_To_SimplePAProcess",
"Client_To_SimplePAProcess_Service"),
"Client_To_SimplePAProcess_Http");
[EXCEPTION]
java.lang.NullPointerException
at
org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
at
com.comware.intalio.testing.TestSimplePAProcess.testCreationofSOAPEnvelope(TestSimplePAProcess.java:64)
cheers
</jima>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: NullPointerException using ServiceClient
Posted by Davanum Srinivas <da...@gmail.com>.
It means all the required jars are not present. especially the ones
dealing with transport like the commons http client and it's
dependencies.
-- dims
On 3/29/07, Jim Alateras <ji...@comware.com.au> wrote:
> Folks,
>
> Just wondering if anyone has encountered this NPE during the creation of
> a ServiceClient
>
> [CODE]
>
> ServiceClient client = new ServiceClient(null, new
> URL("file:src/main/wsdl/SimplePAProcess.wsdl"),
> new
> QName("http://dlgpsr.qld.gov.au/eda/bpms/200611/SimplePAProcess/Client_To_SimplePAProcess",
> "Client_To_SimplePAProcess_Service"),
> "Client_To_SimplePAProcess_Http");
>
>
>
> [EXCEPTION]
>
> java.lang.NullPointerException
> at
> org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
> at
> com.comware.intalio.testing.TestSimplePAProcess.testCreationofSOAPEnvelope(TestSimplePAProcess.java:64)
>
>
> cheers
> </jima>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org