RE: java.lang.LinkageError: loader constraint violation in interface itable

thumbnail
Jamie Sammons, modified 3 Years ago. New Member Posts: 9 Join Date: 1/19/22 Recent Posts

I am getting the below error while calling the SOAP API in  Liferay DXP 7.4 with java11:

Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization for class org.apache.axis.message.MessageElement: when selecting method 'java.util.Iterator javax.xml.soap.SOAPElement.getChildElements(javax.xml.namespace.QName)' the class loader com.liferay.shielded.container.internal.ShieldedContainerClassLoader @650eab8 for super interface javax.xml.soap.SOAPElement, and the class loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @1798eccd of the selected method's class, org.apache.axis.message.MessageElement have different Class objects for the type javax.xml.namespace.QName used in the signature (javax.xml.soap.SOAPElement is in unnamed module of loader com.liferay.shielded.container.internal.ShieldedContainerClassLoader @650eab8, parent loader 'bootstrap'; org.apache.axis.message.MessageElement is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @1798eccd, parent loader com.liferay.shielded.container.internal.ShieldedContainerClassLoader @650eab8)

 

thumbnail
Olaf Kock, modified 3 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

SOAP has been deprecated in 7.3, and I don't know if it was removed in 7.4 already (not sure how to read the docs). "Ctrl-F SOAP"