axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Aguirre <ivan.agui...@gmail.com>
Subject InvocationTargetException
Date Fri, 27 Aug 2004 19:01:13 GMT
Sorry... it's a large message, but if anyone could help me ;)...... thanx ....

I have an strange fault when calling a Axis Web Service. I use two methods:
getPagedUserReport and getPageFromReport from the same WS, called "Report".

The caller code:
***********************************************************************************************
ReportService service = new ReportServiceLocator();

Report port = service.ReportService("someUrl");

Stub s = (Stub) port;
s.setUsername("duke");
s.setPassword("java");

Request request = new Request(....); //Request is one of my self WS
parameters...

request = port.getPagedUserReport("duke", request);

pages = request.getPageNumber();

String page = null;
for (int i = 1; i <= pages; i++) {            	            
	time = System.currentTimeMillis();
        page = port.getPageFromReport(request);
        /* do sometinhg with page....*/
}
***********************************************************************************************


Some other issues:
-> I use Tomcat 5.0.18, Axis 1.1 and j2SDK1.4.1_01.
-> The scope of the service is "Session."
-> I changed the Stub (generated by WSDL2Java) to work with Sessions
(adding a "_call.setMaintainSession(true)" )
   at a point in the code.
-> The fault occurs when I execute some clients at the same time. Some
of them get the fault.

The Faul Stack:
***********************************************************************************************
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.reflect.InvocationTargetException
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace: AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.reflect.InvocationTargetException
 faultActor: 
 faultNode: 
 faultDetail: 

java.lang.reflect.InvocationTargetException
	at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
	at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
	at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
	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:242)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
	at org.apache.axis.client.Call.invoke(Call.java:2553)
	at org.apache.axis.client.Call.invoke(Call.java:2248)
	at org.apache.axis.client.Call.invoke(Call.java:2171)
	at org.apache.axis.client.Call.invoke(Call.java:1691)
	at <my package>ReportServiceSoapBindingStub.getPagedDeviceReport(ReportServiceSoapBindingStub.java:224)
	at <my package>ClienteApp.main(ClienteDeviceReportPaged.java:101)


java.lang.reflect.InvocationTargetException
	at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
	at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
	at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
	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:242)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
	at org.apache.axis.client.Call.invoke(Call.java:2553)
	at org.apache.axis.client.Call.invoke(Call.java:2248)
	at org.apache.axis.client.Call.invoke(Call.java:2171)
	at org.apache.axis.client.Call.invoke(Call.java:1691)
	at <my package>ReportServiceSoapBindingStub.getPagedDeviceReport(ReportServiceSoapBindingStub.java:224)
	at <my package>ClienteDeviceReportPaged.main(ClienteDeviceReportPaged.java:101)
***********************************************************************************************

Well.... thats the error, someone can help me.... ??

thankx

-----------------------------------
Ivan de Aguirre
Java developer
Brazil

Mime
View raw message