You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Revanth Thoutireddy (JIRA)" <ax...@ws.apache.org> on 2005/06/23 02:05:10 UTC

[jira] Created: (AXIS-2078) faultString: java.lang.StringIndexOutOfBoundsException:

faultString: java.lang.StringIndexOutOfBoundsException:
-------------------------------------------------------

         Key: AXIS-2078
         URL: http://issues.apache.org/jira/browse/AXIS-2078
     Project: Apache Axis
        Type: Bug
 Environment: web service deployed on platform iAS_10g
Stubs generated by axis 
ide -jdeveloper10g
    Reporter: Revanth Thoutireddy


Hello,
I have generated stubs for a web service. When I am invoke the process, an instance is created and the response is sent back (verified in BPEL console)  but I am not able to assign the response message. I am getting the following error message:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
	at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
	at org.apache.axis.client.Call.invoke(Call.java:2448)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at ....
...
....
.....
	... 19 more

the xml request is being sent fine but the response is not being captured even though that part of the code in the stub is auto generated. Can anybody please shed some light on this issue?
Thank you,
Rev 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2078) faultString: java.lang.StringIndexOutOfBoundsException:

Posted by "Revanth Thoutireddy (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2078?page=all ]

Revanth Thoutireddy updated AXIS-2078:
--------------------------------------

    Attachment: jiratestcase.zip

Hi Venkat,
thanks for the reply. Attached is the test case for reproducing the problem.
The instructions for executing the test case are outlined in readme.txt. 

Thank you,
Rev

> faultString: java.lang.StringIndexOutOfBoundsException:
> -------------------------------------------------------
>
>          Key: AXIS-2078
>          URL: http://issues.apache.org/jira/browse/AXIS-2078
>      Project: Apache Axis
>         Type: Bug
>  Environment: web service deployed on platform iAS_10g
> Stubs generated by axis 
> ide -jdeveloper10g
>     Reporter: Revanth Thoutireddy
>  Attachments: jiratestcase.zip
>
> Hello,
> I have generated stubs for a web service. When I am invoke the process, an instance is created and the response is sent back (verified in BPEL console)  but I am not able to assign the response message. I am getting the following error message:
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace:java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
> 	at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
> 	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
> 	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
> 	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> 	at org.apache.axis.client.Call.invoke(Call.java:2448)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	at ....
> ...
> ....
> .....
> 	... 19 more
> the xml request is being sent fine but the response is not being captured even though that part of the code in the stub is auto generated. Can anybody please shed some light on this issue?
> Thank you,
> Rev 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-2078) faultString: java.lang.StringIndexOutOfBoundsException:

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2078?page=all ]
     
Davanum Srinivas resolved AXIS-2078:
------------------------------------

    Resolution: Won't Fix

Revanth,

does your wsdl have additional info on the date? (nillable?). this definitely is a bug on your server side. it should not be sending you zero length dates. i fixed the code to throw NumberFormatException (instead of the misleading StringIndexOutOfBounds exception).

thanks,
dims

> faultString: java.lang.StringIndexOutOfBoundsException:
> -------------------------------------------------------
>
>          Key: AXIS-2078
>          URL: http://issues.apache.org/jira/browse/AXIS-2078
>      Project: Apache Axis
>         Type: Bug
>  Environment: web service deployed on platform iAS_10g
> Stubs generated by axis 
> ide -jdeveloper10g
>     Reporter: Revanth Thoutireddy
>  Attachments: jiratestcase.zip
>
> Hello,
> I have generated stubs for a web service. When I am invoke the process, an instance is created and the response is sent back (verified in BPEL console)  but I am not able to assign the response message. I am getting the following error message:
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace:java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
> 	at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
> 	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
> 	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
> 	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> 	at org.apache.axis.client.Call.invoke(Call.java:2448)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	at ....
> ...
> ....
> .....
> 	... 19 more
> the xml request is being sent fine but the response is not being captured even though that part of the code in the stub is auto generated. Can anybody please shed some light on this issue?
> Thank you,
> Rev 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2078) faultString: java.lang.StringIndexOutOfBoundsException:

Posted by "Venkat Reddy (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2078?page=comments#action_12315289 ] 

Venkat Reddy commented on AXIS-2078:
------------------------------------

hmm... i couldn't run your huge 7.5 MB application. Sorry for asking again, but will it be possible to post a ***smaller*** test case? Actually, that will also help you to isolate the issue.

- venkat

> faultString: java.lang.StringIndexOutOfBoundsException:
> -------------------------------------------------------
>
>          Key: AXIS-2078
>          URL: http://issues.apache.org/jira/browse/AXIS-2078
>      Project: Apache Axis
>         Type: Bug
>  Environment: web service deployed on platform iAS_10g
> Stubs generated by axis 
> ide -jdeveloper10g
>     Reporter: Revanth Thoutireddy
>  Attachments: jiratestcase.zip
>
> Hello,
> I have generated stubs for a web service. When I am invoke the process, an instance is created and the response is sent back (verified in BPEL console)  but I am not able to assign the response message. I am getting the following error message:
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace:java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
> 	at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
> 	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
> 	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
> 	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> 	at org.apache.axis.client.Call.invoke(Call.java:2448)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	at ....
> ...
> ....
> .....
> 	... 19 more
> the xml request is being sent fine but the response is not being captured even though that part of the code in the stub is auto generated. Can anybody please shed some light on this issue?
> Thank you,
> Rev 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2078) faultString: java.lang.StringIndexOutOfBoundsException:

Posted by "Revanth Thoutireddy (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2078?page=comments#action_12316350 ] 

Revanth Thoutireddy commented on AXIS-2078:
-------------------------------------------

