com.sun.xml.internal.ws.server.sei.EndpointMethodHandler invoke java.lang.IllegalArgumentException
2013-06-18 20:02
1146 查看
我用Web services Explorer执行我写的一个服务会出错,如果用自己写的client就没有问题
请问这是为什么呢?
我服务是这样写的
Web services Explorer如下图
出现如下错误
我自己写客户端,
package org.zttc.service;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
public class TestClient {
public static void main(String[] args) {
try {
URL url = new URL("http://localhost:8080/ms?wsdl");
QName sname = new QName("http://service.zttc.org/", "MyServiceImplService");
Service service = Service.create(url,sname);
IMyService ms = service.getPort(IMyService.class);
System.out.println(ms.add(12,33));
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
}
将JDK升级到jdk 1.6u17就不会有问题了
请问这是为什么呢?
我服务是这样写的
Web services Explorer如下图
出现如下错误
我自己写客户端,
package org.zttc.service;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
public class TestClient {
public static void main(String[] args) {
try {
URL url = new URL("http://localhost:8080/ms?wsdl");
QName sname = new QName("http://service.zttc.org/", "MyServiceImplService");
Service service = Service.create(url,sname);
IMyService ms = service.getPort(IMyService.class);
System.out.println(ms.add(12,33));
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
}
将JDK升级到jdk 1.6u17就不会有问题了
相关文章推荐
- com.sun.xml.internal.ws.server.ServerRtException: Server Runtime Error: java.net.BindException: Cannot assign requested address: bind
- java.lang.IllegalArgumentException: No enum constant org.apache.ws.commons.schema.XmlSchemaForm.
- java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener
- cxf和spring整合出现的问题: com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Faul
- 关于dialog引起的java.lang.IllegalArgumentException:View=com.android.internal.policy.impl.PhoneWindow$Deco
- 关于dialog引起的java.lang.IllegalArgumentException:View=com.android.internal.policy.impl.Ph
- com.sun.jdi.internalException:Unexpected JDWP Error:103////Method threw 'java.lang.IllegalArgumentEx
- java.lang.IllegalArgumentException: Cannot invoke com.aaForm.setReceivedDate - argument type mismatc
- java.lang.IllegalArgumentException: View=com.android.internal.policy.impl.PhoneWindow$DecorView
- java.lang.IllegalArgumentException: Cannot invoke com.aaForm.setReceivedDate - argument type mismatch
- java.lang.IllegalArgumentException: View=com.android.internal.policy.impl.PhoneWindow$DecorView{4380
- java.lang.IllegalArgumentException: At least one handler method must be found in class [class SayThr
- java.lang.IllegalArgumentException: Circular placeholder reference 'server.port:**' in property
- Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not a mana
- java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0
- java.lang.IllegalArgumentException: com.bea.portlet.prefs.spi.DefaultPreferenceStore
- 解决:“java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myMethod”问题!
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.dao
- Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException:
- java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.ba.cal