一个问题,实在看不懂

zwm1988 2008-06-18 02:28:16
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)

程序是这样的
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;
}


页面报了错
java.net.SocketException: Operation timed out: connect:could be due to invalid address
这个错是不是说连接超时,后面是什么意思?
...全文
247 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zwm1988 2008-06-20
  • 打赏
  • 举报
回复
不会啊
endpoint="http://trans.tobt.com.cn/CigaTransService/CigaData.asmx";

这个地址我在ie里可以访问的
大海之粟 2008-06-19
  • 打赏
  • 举报
回复
无效的地址,是不是地址写错了

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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