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 we...@daimlerchrysler.com on 2003/04/08 13:00:22 UTC

ArrayIndexOutOfBoundsException when invoking a call

Hi,

I am trying to transfer a file using DataHandler from one machine to another, 
and I have got this exception:

net.dcx.webmapis.handler.business.PublishHandler.registerPARSessionIDClient(Unkn
own Source)    -
java.lang.ArrayIndexOutOfBoundsException
        at 
org.apache.soap.transport.TransportMessage.save(TransportMessage.java:322)
        at 
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:3
08)
        at org.apache.soap.rpc.Call.invoke(Call.java:248)
        at net.dcx.webmapis.util.soap.SOAPUtil.invokeCall(Unknown Source)
        at 
net.dcx.webmapis.handler.business.PublishHandler.registerPARSessionIDClient(Unkn
own Source)


Anyone knows what could be the problem? My code works on the development server 
(Solaris), but not the test server (Solaris). I am using Apache SOAP 2.3.1 with 
WebSphere 4 fix pack 4.

Any help is appreciated.

Thanks.




____________________________________________ 

Chay Weei Jye 
DaimlerChrysler Malaysia Sdn Bhd (TSS) 
Level 48 & 49 Menara Telekom 
P.O. Box 1202, Jalan Pantai Bahru 
59800 Kuala Lumpur, Malaysia 

Phone: (+60) 3 2246 8894 
Email: weei_jye.chay@daimlerchrysler.com 
____________________________________________ 

Re: ArrayIndexOutOfBoundsException when invoking a call

Posted by Scott Nichol <sn...@scottnichol.com>.
This is a bug in 2.3.1.  I am not sure why it is showing up in one of 
your configurations and not the other.  Perhaps it is the version of 
JavaMail or the contents of the file you are sending.

The fix was checked in 6/17/2002.  You can get a copy of that 
TransportMessage.java at 
http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-
soap/java/src/org/apache/soap/transport/TransportMessage.java?rev=1.13
, then compile it and replace the version in your jar, or put the 
location of the new  class before the jar in your classpath.  
Alternatively, you could try using the nightly build from a directory 
under http://cvs.apache.org/dist/soap/nightly/.  The nightly builds 
have current fixes and enhancements, but as always may have new bugs.


On 8 Apr 2003 at 13:00, weei_jye.chay@daimlerchrysler wrote:

> Hi,
> 
> I am trying to transfer a file using DataHandler from one machine to another, 
> and I have got this exception:
> 
> net.dcx.webmapis.handler.business.PublishHandler.registerPARSessionIDClient(Unkn
> own Source)    -
> java.lang.ArrayIndexOutOfBoundsException
>         at 
> org.apache.soap.transport.TransportMessage.save(TransportMessage.java:322)
>         at 
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:3
> 08)
>         at org.apache.soap.rpc.Call.invoke(Call.java:248)
>         at net.dcx.webmapis.util.soap.SOAPUtil.invokeCall(Unknown Source)
>         at 
> net.dcx.webmapis.handler.business.PublishHandler.registerPARSessionIDClient(Unkn
> own Source)
> 
> 
> Anyone knows what could be the problem? My code works on the development server 
> (Solaris), but not the test server (Solaris). I am using Apache SOAP 2.3.1 with 
> WebSphere 4 fix pack 4.
> 
> Any help is appreciated.
> 
> Thanks.
> 
> 
> 
> 
> ____________________________________________ 
> 
> Chay Weei Jye 
> DaimlerChrysler Malaysia Sdn Bhd (TSS) 
> Level 48 & 49 Menara Telekom 
> P.O. Box 1202, Jalan Pantai Bahru 
> 59800 Kuala Lumpur, Malaysia 
> 
> Phone: (+60) 3 2246 8894 
> Email: weei_jye.chay@daimlerchrysler.com 
> ____________________________________________ 


Scott Nichol

Do not reply directly to this e-mail address,
as it is filtered to only receive e-mail from
specific mailing lists.