Hi Dims,
 You are right. The xml should not hold null dates. I tried without the dates and there are no errors being thrown now.
 Thank you,
Rev 

> faultString: java.lang.StringIndexOutOfBoundsException:
> -------------------------------------------------------
>
>          Key: AXIS-2078
>          URL: http://issues.apache.org/jira/browse/AXIS-2078
>      Project: Apache Axis
>         Type: Bug
>  Environment: web service deployed on platform iAS_10g
> Stubs generated by axis 
> ide -jdeveloper10g
>     Reporter: Revanth Thoutireddy
>  Attachments: jiratestcase.zip
>
> Hello,
> I have generated stubs for a web service. When I am invoke the process, an instance is created and the response is sent back (verified in BPEL console)  but I am not able to assign the response message. I am getting the following error message:
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace:java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
> 	at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
> 	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
> 	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
> 	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> 	at org.apache.axis.client.Call.invoke(Call.java:2448)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	at ....
> ...
> ....
> .....
> 	... 19 more
> the xml request is being sent fine but the response is not being captured even though that part of the code in the stub is auto generated. Can anybody please shed some light on this issue?
> Thank you,
> Rev 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2078) faultString: java.lang.StringIndexOutOfBoundsException:

Posted by "Revanth Thoutireddy (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2078?page=comments#action_12315856 ] 

Revanth Thoutireddy commented on AXIS-2078:
-------------------------------------------

Hi Venkat,
 The problem was in the datadeserializer class. The response that was being returned contained a date entry which was optional. The data deserializer class was checking to see if the string was null or not null but did not check to see if length was 0 or not. So, when it tried to access it, it  threw a string index out of bounds exception. 

Any idea if this issue has been catered to in axis 2.0?
Thanks for your help.
Rev

> faultString: java.lang.StringIndexOutOfBoundsException:
> -------------------------------------------------------
>
>          Key: AXIS-2078
>          URL: http://issues.apache.org/jira/browse/AXIS-2078
>      Project: Apache Axis
>         Type: Bug
>  Environment: web service deployed on platform iAS_10g
> Stubs generated by axis 
> ide -jdeveloper10g
>     Reporter: Revanth Thoutireddy
>  Attachments: jiratestcase.zip
>
> Hello,
> I have generated stubs for a web service. When I am invoke the process, an instance is created and the response is sent back (verified in BPEL console)  but I am not able to assign the response message. I am getting the following error message:
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace:java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
> 	at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
> 	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
> 	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
> 	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> 	at org.apache.axis.client.Call.invoke(Call.java:2448)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	at ....
> ...
> ....
> .....
> 	... 19 more
> the xml request is being sent fine but the response is not being captured even though that part of the code in the stub is auto generated. Can anybody please shed some light on this issue?
> Thank you,
> Rev 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2078) faultString: java.lang.StringIndexOutOfBoundsException:

Posted by "Venkat Reddy (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2078?page=comments#action_12314754 ] 

Venkat Reddy commented on AXIS-2078:
------------------------------------

Rev, would you be able to post a small test case to rproduce the issue? Are you using Axis 1.2.1? Thanks.

> faultString: java.lang.StringIndexOutOfBoundsException:
> -------------------------------------------------------
>
>          Key: AXIS-2078
>          URL: http://issues.apache.org/jira/browse/AXIS-2078
>      Project: Apache Axis
>         Type: Bug
>  Environment: web service deployed on platform iAS_10g
> Stubs generated by axis 
> ide -jdeveloper10g
>     Reporter: Revanth Thoutireddy

>
> Hello,
> I have generated stubs for a web service. When I am invoke the process, an instance is created and the response is sent back (verified in BPEL console)  but I am not able to assign the response message. I am getting the following error message:
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace:java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
> 	at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
> 	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
> 	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
> 	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> 	at org.apache.axis.client.Call.invoke(Call.java:2448)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	at ....
> ...
> ....
> .....
> 	... 19 more
> the xml request is being sent fine but the response is not being captured even though that part of the code in the stub is auto generated. Can anybody please shed some light on this issue?
> Thank you,
> Rev 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2078) faultString: java.lang.StringIndexOutOfBoundsException:

Posted by "Revanth Thoutireddy (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2078?page=comments#action_12314327 ] 

Revanth Thoutireddy commented on AXIS-2078:
-------------------------------------------

Just to add more info,

The response is correctly assigned to an object when there is just one value being returned. For example:-

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body><helloProcessResponse xmlns="http://xmlns.oracle.com/hello"><hello>rev-tr</hello></helloProcessResponse></soapenv:Body>
</soapenv:Envelope>

but the mentioned error occurs when the response xml is huge and contains many values.

Thank you.
rev 


> faultString: java.lang.StringIndexOutOfBoundsException:
> -------------------------------------------------------
>
>          Key: AXIS-2078
>          URL: http://issues.apache.org/jira/browse/AXIS-2078
>      Project: Apache Axis
>         Type: Bug
>  Environment: web service deployed on platform iAS_10g
> Stubs generated by axis 
> ide -jdeveloper10g
>     Reporter: Revanth Thoutireddy

>
> Hello,
> I have generated stubs for a web service. When I am invoke the process, an instance is created and the response is sent back (verified in BPEL console)  but I am not able to assign the response message. I am getting the following error message:
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace:java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
> 	at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
> 	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
> 	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
> 	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> 	at org.apache.axis.client.Call.invoke(Call.java:2448)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	at ....
> ...
> ....
> .....
> 	... 19 more
> the xml request is being sent fine but the response is not being captured even though that part of the code in the stub is auto generated. Can anybody please shed some light on this issue?
> Thank you,
> Rev 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira