问个看不懂的问题,大家帮忙看看啊

zwm1988 2008-06-18 10:53:37
java.lang.LinkageError: Class javax/xml/soap/SOAPMessage violates loader constraints: definition mismatch between parent and child loaders
org.apache.axis.client.Call.<init>(Call.java:327)
org.apache.axis.client.Service.createCall(Service.java:559)
com.neusoft.ermsuite.pcm.cigadata.dataget.GetCigaData.getXMLStr(GetCigaData.java:30)
com.neusoft.ermsuite.pcm.cigadata.dataget.DataDealTask.dataDeal(DataDealTask.java:591)
com.neusoft.ermsuite.pcm.cigadata.handsget.web.GetDataByHandsAddEditAction.execute(GetDataByHandsAddEditAction.java:67)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
com.astar.cop.web.COPActionServlet.process(Unknown Source)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
...全文
267 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
chengwei1104 2008-06-20
  • 打赏
  • 举报
回复
看看你工程里的jbossall-client jar包是不是和你tomcat下的不一样。也有可能是tomcat下有两个不同版本的包。把跟你工程里的一样的留下。把两一个删掉
mxlmwl 2008-06-20
  • 打赏
  • 举报
回复
public class LinkageError
extends Error
Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.

请检查是否包冲突或版本不兼容。
zwm1988 2008-06-20
  • 打赏
  • 举报
回复
不会啊
endpoint="http://trans.tobt.com.cn/CigaTransService/CigaData.asmx";

这个地址我在ie里可以访问的
laorer 2008-06-19
  • 打赏
  • 举报
回复
[Quote=引用 11 楼 zwm1988 的回复:]
java.net.SocketException: Operation timed out: connect:could be due to invalid address
这个错是不是说连接超时,后面是什么意思?
[/Quote]
连接地址不对啊
getdate 2008-06-18
  • 打赏
  • 举报
回复
做什么的时候抛出了这样的异常啊?
interpb 2008-06-18
  • 打赏
  • 举报
回复
看看的别的路径下有没有这个包

问题提示应该是这个类被不同的ClasLoader加载了

zwm1988 2008-06-18
  • 打赏
  • 举报
回复
项目web-inf/lib目录下有这个包啊
interpb 2008-06-18
  • 打赏
  • 举报
回复
看问题 好象是 类加载的问题

SOAPMessage 这个类所在的包 你放在什么路径下
zidasine 2008-06-18
  • 打赏
  • 举报
回复
顶...................
「已注销」 2008-06-18
  • 打赏
  • 举报
回复
顶顶 顶 顶 顶 顶 !学习
zwm1988 2008-06-18
  • 打赏
  • 举报
回复
说的是哪个包冲突?请指明
laorer 2008-06-18
  • 打赏
  • 举报
回复
不清楚,刚google了下,说是包冲突
zwm1988 2008-06-18
  • 打赏
  • 举报
回复
程序中调用了
org.apache.axis.client.Call
不知道是什么意思
共同研究一下啊
zwm1988 2008-06-18
  • 打赏
  • 举报
回复
java.net.SocketException: Operation timed out: connect:could be due to invalid address
这个错是不是说连接超时,后面是什么意思?
zwm1988 2008-06-18
  • 打赏
  • 举报
回复
public String getXMLStr(String endpoint,String opName,String tokenRing, String stamp_s, String stamp_e) throws ServiceException, MalformedURLException, RemoteException
{
if ("".equals(endpoint) || endpoint==null)//为空则赋予默认值 为手工执行服务
endpoint="http://trans.tobt.com.cn/CigaTransService/CigaData.asmx";
// String TokenRing = "A8C838FFBDE345FFB55C33EF69DAC87505C6132D";
String res = null;
try
{
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new QName("http://localhost/CigaTransService/"+opName+"/SU",opName));
call.addParameter("TokenRing",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("stamp_s",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("stamp_e",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://localhost/CigaTransService/"+opName+"/Rpc");

System.out.println("===========xmlData============:"+call.getOperationName());

res = (String)call.invoke(new Object[]{tokenRing,stamp_s,stamp_e});

}catch (ServiceException e)
{

System.out.println("===========e.printStackTrace();=====1=======:");
e.printStackTrace();

System.out.println("===========e.printStackTrace();=====1=======:");

System.err.println(e.toString());
return "";
}
return res;
}

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