Bug #12070
closedFix linkage error in Windows discovery API
100%
Description
Environment details
620 pack
Prerequisites
none
Steps
Enroll a windows device
Description
After the fix done for bulk enrollment https://roadmap.entgra.net/issues/12048 the discovery endpoint ( /api/device-mgt/windows/v1.0/discovery/post
) fails with the below linkage error:
java.lang.LinkageError: loader constraint violation for class org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller: when selecting overriding method 'java.lang.String org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller.addSwaRefAttachment(javax.activation.DataHandler)' the class loader org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader @5ec6ca7c of the selected method's type org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller, and the class loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @16669cd2 for its super type javax.xml.bind.attachment.AttachmentMarshaller have different Class objects for the type javax.activation.DataHandler used in the signature (org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller is in unnamed module of loader org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader @5ec6ca7c, parent loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @6697676; javax.xml.bind.attachment.AttachmentMarshaller is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @16669cd2, parent loader 'app')
Result
Cannot enroll a windows device
Updated by Navod Zoysa about 1 month ago
- Status changed from New to QA
- % Done changed from 0 to 100
Updated by Arshana Atapattu about 1 month ago
- Status changed from QA Accept to Closed
Closing due to QA accept