[ 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
