<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi Davy</div><div><br></div><div>It always helps when you state the midPoint version you use, especially when there is a dependency clash like this. In this case, the QName class MP uses is the one from JDK (either 11 or 17, both have it), and it seems there is another one sneaking in with the connector.</div><div>Check the connector JAR for dependencies, I guess they are under <strong>lib</strong> inside the JAR. You can also try to search for the class in IDEA (I guess that's what you use from the snippet format below), use Ctrl+N, QName, Ctrl+N again if needed, to see non-project classes - you will see the dependency on the right:</div><div><img src="cid:73b272c48c1a2ec1224f22686b2c3f801d3a40ad@zimbra" data-mce-src="cid:73b272c48c1a2ec1224f22686b2c3f801d3a40ad@zimbra"></div><div>Now, some of these can be OK - as they are in different packages, but if there is some older non-compatible version with the same fully-qualified name, there can be trouble. You have to exclude that library. In the worst case, Axis 2 stack will not play well with MP at all. We used CXF for previous WS in MidPoint.<br></div><div><br data-mce-bogus="1"></div><div>Cheers<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Richard Richter<br data-mce-bogus="1"></div><div>Evolveum developer<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>Cc: </b>"Davy Priem" <davy.priem@vives.be><br><b>Sent: </b>Monday, December 13, 2021 1:35:28 PM<br><b>Subject: </b>[midPoint] Issues with connector.</div><div><br></div><div data-marker="__QUOTED_TEXT__">Hi,<div class=""><br></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="" data-mce-style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: 'menlo';"><span 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 class=""> </span></div><div class=""><div class=""><div dir="auto" style="color: #000000; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word;" class="" data-mce-style="color: #000000; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word;"><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></div><div><pre style="font-family: 'jetbrains mono' , monospace;" class="" data-mce-style="font-family: 'jetbrains mono' , monospace;"><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"><dependency><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <groupId></span>org.apache.axis2<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></groupId><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <artifactId></span>axis2-wsdl2code-maven-plugin<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></artifactId><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <version></span>${axis2.version}<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></version><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> </span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></dependency></span></pre><div class=""><pre style="font-family: 'jetbrains mono' , monospace;" class="" data-mce-style="font-family: 'jetbrains mono' , monospace;"><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"><dependency><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <groupId></span>org.testng<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></groupId><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <artifactId></span>testng<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></artifactId><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <version></span>${testng.version}<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></version><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></dependency></span></pre><div class=""><br></div></div><div class=""><pre style="font-family: 'jetbrains mono' , monospace;" class="" data-mce-style="font-family: 'jetbrains mono' , monospace;"><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"><plugin><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <groupId></span>org.apache.axis2<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></groupId><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <artifactId></span>axis2-wsdl2code-maven-plugin<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></artifactId><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <version></span>${axis2.version}<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></version><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <executions><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <execution><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <id></span>generate-sources-employee<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></id><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <phase></span>generate-sources<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></phase><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <configuration><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <packageName></span>be.vives.planon<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></packageName><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <wsdlFile></span>${basedir}/src/main/resources/UsrEmployee.wsdl<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></wsdlFile><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <outputDirectory></span>target/generated-sources<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></outputDirectory><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <databindingName></span>adb<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></databindingName><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> </configuration><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <goals><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> <goal></span>wsdl2code<span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></goal><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> </goals><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> </execution></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"> </executions><br class=""></span><span style="color: #e8bf6a;" class="" data-mce-style="color: #e8bf6a;"></plugin></span></pre><div class=""><br></div></div></div><div><br class="">Davy Priem</div></div></div></div><br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>https://lists.evolveum.com/mailman/listinfo/midpoint</div></div></body></html>