java – 应用程序类’com.sun.xml.messaging.saaj.soap.SOAPPartImpl.:119’抛出的异常

前端之家收集整理的这篇文章主要介绍了java – 应用程序类’com.sun.xml.messaging.saaj.soap.SOAPPartImpl.:119’抛出的异常前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我试图通过Bluemix部署Java应用程序.当我在我的本地Liberty Server(Liberty 16.0.0.2)上部署它时,它工作正常,我能够从SOAP客户端访问URL.

但是当我在Bluemix上尝试它时,它给了我这个错误

Exception thrown by application class
‘com.sun.xml.messaging.saaj.soap.SOAPPartImpl.:119’
java.lang.VerifyError: JVMVRFY012 stack shape inconsistent;
class=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl,
method=createDocumentFragment()Lorg/w3c/dom/DocumentFragment;,pc=5;
Type Mismatch,argument 0 in signature
com/sun/xml/messaging/saaj/soap/SOAPDocumentFragment.:(Lcom/sun/org/apache/xerces/internal/dom/CoreDocumentImpl;)V
does not match Exception Details: Location:
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl.createDocumentFragment()Lorg/w3c/dom/DocumentFragment;
@5: JBinvokespecial Reason: Type
‘com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl’ (current frame,
stack[2]) is not assignable to
‘com/sun/org/apache/xerces/internal/dom/CoreDocumentImpl’ Current
Frame: bci: @5 flags: { } locals: {
‘com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl’ } stack: {
‘uninitialized’,‘uninitialized’,
‘com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl’ } at
com.sun.xml.messaging.saaj.soap.SOAPPartImpl.(SOAPPartImpl.java:119)
at
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.(SOAPPart1_1Impl.java:89)
at
com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)
at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:101)
at
org.apache.cxf.jaxws.handler.soap.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:78)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.getOpQName(SOAPHandlerInterceptor.java:294)
at
org.apache.cxf.jaxws.handler.AbstractJAXWSHandlerInterceptor.setupBindingOperationInfo(AbstractJAXWSHandlerInterceptor.java:111)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.createProtocolMessageContext(SOAPHandlerInterceptor.java:235)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessageInternal(SOAPHandlerInterceptor.java:144)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:119)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:69)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)
at
org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:368)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:183)
at
org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:163)
at
org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet.java:145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1290)
at [internal classes]

我已经尝试部署打包的自由服务器和服务器目录选项.但它不起作用.
我也试过,用ibm-web-ext.xml方法,我们改变了fileServingEnabled =“false”.但它给出了同样的错误.

最佳答案
为了扩展Dinesh的答案,为了指示Bluemix JVM使用您的捆绑库(而不是CFX),将以下内容添加到服务器根目录中的jvm.options(如有必要,请创建):

-Djavax.xml.soap.MessageFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
-Djavax.xml.soap.SOAPFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl
-Djavax.xml.soap.SOAPConnectionFactory=com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnectionFactory
-Djavax.xml.soap.MetaFactory=com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl
原文链接:https://www.f2er.com/java/437321.html

猜你在找的Java相关文章