java - InjectionUtils can not access a member of class DateTimeZoneBuilder$PrecalculatedZone -



java - InjectionUtils can not access a member of class DateTimeZoneBuilder$PrecalculatedZone -

i trying send post request cxf implementation. getting

java.lang.illegalaccessexception: class org.apache.cxf.jaxrs.utils.injectionutils can not access fellow member of class org.joda.time.tz.datetimezonebuilder$precalculatedzone modifiers "public"

my method interface :

@get @path("history") historyresult gethistory(@valid @queryparam("") historyparameters historyparameters)

historyparameters has 2 joda time localdate : public class historyparameters {

@notnull @queryparam("historytype") private historytype historytype; @fielddescription(title = "archive date", value = "archive date") @queryparam("archivefromdate") private localdate archivefromdate; @fielddescription(title = "archive date", value = "archive date") @queryparam("archivetodate") private localdate archivetodate; public historyparameters() { } ... }

here stacktrace :

java.lang.illegalaccessexception: class org.apache.cxf.jaxrs.utils.injectionutils can not access fellow member of class org.joda.time.tz.datetimezonebuilder$precalculatedzone modifiers "public" @ sun.reflect.reflection.ensurememberaccess(reflection.java:109) @ java.lang.reflect.accessibleobject.slowcheckmemberaccess(accessibleobject.java:261) @ java.lang.reflect.accessibleobject.checkaccess(accessibleobject.java:253) @ java.lang.reflect.method.invoke(method.java:599) @ org.apache.cxf.jaxrs.utils.injectionutils.extractfrommethod(injectionutils.java:324) @ org.apache.cxf.jaxrs.utils.injectionutils.extractfrommethod(injectionutils.java:316) @ org.apache.cxf.jaxrs.utils.injectionutils.fillinvaluesfrombean(injectionutils.java:1147) @ org.apache.cxf.jaxrs.utils.injectionutils.fillinvaluesfrombean(injectionutils.java:1174) @ org.apache.cxf.jaxrs.utils.injectionutils.fillinvaluesfrombean(injectionutils.java:1174) @ org.apache.cxf.jaxrs.utils.injectionutils.fillinvaluesfrombean(injectionutils.java:1174) @ org.apache.cxf.jaxrs.utils.injectionutils.fillinvaluesfrombean(injectionutils.java:1174) @ org.apache.cxf.jaxrs.utils.injectionutils.fillinvaluesfrombean(injectionutils.java:1174) @ org.apache.cxf.jaxrs.utils.injectionutils.fillinvaluesfrombean(injectionutils.java:1174) @ org.apache.cxf.jaxrs.utils.injectionutils.fillinvaluesfrombean(injectionutils.java:1174) @ org.apache.cxf.jaxrs.utils.injectionutils.extractvaluesfrombean(injectionutils.java:1109) @ org.apache.cxf.jaxrs.client.abstractclient.addmatrixqueryparamstobuilder(abstractclient.java:677) @ org.apache.cxf.jaxrs.client.clientproxyimpl.handlequeries(clientproxyimpl.java:455) @ org.apache.cxf.jaxrs.client.clientproxyimpl.invoke(clientproxyimpl.java:178) @ com.sun.proxy.$proxy78.gethistoryentries(unknown source)

i fixed issue instead of using @queryparam("") introspect attributes, used @beanparam annotation careful @queryparam within pojo (historyparameters in example) have set on setter.

java cxf jodatime

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -