<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">I have an issue with a connector were currently developing. It uses axis2 WSDL2JAVA to generate stub classes for accessing SOAP endpoints. During building tests work flawlessly, but we’re not able to use it within midpoint. There seems some kind
of clash between objects:</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">2021-12-12 23:22:03,961 [] [http-nio-8080-exec-9] WARN (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnIdUtil): Got ConnId exception (might be handled by upper layers later) java.lang.LinkageError
in connector:5f12f0a4-eda2-4631-93ed-99a38f52aca6(ConnId be.vives.polygon.connector.planon.PlanonConnector v1.1): ConnectorSpec(resource:91e08dce-854a-4d73-8a34-5a9e17e413f3(Planon), name=null, oid=5f12f0a4-eda2-4631-93ed-99a38f52aca6): loader constraint violation
in interface itable initialization for class com.ctc.wstx.sr.BasicStreamReader: when selecting method 'javax.xml.namespace.QName javax.xml.stream.XMLStreamReader.getName()' the class loader 'bootstrap' for super interface javax.xml.stream.XMLStreamReader,
and the class loader org.identityconnectors.framework.impl.api.local.BundleClassLoader @5393c04 of the selected method's abstract class, com.ctc.wstx.sr.BasicStreamReader have different Class objects for the type javax.xml.namespace.QName used in the signature
(javax.xml.stream.XMLStreamReader is in module java.xml of loader 'bootstrap'; com.ctc.wstx.sr.BasicStreamReader is in unnamed module of loader org.identityconnectors.framework.impl.api.local.BundleClassLoader @5393c04, parent loader org.springframework.boot.loader.LaunchedURLClassLoader
@377dca04), reason: loader constraint violation in interface itable initialization for class com.ctc.wstx.sr.BasicStreamReader: when selecting method 'javax.xml.namespace.QName javax.xml.stream.XMLStreamReader.getName()' the class loader 'bootstrap' for super
interface javax.xml.stream.XMLStreamReader, and the class loader org.identityconnectors.framework.impl.api.local.BundleClassLoader @5393c04 of the selected method's abstract class, com.ctc.wstx.sr.BasicStreamReader have different Class objects for the type
javax.xml.namespace.QName used in the signature (javax.xml.stream.XMLStreamReader is in module java.xml of loader 'bootstrap'; com.ctc.wstx.sr.BasicStreamReader is in unnamed module of loader org.identityconnectors.framework.impl.api.local.BundleClassLoader
@5393c04, parent loader org.springframework.boot.loader.LaunchedURLClassLoader @377dca04) (class java.lang.LinkageError)</span></div>
</div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>We tried adding some exclusions to our pom.xml file but this does not help. Does anyone have an idea how to fix this? We don’t have much experience with java development. Our dependencies and plugin config (for axis2 1.8.0) looks like this:</div>
<div><br class="">
</div>
<div>
<pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:'JetBrains Mono',monospace;font-size:9,8pt;" class=""><pre style="font-family: "JetBrains Mono", monospace;" class=""><span style="color:#e8bf6a;" class=""><dependency><br class=""></span><span style="color:#e8bf6a;" class=""> <groupId></span>org.apache.axis2<span style="color:#e8bf6a;" class=""></groupId><br class=""></span><span style="color:#e8bf6a;" class=""> <artifactId></span>axis2-wsdl2code-maven-plugin<span style="color:#e8bf6a;" class=""></artifactId><br class=""></span><span style="color:#e8bf6a;" class=""> <version></span>${axis2.version}<span style="color:#e8bf6a;" class=""></version><br class=""></span><span style="color:#e8bf6a;" class=""> </span><span style="color:#e8bf6a;" class=""><br class=""></span><span style="color:#e8bf6a;" class=""></dependency></span></pre><div class=""><pre style="font-family: "JetBrains Mono", monospace;" class=""><span style="color:#e8bf6a;" class=""><dependency><br class=""></span><span style="color:#e8bf6a;" class=""> <groupId></span>org.testng<span style="color:#e8bf6a;" class=""></groupId><br class=""></span><span style="color:#e8bf6a;" class=""> <artifactId></span>testng<span style="color:#e8bf6a;" class=""></artifactId><br class=""></span><span style="color:#e8bf6a;" class=""> <version></span>${testng.version}<span style="color:#e8bf6a;" class=""></version><br class=""></span><span style="color:#e8bf6a;" class=""></dependency></span></pre><div class=""><br class=""></div></div><div class=""><pre style="font-family: "JetBrains Mono", monospace;" class=""><span style="color:#e8bf6a;" class=""><plugin><br class=""></span><span style="color:#e8bf6a;" class=""> <groupId></span>org.apache.axis2<span style="color:#e8bf6a;" class=""></groupId><br class=""></span><span style="color:#e8bf6a;" class=""> <artifactId></span>axis2-wsdl2code-maven-plugin<span style="color:#e8bf6a;" class=""></artifactId><br class=""></span><span style="color:#e8bf6a;" class=""> <version></span>${axis2.version}<span style="color:#e8bf6a;" class=""></version><br class=""></span><span style="color:#e8bf6a;" class=""> <executions><br class=""></span><span style="color:#e8bf6a;" class=""> <execution><br class=""></span><span style="color:#e8bf6a;" class=""> <id></span>generate-sources-employee<span style="color:#e8bf6a;" class=""></id><br class=""></span><span style="color:#e8bf6a;" class=""> <phase></span>generate-sources<span style="color:#e8bf6a;" class=""></phase><br class=""></span><span style="color:#e8bf6a;" class=""> <configuration><br class=""></span><span style="color:#e8bf6a;" class=""> <packageName></span>be.vives.planon<span style="color:#e8bf6a;" class=""></packageName><br class=""></span><span style="color:#e8bf6a;" class=""><br class=""></span><span style="color:#e8bf6a;" class=""> <wsdlFile></span>${basedir}/src/main/resources/UsrEmployee.wsdl<span style="color:#e8bf6a;" class=""></wsdlFile><br class=""></span><span style="color:#e8bf6a;" class=""> <outputDirectory></span>target/generated-sources<span style="color:#e8bf6a;" class=""></outputDirectory><br class=""></span><span style="color:#e8bf6a;" class=""> <databindingName></span>adb<span style="color:#e8bf6a;" class=""></databindingName><br class=""></span><span style="color:#e8bf6a;" class=""> </configuration><br class=""></span><span style="color:#e8bf6a;" class=""> <goals><br class=""></span><span style="color:#e8bf6a;" class=""> <goal></span>wsdl2code<span style="color:#e8bf6a;" class=""></goal><br class=""></span><span style="color:#e8bf6a;" class=""> </goals><br class=""></span><span style="color:#e8bf6a;" class=""> </execution></span><span style="color:#e8bf6a;" class=""><br class=""></span><span style="color:#e8bf6a;" class=""> </executions><br class=""></span><span style="color:#e8bf6a;" class=""></plugin></span></pre><div class=""><br class=""></div></div></pre>
</div>
<div><br class="">
Davy Priem<br class="">
</div>
</div>
</div>
</div>
</body>
</html>