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)
私のWebサービスメソッド
@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 クラスの初期化に到達すると、この例外がスローされます。