<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="">We just excluded xpp3 and seems to work. if we understand the dependency tree, this is used for jibx which we don’t use.</div>
<div class=""><br class="">
</div>
<div class="">
<pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:'JetBrains Mono',monospace;font-size:9,8pt;" 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="">    <exclusions><br class=""></span><span style="color:#e8bf6a;" class="">        <exclusion><br class=""></span><span style="color:#e8bf6a;" class="">            <artifactId></span>xpp3<span style="color:#e8bf6a;" class=""></artifactId><br class=""></span><span style="color:#e8bf6a;" class="">            <groupId></span>xpp3<span style="color:#e8bf6a;" class=""></groupId><br class=""></span><span style="color:#e8bf6a;" class="">        </exclusion><br class=""></span><span style="color:#e8bf6a;" class="">    </exclusions><br class=""></span><span style="color:#e8bf6a;" class=""></dependency></span></pre>
<div class=""><br class="">
</div>
<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><br class="">
Davy Priem<br class="">
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">Op 13 dec. 2021, om 14:55 heeft Davy Priem via midPoint <<a href="mailto:midpoint@lists.evolveum.com" class="">midpoint@lists.evolveum.com</a>> het volgende geschreven:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">Thx for the quick reply. We’re testing on MP 4.4 - openjdk 17. I see there’s indeed some collision</div>
<div class=""><span id="cid:749297BC-DFAA-4FC7-8DAB-118D8450F6E0"><GeplakteAfbeelding-1.png></span><br class="">
<div class="">
<div dir="auto" style="caret-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 class=""><br class="">
Davy Priem<br class="">
<br class="">
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">Op 13 dec. 2021, om 14:30 heeft Richard Richter <<a href="mailto:virgo@evolveum.com" class="">virgo@evolveum.com</a>> het volgende geschreven:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class="">
<div class="">Hi Davy</div>
<div class=""><br class="">
</div>
<div class="">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 class="">Check the connector JAR for dependencies, I guess they are under <strong class="">
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 class=""><span id="cid:73b272c48c1a2ec1224f22686b2c3f801d3a40ad@zimbra" class=""><540001.png></span></div>
<div class="">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 class="">
</div>
<div class=""><br data-mce-bogus="1" class="">
</div>
<div class="">Cheers<br data-mce-bogus="1" class="">
</div>
<div class=""><br data-mce-bogus="1" class="">
</div>
<div class="">Richard Richter<br data-mce-bogus="1" class="">
</div>
<div class="">Evolveum developer<br data-mce-bogus="1" class="">
</div>
<div class=""><br data-mce-bogus="1" class="">
</div>
<div class=""><br class="">
</div>
<hr id="zwchr" data-marker="__DIVIDER__" class="">
<div data-marker="__HEADERS__" class=""><b class="">From: </b>"midPoint General Discussion" <<a href="mailto:midpoint@lists.evolveum.com" class="">midpoint@lists.evolveum.com</a>><br class="">
<b class="">To: </b>"midPoint General Discussion" <<a href="mailto:midpoint@lists.evolveum.com" class="">midpoint@lists.evolveum.com</a>><br class="">
<b class="">Cc: </b>"Davy Priem" <<a href="mailto:davy.priem@vives.be" class="">davy.priem@vives.be</a>><br class="">
<b class="">Sent: </b>Monday, December 13, 2021 1:35:28 PM<br class="">
<b class="">Subject: </b>[midPoint] Issues with connector.</div>
<div class=""><br class="">
</div>
<div data-marker="__QUOTED_TEXT__" 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="" 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="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 class="">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 class=""><br class="">
</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;"><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 class="">
</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 class="">
</div>
</div>
</div>
<div class=""><br class="">
Davy Priem</div>
</div>
</div>
</div>
<br class="">
_______________________________________________<br class="">
midPoint mailing list<br class="">
<a href="mailto:midPoint@lists.evolveum.com" class="">midPoint@lists.evolveum.com</a><br class="">
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" class="">https://lists.evolveum.com/mailman/listinfo/midpoint</a></div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
midPoint mailing list<br class="">
<a href="mailto:midPoint@lists.evolveum.com" class="">midPoint@lists.evolveum.com</a><br class="">
https://lists.evolveum.com/mailman/listinfo/midpoint<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>