[midPoint] Issues with connector.

Davy Priem davy.priem at vives.be
Mon Dec 13 13:35:28 CET 2021


Hi,

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:
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)

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:


<dependency>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
    <version>${axis2.version}</version>

</dependency>

<dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <version>${testng.version}</version>
</dependency>


<plugin>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
    <version>${axis2.version}</version>
    <executions>
        <execution>
            <id>generate-sources-employee</id>
            <phase>generate-sources</phase>
            <configuration>
                <packageName>be.vives.planon</packageName>

                <wsdlFile>${basedir}/src/main/resources/UsrEmployee.wsdl</wsdlFile>
                <outputDirectory>target/generated-sources</outputDirectory>
                <databindingName>adb</databindingName>
            </configuration>
            <goals>
                <goal>wsdl2code</goal>
            </goals>
        </execution>
    </executions>
</plugin>


Davy Priem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20211213/e75c2368/attachment-0001.htm>


More information about the midPoint mailing list