2017-02-23 46 views
0

我從文件讀取XML contant並傳遞xml流以將xml轉換爲對象。我不知道爲什麼我在jibx運行時運行unmarshal時會得到低於錯誤的錯誤。 我將jibx /lib/jibx-run.jar和/lib/xpp3.jar jar包含到項目類路徑中。Jibx unmarshal運行時錯誤:NoSuchMethodError

注:我在com.bbb.plugins.ccc.objects.Envelope類,但我沒有JiBX_abcd_binding_newi ... methon在該類

還是我不是abale到undastand爲什麼JiBX的運行時間尋找其他方法

ERROR Problem while processing the message : 
java.lang.NoSuchMethodError: com.bbb.plugins.ccc.objects.Envelope.JiBX_abcd_binding_newinstance_1_0(Lcom/bbb/plugins/ccc/objects/Envelope;Lorg/jibx/runtime/impl/UnmarshallingContext;)Lcom/bbb/plugins/ccc/objects/Envelope; 
    at com.bbb.plugins.ccc.objects.JiBX_abcd_bindingEnvelope_access.unmarshal() ~[ccc-poller-schema-0.0.14.jar:na] 
    at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2757) ~[jibx-run-1.2.3.jar:1.2.3] 
    at com.company.ccc.util.XMLParser.makeObject(XMLParser.java:65) ~[main/:na] 

回答

0

刪除類路徑中的所有重複類加載。

axis.8716.n7.nabble.com/NoSuchMethodError-when-service-classes-and-JiBX-data-binding-classes-are-located-in-WEB-INF-classes-td35316.html