Open robertklaus-bosch opened 5 years ago
Hi
we also have similar problems with java 11+ and the sdk-client-tools-protex After we switched to java 11 and configured the dependencies accordingly,we get the error below.
We've added the following libraries to the classpath in build.gradle to replace the missing javax. * Classes that are no longer available in Java 12:
javax.jws:javax.jws-api:1.1 javax.xml.soap:javax.xml.soap-api:1.4.0 javax.xml.ws:jaxws-api:2.3.1 com.sun.activation:javax.activation:1.2.0 com.sun.xml.messaging.saaj:saaj-impl:1.5.1
Exception:
Caused by: javax.xml.ws.soap.SOAPFaultException: class com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to class javax.xml.soap.SOAPElement (com.sun.org.apache.xerces.internal.dom.ElementNSImpl is in module java.xml of loader 'bootstrap'; javax.xml.soap.SOAPElement is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @5e107136) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156) at com.sun.proxy.$Proxy120.getProjectByName(Unknown Source) at com.blackducksoftware.sdk.protex.project.ProjectApi$getProjectByName.call(Unknown Source)
StackTracke:
Interceptor for {urn:protex.blackducksoftware.com:sdk:v7.0:project}ProjectApiService#{urn:protex.blackducksoftware.com:sdk:v7.0:project}getProjectByName has thrown exception, unwinding now java.lang.ClassCastException: class com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to class javax.xml.soap.SOAPElement (com.sun.org.apache.xerces.internal.dom.ElementNSImpl is in module java.xml of loader 'bootstrap'; javax.xml.soap.SOAPElement is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @5e107136) at org.apache.cxf.binding.soap.saaj.SAAJStreamWriter.adjustOverlaidNode(SAAJStreamWriter.java:64) at org.apache.cxf.staxutils.OverlayW3CDOMStreamWriter.writeStartElement(OverlayW3CDOMStreamWriter.java:132) at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.writeSoapEnvelopeStart(SoapOutInterceptor.java:122) at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage(SoapOutInterceptor.java:81) at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage(SoapOutInterceptor.java:61) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:541) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) at com.sun.proxy.$Proxy120.getProjectByName(Unknown Source) at com.blackducksoftware.sdk.protex.project.ProjectApi$getProjectByName.call(Unknown Source)
Are There already activities to make sdk java 11+ compatible?
With version 7.8.2 we encounter following problem:
Setting a breakpoint at
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder#check
reveals:[Two classes have the same XML type name "{urn:protex.blackducksoftware.com:sdk:v7.0:project}getTags". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.blackducksoftware.sdk.protex.project.GetTags this problem is related to the following location: at com.blackducksoftware.sdk.protex.user.GetTags at public javax.xml.bind.JAXBElement com.blackducksoftware.sdk.protex.user.ObjectFactory.createGetTags(com.blackducksoftware.sdk.protex.user.GetTags) at com.blackducksoftware.sdk.protex.user.ObjectFactory, Two classes have the same XML type name "{urn:protex.blackducksoftware.com:sdk:v7.0:project}getTagsResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.blackducksoftware.sdk.protex.project.GetTagsResponse this problem is related to the following location: at com.blackducksoftware.sdk.protex.user.GetTagsResponse at public javax.xml.bind.JAXBElement com.blackducksoftware.sdk.protex.user.ObjectFactory.createGetTagsResponse(com.blackducksoftware.sdk.protex.user.GetTagsResponse) at com.blackducksoftware.sdk.protex.user.ObjectFactory]
I have no idea why this is happening with Java 11. Any ideas what to do here?