You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Jim Hazen <ji...@myplay.com> on 2001/05/24 23:28:40 UTC

NPE in HTTPUtils.post

I get a NullPointerException with I call HTTPUtils.post like:

HTTPUtils.post(url, tm, 200, null, 0);

If I change the null to a String object this doesn't happen.  The JavaDoc says
to pass in null if you're not using a proxy.

Is this a bug?  What is the correct way to call this method without a proxy?

-Jim


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: NPE in HTTPUtils.post

Posted by Jim Hazen <ji...@myplay.com>.
Never mind.  The problem was that I was constructing a TransportMessage with an
evelope string and not calling save() to generate the byte[].

-Jim

> I get a NullPointerException with I call HTTPUtils.post like:
>
> HTTPUtils.post(url, tm, 200, null, 0);
>
> If I change the null to a String object this doesn't happen.  The JavaDoc says
> to pass in null if you're not using a proxy.
>
> Is this a bug?  What is the correct way to call this method without a proxy?
>
> -Jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: NPE in HTTPUtils.post

Posted by Jim Hazen <ji...@myplay.com>.
Never mind.  The problem was that I was constructing a TransportMessage with an
evelope string and not calling save() to generate the byte[].

-Jim

> I get a NullPointerException with I call HTTPUtils.post like:
>
> HTTPUtils.post(url, tm, 200, null, 0);
>
> If I change the null to a String object this doesn't happen.  The JavaDoc says
> to pass in null if you're not using a proxy.
>
> Is this a bug?  What is the correct way to call this method without a proxy?
>
> -Jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org