I am using axis beta 2 -- the latest version as far as i know
Eric On Wed, 5 Jun 2002, Russell Butek wrote: > Hmmm... > > What version of AXIS are you using? In the latest SOAPFaultBuilder class, > there is no array operation on line 134, nor anywhere within endElement. > > What has happened here is that there is a fault response (a fault occurred > on the server and it's sending a fault message back to the client), and an > error has occurred trying to read the fault from the SOAP message. You > could run tcpmon to see what the fault is, but I'd suggest moving to a > newer version of AXIS, first. > > Russell Butek > [EMAIL PROTECTED] > > > Eric Roberts <[EMAIL PROTECTED]> on 06/05/2002 10:36:52 AM > > Please respond to [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > cc: > Subject: Re: ArrayOutOfBoundsException > > > > java.lang.ArrayIndexOutOfBoundsException > at > org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java: > 134) > at > org.apache.axis.encoding.DeserializationContextImpl. > endElement(DeserializationContextImpl.java:875) > at > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528) > at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) > at > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) > at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) > at > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) > at > org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) > at > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) > at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) > at > org.apache.axis.encoding.DeserializationContextImpl. > parse(DeserializationContextImpl.java:202) > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428) > at org.apache.axis.client.Call.invoke(Call.java:1919) > at org.apache.axis.client.Call.invoke(Call.java:1690) > at org.apache.axis.client.Call.invoke(Call.java:1608) > at org.apache.axis.client.Call.invoke(Call.java:1169) > at > samples.userguide.example7.HelloClient2.main(HelloClient2.java:43) > > > > On > Wed, 5 Jun 2002, Russell Butek > wrote: > > > Could you show us your exception stack trace? > > > > Russell Butek > > [EMAIL PROTECTED] > > > > > > Eric Roberts <[EMAIL PROTECTED]> on 06/05/2002 09:56:44 AM > > > > Please respond to [EMAIL PROTECTED] > > > > To: [EMAIL PROTECTED] > > cc: > > Subject: ArrayOutOfBoundsException > > > > > > > > I am getting an ArrayOutOfBoundsException when I try to run the following > > code: > > > > (begin code here) > > > > package samples.userguide.example7; > > > > import org.apache.axis.client.Call; > > import org.apache.axis.client.Service; > > import org.apache.axis.encoding.XMLType; > > import org.apache.axis.utils.Options; > > > > import javax.xml.rpc.ParameterMode; > > > > public class HelloClient > > { > > public static void main(String [] args) throws Exception { > > > > Options options = new Options(args); > > > > String endpoint = "http://localhost:" + options.getPort() > > + "/axis/HelloWorld.jws"; > > > > args = options.getRemainingArgs(); > > > > if (args == null || args.length != 1) { > > System.err.println("Usage: HelloClient arg1"); > > return; > > } > > > > String method = "getHello"; > > String s1 = new String(args[0]); > > > > Service service = new Service(); > > Call call = (Call) service.createCall(); > > > > call.setTargetEndpointAddress(new java.net. > URL(endpoint)); > > call.setOperationName(method); > > call.addParameter( "op1", XMLType.XSD_STRING, > > ParameterMode.IN); > > call.setReturnType(XMLType.XSD_STRING); > > > > Fails here--> String ret = (String) call.invoke(new Object [] {s1}); > > System.out.println(ret); > > } > > } > > > > After setting up some debug try/catch blocks around everything that > > involves an array I found that the problem lies in the line denoted > "Fails > > here-->". > > > > > > HelloWorld.jws is in my jakarta/webapps/axis directory and looks like the > > following: > > > > public class HelloWorld { > > public String getHello(String name) { > > return "Hello"+ name; > > } > > } > > > > > > Any ideas?? > > > > > > -- > > _____________________________________________________________________ > > Eric Roberts [EMAIL PROTECTED] > > Grid Computing Group > > Texas Advanced Computing Center > > University of Texas at Austin http://www.tacc.utexas.edu/~ericrobe > > _____________________________________________________________________ > > > > > > > > -- > _____________________________________________________________________ > Eric Roberts [EMAIL PROTECTED] > Grid Computing Group > Texas Advanced Computing Center > University of Texas at Austin http://www.tacc.utexas.edu/~ericrobe > _____________________________________________________________________ > > -- _____________________________________________________________________ Eric Roberts [EMAIL PROTECTED] Grid Computing Group Texas Advanced Computing Center University of Texas at Austin http://www.tacc.utexas.edu/~ericrobe _____________________________________________________________________