日期:2014-05-19  浏览次数:20797 次

使用AXIS遇到 "'' is not a valid integer value错误?定位不到原因?
请帮忙看看,这是什么问题,谢谢

WSDL2Java生成相关文件,调用的时候出现下面错误,所有的参数都根据axis生成的代码填充的,很奇怪~

Java code
AxisFault

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server

 faultSubcode: 

 faultString: '' is not a valid integer value

 faultActor: 

 faultNode: 

 faultDetail: 

    {http://xml.apache.org/axis/}stackTrace:'' is not a valid integer value

    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)

    at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)

    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)

    at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)

    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)

    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)

    at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)

    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)

    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)

    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

    at org.apache.axis.client.Call.invoke(Call.java:2767)

    at org.apache.axis.client.Call.invoke(Call.java:2443)

    at org.apache.axis.client.Call.invoke(Call.java:2366)

    at org.apache.axis.client.Call.invoke(Call.java:1812)

    at com.bankunion.sample.ISMSSVCbindingStub.smsSubmit(ISMSSVCbindingStub.java:188)

    at com.bankunion.sample.SMSClientTest.main(SMSClientTest.java:71)



    {http://xml.apache.org/axis/}hostname:wangzhi-pc



'' is not a valid integer value

    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)

    at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)

    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)

    at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)

    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)

    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)

    at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)

    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)

    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)

    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

    at org.apache.axis.client.Call.invoke(Call.java:2767)

    at org.apache.axis.client.Call.invoke(Call.java:2443)

    at org.apache.axis.client.Call.invoke(Call.java:2366)

    at org.apache.axis.cli