Project

General

Profile

Actions

Bug #12070

closed

Fix linkage error in Windows discovery API

Added by Navod Zoysa about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Critical
Assignee:
Start date:
11/10/2024
Due date:
11/10/2024
% Done:

100%

Estimated time:
Device Type:
Windows
Component:
Type:
Windows

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

Actions

Also available in: Atom PDF