[ 
https://issues.apache.org/jira/browse/CMIS-917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15011113#comment-15011113
 ] 

Ron DiFrango commented on CMIS-917:
-----------------------------------

Our dev team did a little more research and as such they slowly layered in the 
Chemistry JAR’s and found that for all the jar’s except the following our 
application worked fine:

chemistry-opencmis-commons-impl-0.13.0.jar

They decompiled the above jar file and noticed the class WssMUTube.java extends 
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl and based on the 
stack-trace looks like the JAXWS runtime is using this implementation and 
that’s creating the issue that ends up with the following stack trace:

{code}
java.lang.NoSuchMethodError: 
com.sun.xml.ws.api.message.Message.getHeaders()Lcom/sun/xml/ws/api/message/HeaderList;
    at 
org.apache.chemistry.opencmis.commons.impl.tube.client.WssMUTube.processResponse(WssMUTube.java:59)
 ~[chemistry-opencmis-commons-impl-0.13.0.jar:0.13.0]
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1147) 
~[jaxws-rt.jar:2.2.10]
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050) 
~[jaxws-rt.jar:2.2.10]
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019) 
~[jaxws-rt.jar:2.2.10]
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877) 
~[jaxws-rt.jar:2.2.10]
    at com.sun.xml.ws.client.Stub.process(Stub.java:463) ~[jaxws-rt.jar:2.2.10]
    at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:191) 
~[jaxws-rt.jar:2.2.10]
{code}

They then repackaged this jar file after removing this WssMUTube.java class and 
then the application started running fine without any issue.

> 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
>            Assignee: Florian Müller
>         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)

Reply via email to