com.sun.xml.internal.ws.server.sei.EndpointMethodHandler invoke java.lang.IllegalArgumentException
来源:互联网 发布:添加打印机端口已存在 编辑:程序博客网 时间:2024/05/18 23:16
我用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();
}
}
请问这是为什么呢?
我服务是这样写的
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.sei.EndpointMethodHandler invoke java.lang.IllegalArgumentException
- com.sun.xml.internal.ws.model.RuntimeModelerException:
- com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error:
- com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error:
- com.sun.xml.internal.ws.model.RuntimeModelerException错误
- com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error:
- com.sun.xml.internal.ws.model.RuntimeModelerException错误
- java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener
- com.sun.xml.internal.ws.model.RuntimeModelerException: class:com.mark.cxf.service could not be found
- 解决com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.
- 解决com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.
- java.lang.NoClassDefFoundError: com/sun/tools/internal/xjc/api/xjc????
- java.lang.ClassNotFoundException: com.sun.tools.internal.xjc.api.XJC
- Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException: 解决办法
- [webservice]com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error:
- BUG:com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error
- Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport e
- 解决maven编译错误:程序包com.sun.xml.internal.ws.spi不存在
- TCP滑动窗口和socket缓冲区之间的关系(记录)
- 使用TortoiseSVN打Tag
- OpenStack-Cinder挂卷接口代码走读(Grizzly)
- TCP滑动窗口和SO_RCVBUF之间的实际关系
- javascript元件属性合并
- com.sun.xml.internal.ws.server.sei.EndpointMethodHandler invoke java.lang.IllegalArgumentException
- 设计模式之策略模式
- Hibernate的fetch
- windows x86下安装mongodb 并配置自动运行
- 基于Matlab的实对称矩阵对角化
- 字节次序转换函数
- TCP 滑动窗口协议
- VLC中文字幕
- 火柴游戏