java - javax.ws.rs.BadRequestException: HTTP 400 Bad Request -
i have jax rs rest service request class below
@xmlrootelement(name = "cdsrequest") @xmlseealso({myclass.class}) @xmltype(name = "cdsrequest", proporder = {"data", "refclass"}) public class cdsrequest { object data; class refclass; public class getrefclass() { return refclass; } public void setrefclass(class refclass) { this.refclass = refclass; } public object getdata() { return data; } public void setdata(object data) { this.data = data; } }
when make rest call using above request object, below error. suspect issue generic object type data. thought **@xmlseealso**
resolve it. please help
javax.ws.rs.badrequestexception: http 400 bad request @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:57) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:526) @ org.apache.cxf.jaxrs.client.abstractclient.converttowebapplicationexception(abstractclient.java:426) @ org.apache.cxf.jaxrs.client.clientproxyimpl.checkresponse(clientproxyimpl.java:290) @ org.apache.cxf.jaxrs.client.clientproxyimpl.handleresponse(clientproxyimpl.java:585) @ org.apache.cxf.jaxrs.client.clientproxyimpl.dochainedinvocation(clientproxyimpl.java:551) @ org.apache.cxf.jaxrs.client.clientproxyimpl.invoke(clientproxyimpl.java:205) @ com.sun.proxy.$proxy93.pushrawdata(unknown source)
Comments
Post a Comment