Hello All,
I have a service that was working fine with the Sun JDK 6 however when using
OpenJDK 7 throws an exception about illegally accessing "package private"
member.
The JDK is:
Java(TM) SE Runtime Environment (build pxa6470sr7-20140410_01(SR7))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References
20140409_195732 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR7_20140409_1418_B195732
JIT - r11.b06_20140409_61252
GC - R26_Java726_SR7_20140409_1418_B195732_CMPRSS
J9CL - 20140409_195732)
JCL - 20140409_01 based on Oracle 7u55-b13
and the stack trace is:
java.lang.IllegalAccessError: Class
com/sun/org/apache/xerces/internal/dom/ElementImpl illegally accessing
"package private" member of class
com/sun/org/apache/xerces/internal/dom/CoreDocumentImpl
at
com.sun.org.apache.xerces.internal.dom.ElementImpl.synchronizeData(ElementImpl.java:1159)
at
com.sun.org.apache.xerces.internal.dom.ElementImpl.getAttributeNodeNS(ElementImpl.java:791)
at
com.sun.org.apache.xerces.internal.dom.ElementImpl.hasAttributeNS(ElementImpl.java:907)
at
com.sun.xml.messaging.saaj.soap.impl.ElementImpl.getNamespaceURI(ElementImpl.java:228)
at
com.sun.xml.messaging.saaj.soap.impl.ElementImpl.ensureNamespaceIsDeclared(ElementImpl.java:119)
at
com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(EnvelopeImpl.java:93)
at
com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl.<init>(Envelope1_1Impl.java:64)
at
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEmptyEnvelope(SOAPPart1_1Impl.java:101)
at
com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:145)
at
com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getDocumentElement(SOAPPartImpl.java:405)
at
org.apache.cxf.staxutils.OverlayW3CDOMStreamWriter.writeStartElement(OverlayW3CDOMStreamWriter.java:123)[132:org.apache.cxf.cxf-api:2.6.9]
at
org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:763)[132:org.apache.cxf.cxf-api:2.6.9]
at
org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:699)[132:org.apache.cxf.cxf-api:2.6.9]
at
org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:687)[132:org.apache.cxf.cxf-api:2.6.9]
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:170)[134:org.apache.cxf.cxf-rt-bindings-soap:2.6.9]
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:62)[134:org.apache.cxf.cxf-rt-bindings-soap:2.6.9]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[132:org.apache.cxf.cxf-api:2.6.9]
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[132:org.apache.cxf.cxf-api:2.6.9]
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)
at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)[116:org.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)[116:org.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[116:org.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)[116:org.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[116:org.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.Server.handle(Server.java:349)[116:org.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[116:org.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)[116:org.eclipse.jetty.server:7.5.4.v20111024]
at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:893)[117:org.eclipse.jetty.http:7.5.4.v20111024]
The problem seems to be caused by the ReadHeadersInterceptor. Has anyone
seen this issue before or have any ideas of a workaround?
Thanks,
Yogesh
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-interceptor-Exception-in-JDK-7-CXF-2-7-1-tp5747090.html
Sent from the cxf-user mailing list archive at Nabble.com.