0

我们正在使用轴在内部不同系统之间进行 Web 服务通信。每隔一段时间,轴调用就会失败,并显示:

[org.apache.axis2.deployment.util.Utils] - Created temporary file : C:\WINDOWS\TEMP\_axis2\axis248890addressing-1.41.mar
[org.apache.axis2.util.Loader] - java.lang.ClassNotFoundException: Class Not found : org.apache.axis2.handlers.addressing.AddressingInHandler
[org.apache.axis2.util.Loader] - java.lang.ClassNotFoundException: org.apache.axis2.handlers.addressing.AddressingInHandler
[org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(invalidmodule)
[org.apache.axis2.deployment.ModuleDeployer] - The addressing-1.41.mar module, which is not valid, caused org.apache.axis2.handlers.addressing.AddressingInHandler
org.apache.axis2.AxisFault: org.apache.axis2.handlers.addressing.AddressingInHandler

也许百分之一的人会这样失败。

代码部署在运行axis2 1.4.1 版的50thread weblogic 应用服务器上。

据我从日志中可以看出,“创建临时文件”发生在每次调用中(并且每次都提到同一个文件),所以我的猜测是多线程访问同一个文件,但我不知道该怎么做去做吧。

有没有人有一些见解可以帮助我们消除这种情况?

更新:

我在没有答案的邮件列表上发现了一个类似的问题:http ://marc.info/?l=axis-user&m=124411691013763&w=2 并在那里发布了这个问题:http://marc.info/?l= axis-用户&m=124912603230939&w=2

4

2 回答 2

2

谢谢@svrist

您提供的 [JIRA 页面] http://issues.apache.org/jira/browse/AXIS2-3204的链接告诉我,需要至少升级到 Axis2 1.5才能避免此问题。

仅供参考,如果看到问题中描述的任何这些错误,您将面临应用程序中挂起线程的风险。我很难找到这个,所以如果你看到这个堆栈跟踪,考虑升级:

"pool-2-thread-10" prio=10 tid=0xad5ab000 nid=0x35f8 runnable [0xa7d0b000]
   java.lang.Thread.State: RUNNABLE
    at com.sun.xml.stream.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:353)
    at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:557)
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506)
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
    at ***org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:132) <- Infinite loop***
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:411)
    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:602)
    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581)
    at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
    at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:86)
    at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641)
    at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
    - locked <0xb4de1d10> (a org.apache.axis2.deployment.FileSystemConfigurator)
    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68)
    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:184)
    at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
    at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:143)

......................其余省略...... ......

于 2017-05-19T12:13:31.427 回答
0

我们发现了这个问题 http://issues.apache.org/jira/browse/AXIS2-3204

configContext.terminate() 是罪魁祸首。

于 2009-09-09T07:49:12.443 回答