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 Paul Hunnisett <pa...@blueyonder.co.uk> on 2002/09/30 21:28:42 UTC

NumberFormatException

I am currently trying to build a server specifically for Axis, with a
few extra features, in order to provide something of a complete Java web
services solution (see www.lombok.org.uk for details).  I am, however,
stuck in that every time I try to access a service, including the
AdminService at deployment time, I get a NumberFormatException.  The
server itself throws a NullPointer, but the client class throws a
NumberFormatException.

The stack trace says that this NumberFormatException originates from
HTTPSender's readFromSocket() method.  I've taken a look at the source
for this class and, must admit, I can't see how the string "iso-8859-1"
could be broken down and converted to an int from this code - I'm no
expert in the breaking down of Strings, but it doesn't look right to
me.  I must, however, be missing something - since I'm sure I've had it
working in Tomcat, so it must be a problem with my server.  I'm afraid
that I'm stumped.  I am currently using axis beta3, as attempts to
incorporate later releases have proved problematic - I've tried, hoping
that it will solve this problem - but it causes others.

If anyone feels that they may be able to shed any light on this, or
simply point in the right direction, I would be grateful.

regards

Paul Hunnisett
www.lombok.org.uk




Re: NumberFormatException - really need some help!

Posted by Paul Hunnisett <pa...@blueyonder.co.uk>.
If anyone gets a chance, please download the server (www.lombok.org.uk)
and try to deploy a service (I've been trying to get the axis stock
sample to work).  You will (probably) see the problem I've had.  I would
really appreciate any clues as to what is causing this?  I have altered
HTTPSender.readFromSocket() to parse 8859 as an int instead of the tmp
String, but this has made no difference.

Any thoughts?

Paul Hunnisett
www.lombok.org.uk

On Mon, 2002-09-30 at 20:28, Paul Hunnisett wrote:
> I am currently trying to build a server specifically for Axis, with a
> few extra features, in order to provide something of a complete Java web
> services solution (see www.lombok.org.uk for details).  I am, however,
> stuck in that every time I try to access a service, including the
> AdminService at deployment time, I get a NumberFormatException.  The
> server itself throws a NullPointer, but the client class throws a
> NumberFormatException.
> 
> The stack trace says that this NumberFormatException originates from
> HTTPSender's readFromSocket() method.  I've taken a look at the source
> for this class and, must admit, I can't see how the string "iso-8859-1"
> could be broken down and converted to an int from this code - I'm no
> expert in the breaking down of Strings, but it doesn't look right to
> me.  I must, however, be missing something - since I'm sure I've had it
> working in Tomcat, so it must be a problem with my server.  I'm afraid
> that I'm stumped.  I am currently using axis beta3, as attempts to
> incorporate later releases have proved problematic - I've tried, hoping
> that it will solve this problem - but it causes others.
> 
> If anyone feels that they may be able to shed any light on this, or
> simply point in the right direction, I would be grateful.
> 
> regards
> 
> Paul Hunnisett
> www.lombok.org.uk
> 
> 
>