我正在研究WAS 8.5.5.2中部署的应用程序。我在渲染TIF图像时遇到以下错误。我保留了Axiom 1.2.14,它是类路径中的最新版本并重新启动了服务器。得到了一个转发例外。然后,我在整个WAS中搜索了任何内部内置jar,并在org.apache.axis2 jar(WAS运行时文件夹中的内置jar)下找到了几个实例。所以我已经从类路径中删除了我的jar。我仍然得到同样的错误。任何线索都会有所帮助..
由于异常而无法执行渲染(java.lang.ClassCastException:org.apache.axiom.util.stax.xop.XOPEncodingStreamWriter与org.apache.axiom.ext.stax.datahandler.DataHandlerWriter不兼容)< /强>
org.apache.axiom.ext.stax.datahandler.DataHandlerWriter)
stacktrace=org.apache.axiom.util.stax.XMLStreamWriterUtils.internalGetDataHandlerWriter(XMLStreamWriterUtils.java:71)
org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler(XMLStreamWriterUtils.java:134)
com.myapplication.mdivrs.axis2.mdivrsStub$RenderDocument.serialize(mdivrsStub.java:1503)
com.myapplication.mdivrs.axis2.mdivrsStub$RenderDocumentE.serialize(mdivrsStub.java:2607)
com.myapplication.mdivrs.axis2.mdivrsStub$RenderDocumentE.serialize(mdivrsStub.j ava:2593)
org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:781)
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:967) org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:283)
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:245)
org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:207)
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:570)
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:399)
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:226)
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:556)
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
com.myapplication.mdivrs.axis2.mdivrsStub.renderDocument(mdivrsStub.java:200)
com.myapplication.mdi.services.WSRenderer.doRender(WSRenderer.java:413)
com.myapplication.mdi.services.WSRenderer.render(WSRenderer.java:242)
com.myapplication.mdi.services.Retrieval.getImageData(Retrieval.java:973)
com.myapplication.mdi.server.impl.DocServicesImpl.getRendition(DocServicesImpl.java:1038)