java.lang.NoSuchMethodError: org.exolab.castor.xml.Marshaller.getResolver()

600 Views Asked by At

I am trying to make a simple SIF call in a maven project - at line

resp = (SearchQueryResponse) sipClient.process(req);

getting the exception

Exception in thread "main" java.lang.NoSuchMethodError: org.exolab.castor.xml.Marshaller.getResolver()Lorg/exolab/castor/xml/ClassDescriptorResolver;
    at com.siperian.sif.message.CastorUtil.setMappingLoader(CastorUtil.java:470)
    at com.siperian.sif.message.CastorUtil.beanToXmlString(CastorUtil.java:358)
    at com.siperian.sif.message.CastorUtil.beanToXmlString(CastorUtil.java:323)
    at com.siperian.sif.message.CastorUtil.beanToXmlString(CastorUtil.java:309)
    at com.siperian.sif.message.CastorUtil.beanToXmlString(CastorUtil.java:295)
    at com.siperian.sif.client.HttpSiperianClient._process(HttpSiperianClient.java:117)
    at com.siperian.sif.client.SiperianClient.process(SiperianClient.java:179)

I have deleted multiple versions of castor dependencies in .m2 folder and updated maven. Cleaned the project and still the error wont go away, below is the maven dependency tree enter image description here

I can see the getresolver method in castoe.xml jar file When I look at the stack trace - where getResolver is called - it is pointing to castor.XML's method.

getResolver method

classDescriptorResolver.class

0

There are 0 best solutions below