You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Andre Tost <an...@yahoo.com> on 2001/09/06 04:40:16 UTC

StringIndexOutOfBoundsException using SOAP 2.2, works fine in SOAP 2.1

I make a call to a SOAP service using the
Call.invoke() method. The client runs within a servlet
in Tomcat. This works fine if I add the SOAP 2.1 jar
file to the classpath, however, if I use the SOAP 2.2
jar file, I get the following exception stack trace
(just an extract):

java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
        at
java.lang.StringBuffer.charAt(StringBuffer.java:289)
        at
org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:288)
        at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
tion.java:282)
        at
org.apache.soap.rpc.Call.invoke(Call.java:205)

Has anyone seen this before? Any way to fix it?

Thanks in advance,
Andre Tost

=====
Andre Tost
andretost@yahoo.com


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Re: StringIndexOutOfBoundsException using SOAP 2.2, works fine in SOAP 2.1

Posted by Andre Tost <an...@yahoo.com>.
Same thing here - I found this in many services I
picked from xmethods. I saw that the 2.1 version of
the code is not looking for this ';', but there must
be a reason for why it is there and why it makes some
services fail.

It's good to know that at least I'm not the only one
with this problem.

--- Dmitri Colebatch <di...@bigpond.net.au> wrote:
> yep - I saw that yesterday.  Got it when invoking an
> ms server I picked at
> random from xmethods.  I couldn' see how its
> occurring at the time, I just
> picked a different service for testing.  apache soap
> was looking for a ';'
> somewhere in the response, i assume in the header,
> and trying to remove
> it... that was my reading of it anyway...
> 
> hth
> dim
> 
> 
> On Wed, 5 Sep 2001, Andre Tost wrote:
> 
> > I make a call to a SOAP service using the
> > Call.invoke() method. The client runs within a
> servlet
> > in Tomcat. This works fine if I add the SOAP 2.1
> jar
> > file to the classpath, however, if I use the SOAP
> 2.2
> > jar file, I get the following exception stack
> trace
> > (just an extract):
> > 
> > java.lang.StringIndexOutOfBoundsException: String
> > index out of range: -1
> >         at
> >
> java.lang.StringBuffer.charAt(StringBuffer.java:289)
> >         at
> >
>
org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:288)
> >         at
> >
>
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
> > tion.java:282)
> >         at
> > org.apache.soap.rpc.Call.invoke(Call.java:205)
> > 
> > Has anyone seen this before? Any way to fix it?
> > 
> > Thanks in advance,
> > Andre Tost
> > 
> > =====
> > Andre Tost
> > andretost@yahoo.com
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get email alerts & NEW webcam video instant
> messaging with Yahoo! Messenger
> > http://im.yahoo.com
> > 
> 


=====
Andre Tost
andretost@yahoo.com


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Re: StringIndexOutOfBoundsException using SOAP 2.2, works fine in SOAP 2.1

Posted by Andre Tost <an...@yahoo.com>.
Same thing here - I found this in many services I
picked from xmethods. I saw that the 2.1 version of
the code is not looking for this ';', but there must
be a reason for why it is there and why it makes some
services fail.

It's good to know that at least I'm not the only one
with this problem.

--- Dmitri Colebatch <di...@bigpond.net.au> wrote:
> yep - I saw that yesterday.  Got it when invoking an
> ms server I picked at
> random from xmethods.  I couldn' see how its
> occurring at the time, I just
> picked a different service for testing.  apache soap
> was looking for a ';'
> somewhere in the response, i assume in the header,
> and trying to remove
> it... that was my reading of it anyway...
> 
> hth
> dim
> 
> 
> On Wed, 5 Sep 2001, Andre Tost wrote:
> 
> > I make a call to a SOAP service using the
> > Call.invoke() method. The client runs within a
> servlet
> > in Tomcat. This works fine if I add the SOAP 2.1
> jar
> > file to the classpath, however, if I use the SOAP
> 2.2
> > jar file, I get the following exception stack
> trace
> > (just an extract):
> > 
> > java.lang.StringIndexOutOfBoundsException: String
> > index out of range: -1
> >         at
> >
> java.lang.StringBuffer.charAt(StringBuffer.java:289)
> >         at
> >
>
org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:288)
> >         at
> >
>
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
> > tion.java:282)
> >         at
> > org.apache.soap.rpc.Call.invoke(Call.java:205)
> > 
> > Has anyone seen this before? Any way to fix it?
> > 
> > Thanks in advance,
> > Andre Tost
> > 
> > =====
> > Andre Tost
> > andretost@yahoo.com
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get email alerts & NEW webcam video instant
> messaging with Yahoo! Messenger
> > http://im.yahoo.com
> > 
> 


=====
Andre Tost
andretost@yahoo.com


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Re: StringIndexOutOfBoundsException using SOAP 2.2, works fine in SOAP 2.1

Posted by Dmitri Colebatch <di...@bigpond.net.au>.
yep - I saw that yesterday.  Got it when invoking an ms server I picked at
random from xmethods.  I couldn' see how its occurring at the time, I just
picked a different service for testing.  apache soap was looking for a ';'
somewhere in the response, i assume in the header, and trying to remove
it... that was my reading of it anyway...

hth
dim


On Wed, 5 Sep 2001, Andre Tost wrote:

> I make a call to a SOAP service using the
> Call.invoke() method. The client runs within a servlet
> in Tomcat. This works fine if I add the SOAP 2.1 jar
> file to the classpath, however, if I use the SOAP 2.2
> jar file, I get the following exception stack trace
> (just an extract):
> 
> java.lang.StringIndexOutOfBoundsException: String
> index out of range: -1
>         at
> java.lang.StringBuffer.charAt(StringBuffer.java:289)
>         at
> org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:288)
>         at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
> tion.java:282)
>         at
> org.apache.soap.rpc.Call.invoke(Call.java:205)
> 
> Has anyone seen this before? Any way to fix it?
> 
> Thanks in advance,
> Andre Tost
> 
> =====
> Andre Tost
> andretost@yahoo.com
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> http://im.yahoo.com
> 


Re: StringIndexOutOfBoundsException using SOAP 2.2, works fine in SOAP 2.1

Posted by Richard Boehme <bo...@acm.jhu.edu>.
Is only the SOAP 2.2 jar in your classpath, or is the SOAP 2.1 there also?
Are the client and server running different versions of SOAP?

--Richard


On Wed, 5 Sep 2001, Andre Tost wrote:

> I make a call to a SOAP service using the
> Call.invoke() method. The client runs within a servlet
> in Tomcat. This works fine if I add the SOAP 2.1 jar
> file to the classpath, however, if I use the SOAP 2.2
> jar file, I get the following exception stack trace
> (just an extract):
>
> java.lang.StringIndexOutOfBoundsException: String
> index out of range: -1
>         at
> java.lang.StringBuffer.charAt(StringBuffer.java:289)
>         at
> org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:288)
>         at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
> tion.java:282)
>         at
> org.apache.soap.rpc.Call.invoke(Call.java:205)
>
> Has anyone seen this before? Any way to fix it?
>
> Thanks in advance,
> Andre Tost
>
> =====
> Andre Tost
> andretost@yahoo.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> http://im.yahoo.com
>


Re: StringIndexOutOfBoundsException using SOAP 2.2, works fine in SOAP 2.1

Posted by Dmitri Colebatch <di...@bigpond.net.au>.
yep - I saw that yesterday.  Got it when invoking an ms server I picked at
random from xmethods.  I couldn' see how its occurring at the time, I just
picked a different service for testing.  apache soap was looking for a ';'
somewhere in the response, i assume in the header, and trying to remove
it... that was my reading of it anyway...

hth
dim


On Wed, 5 Sep 2001, Andre Tost wrote:

> I make a call to a SOAP service using the
> Call.invoke() method. The client runs within a servlet
> in Tomcat. This works fine if I add the SOAP 2.1 jar
> file to the classpath, however, if I use the SOAP 2.2
> jar file, I get the following exception stack trace
> (just an extract):
> 
> java.lang.StringIndexOutOfBoundsException: String
> index out of range: -1
>         at
> java.lang.StringBuffer.charAt(StringBuffer.java:289)
>         at
> org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:288)
>         at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
> tion.java:282)
>         at
> org.apache.soap.rpc.Call.invoke(Call.java:205)
> 
> Has anyone seen this before? Any way to fix it?
> 
> Thanks in advance,
> Andre Tost
> 
> =====
> Andre Tost
> andretost@yahoo.com
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> http://im.yahoo.com
> 


Re: StringIndexOutOfBoundsException using SOAP 2.2, works fine in SOAP 2.1

Posted by Richard Boehme <bo...@acm.jhu.edu>.
Is only the SOAP 2.2 jar in your classpath, or is the SOAP 2.1 there also?
Are the client and server running different versions of SOAP?

--Richard


On Wed, 5 Sep 2001, Andre Tost wrote:

> I make a call to a SOAP service using the
> Call.invoke() method. The client runs within a servlet
> in Tomcat. This works fine if I add the SOAP 2.1 jar
> file to the classpath, however, if I use the SOAP 2.2
> jar file, I get the following exception stack trace
> (just an extract):
>
> java.lang.StringIndexOutOfBoundsException: String
> index out of range: -1
>         at
> java.lang.StringBuffer.charAt(StringBuffer.java:289)
>         at
> org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:288)
>         at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
> tion.java:282)
>         at
> org.apache.soap.rpc.Call.invoke(Call.java:205)
>
> Has anyone seen this before? Any way to fix it?
>
> Thanks in advance,
> Andre Tost
>
> =====
> Andre Tost
> andretost@yahoo.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> http://im.yahoo.com
>