急问 Could not initialize class的错误

dsk22657 2009-04-27 10:08:29
运行客户端,出现如下提示:
org.apache.axis2.AxisFault: Could not initialize class com.test.RayDataSource
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
at com.raymond.axis2.client.SendClient.upload(SendClient.java:89)
at com.raymond.axis2.client.SendClient.main(SendClient.java:285)
Exception in thread "main" java.lang.NullPointerException
at com.raymond.axis2.client.SendFaxClient.main(SendFaxClient.java:293)

请问,这个应该怎么解决,谢谢。
...全文
5856 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
dsk22657 2009-04-27
  • 打赏
  • 举报
回复
我看了下WSDL,
- <wsdl:service name="SendFax">
- <wsdl:port name="SendFaxHttpSoap11Endpoint" binding="ns:SendFaxSoap11Binding">
<soap:address location="http://192.168.1.151:8082/axis2/services/SendFax.SendFaxHttpSoap11Endpoint/" />
</wsdl:port>
- <wsdl:port name="SendFaxHttpSoap12Endpoint" binding="ns:SendFaxSoap12Binding">
<soap12:address location="http://192.168.1.151:8082/axis2/services/SendFax.SendFaxHttpSoap12Endpoint/" />
</wsdl:port>
- <wsdl:port name="SendFaxHttpEndpoint" binding="ns:SendFaxHttpBinding">
<http:address location="http://192.168.1.151:8082/axis2/services/SendFax.SendFaxHttpEndpoint/" />
</wsdl:port>
</wsdl:service>
这个192.168.1.151怎么换成对应的域名?
dsk22657 2009-04-27
  • 打赏
  • 举报
回复
for (Iterator _iterator = element.getChildElements(); _iterator //指的是这里
.hasNext();) {
OMElement _ele = (OMElement) _iterator.next();

if (_ele.getLocalName().equalsIgnoreCase("result")) {
OMresult = _ele;
}
if (_ele.getLocalName().equalsIgnoreCase("msg")) {
OMmsg = _ele;
}
if (_ele.getLocalName().equalsIgnoreCase("sendid")) {
OMsendID = _ele;
}
}
jinxfei 2009-04-27
  • 打赏
  • 举报
回复
at com.raymond.axis2.client.SendFaxClient.main(SendFaxClient.java:293)
这一行出现空指针错误,

com.raymond.axis2.client.SendFaxClient
把这个类的代码贴出来看看,指出293行是哪一行?
dsk22657 2009-04-27
  • 打赏
  • 举报
回复
补充,服务端放本机就没有错误,放到外网就出现这个错误。

67,550

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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