Missing class for indicator field value [SUPP] of type [class java.lang.String] with JAXB and unmarshalling -
i'm trying unmarshal json java object jaxb got error :
[exception [eclipselink-43] (eclipse persistence services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.descriptorexception exception description: missing class indicator field value [supp] of type [class java.lang.string]. descriptor: xmldescriptor(com.travelsoft.cameleo.bookingprocess.data.elementjson --> [])] @ org.eclipse.persistence.jaxb.jaxbunmarshaller.unmarshal(jaxbunmarshaller.java:191) @ com.travelsoft.cameleo.bookingprocess.refactoring.action.process.searchavailabilityandquotationaction.execute(searchavailabilityandquotationaction.java:551) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ com.opensymphony.xwork2.defaultactioninvocation.invokeaction(defaultactioninvocation.java:450) @ com.opensymphony.xwork2.defaultactioninvocation.invokeactiononly(defaultactioninvocation.java:289) @ com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:252) @ com.travelsoft.cameleo.bookingprocess.refactoring.interceptor.externalinterceptor.intercept(externalinterceptor.java:62) @ com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:246) @ org.apache.struts2.interceptor.deprecationinterceptor.intercept(deprecationinterceptor.java:41) @ com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:246) @ org.apache.struts2.interceptor.debugging.debugginginterceptor.intercept(debugginginterceptor.java:256)
the class' attributes , 1 doesn't work "originaltype" :
private final static long serialversionuid = 1l; protected statusjson status; protected pricejson pricevalue; protected pricejson pricerule; @xmlelement(name = "element") protected list<elementjson> elements; protected propertyjson property; @xmlelement(name = "travellerref") protected list<travellerrefjson> travellerreves; protected pricejson nettcosts; protected informationobjectjson informationobject; @xmlattribute protected elementsubtypedefjson subtype; @xmlattribute protected string originaltype; @xmlattribute protected string groupref;
does of have idea solve problem ?
thanks !
edit : here json i'm trying unmarshal :
{ "servicejson": { "mandatoryservice": { "element": [ { "descriptions": { "description": [ { "label": "carburant j depart", "providertype": "to" } ] }, "element": [], "id": "tse1", "pricerule": { "pricedetail": [ { "amount": -14.0, "descriptions": { "description": [ { "label": "carburant j depart", "providertype": "to" } ] }, "originaltype": "supp", "quantity": 2 } ] }, "property": { "processscope": "application", "quantity": 1 }, "provider": { "sourcecode": "fram" }, "transient": false, "travellerref": [], "type": "supp" } ], "pricevalue": { "amount": 0.0, "pricedetail": [] } }, "optionalservice": { "element": [] } } }
Comments
Post a Comment