Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: java.lang.reflect.InvocationTargetException
at com.sun.xml.internal.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(Unknown Source)
at com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(Unknown Source)
at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.receive(Unknown Source)
at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(Unknown Source)
at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(Unknown Source)
at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(Unknown Source)
at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(Unknown Source)
at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(Unknown Source)
at $Proxy17.doCheckForLogin(Unknown Source)
at com.main.Test.main(Test.java:20)
我的网络服务方法
@WebMethod
public boolean doCheckForLogin(String userName,String password) throws InvocationTargetException
{
System.out.println("login service method");
final List<String> x=new ArrayList<String>();
x.add(userName);
x.add(password);
UserFacade userfacad=new UserFacade();
CommunicationObject comObject=new CommunicationObject();
comObject.setListResult(x);
return userfacad.doLogin(comObject).isBooleanResult();
}
我得到的用户名和密码值都是客户端发送的,但是当它到达 Userfacade 类初始化时,它会抛出这个异常。