[ https://issues.apache.org/jira/browse/CMIS-917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14572403#comment-14572403 ]
Florian Müller commented on CMIS-917: ------------------------------------- I looked into it. Because of an API change in the JRE the Web Services client that uses the JAX-WS implementation of the JRE only works on Java 8 if OpenCMIS was compiled with Java 8. If it was compiled with Java 8 it doesn't work on Java 6 & 7 and vice versa. A Java 6 & 7 complied version works on Java 6 & 7 but not Java 8. The generated bytecode is different. That does not affect any other parts of OpenCMIS. It's also still possible to use CXF, Axis, or the JAX-WS RI to use the Web Services binding. We have to build a workaround or remove the JRE JAX-WS support in the next release. (Java 9 might provide similar surprises.) > webservices binding client not working on java 8 > ------------------------------------------------ > > Key: CMIS-917 > URL: https://issues.apache.org/jira/browse/CMIS-917 > Project: Chemistry > Issue Type: Bug > Components: opencmis-client > Affects Versions: OpenCMIS 0.13.0 > Environment: java version "1.8.0_40" > Java(TM) SE Runtime Environment (build 1.8.0_40-b25) > Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode) > Reporter: Michael Brackx > Attachments: issue.diff > > > The client is not working for the webservices binding on java 8. > stacktrace: > {noformat} > java.lang.NoSuchMethodError: > com.sun.xml.internal.ws.api.message.Message.getHeaders()Lcom/sun/xml/internal/ws/api/message/HeaderList; > at > org.apache.chemistry.opencmis.commons.impl.tube.client.JreWssMUTube.processResponse(JreWssMUTube.java:62) > at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:1132) > at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:1035) > at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:1004) > at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:862) > at com.sun.xml.internal.ws.client.Stub.process(Stub.java:448) > at > com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:178) > at > com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:93) > at > com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77) > at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147) > at com.sun.proxy.$Proxy38.getRepositories(Unknown Source) > at > org.apache.chemistry.opencmis.client.bindings.spi.webservices.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:76) > at > org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:90) > at > org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:135) > at > org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:112) > at > org.apache.chemistry.opencmis.tck.impl.AbstractSessionTest.run(AbstractSessionTest.java:160) > at > org.apache.chemistry.opencmis.tck.impl.AbstractCmisTestGroup.run(AbstractCmisTestGroup.java:109) > at > org.apache.chemistry.opencmis.tck.runner.AbstractRunner.run(AbstractRunner.java:221) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)