Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28B0617516 for ; Tue, 11 Nov 2014 10:58:34 +0000 (UTC) Received: (qmail 62510 invoked by uid 500); 11 Nov 2014 10:58:33 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 62473 invoked by uid 500); 11 Nov 2014 10:58:33 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 62458 invoked by uid 99); 11 Nov 2014 10:58:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2014 10:58:33 +0000 Date: Tue, 11 Nov 2014 10:58:33 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6095) InjectionUtils can not access a member of class DateTimeZoneBuilder$PrecalculatedZone MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6095?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D142062= 78#comment-14206278 ]=20 Sergey Beryozkin commented on CXF-6095: --------------------------------------- The QueryParam("") feature is a CXF specific extension which is about unwra= pping all of the beans recursively if needed and injecting simple type prop= erties into beans. I see you have JAX-RS annotations inside HistoryParameters - you actually n= eed to use JAX-RS 2.0 BeanParam annotation instead of QueryParam(""). > InjectionUtils can not access a member of class DateTimeZoneBuilder$Preca= lculatedZone > -------------------------------------------------------------------------= ------------ > > Key: CXF-6095 > URL: https://issues.apache.org/jira/browse/CXF-6095 > Project: CXF > Issue Type: Bug > Affects Versions: 3.0.0-milestone2 > Environment: Windows 7 or Cent OS 7 > Reporter: Guillaume CAMUS > > I am trying to send a post request with cxf client implementation. But I = am getting > java.lang.IllegalAccessException: Class org.apache.cxf.jaxrs.utils.Inject= ionUtils can not access a member of class org.joda.time.tz.DateTimeZoneBuil= der$PrecalculatedZone with modifiers "public" > My method interface is : > {code} > @GET > @Path("history") > HistoryResult getHistory(@Valid @QueryParam("") HistoryParameters history= Parameters) > {code} > HistoryParameters has two joda time LocalDate :=20 > {code} > public class HistoryParameters { > @NotNull > @QueryParam("historyType") > private HistoryType historyType; > @FieldDescription(title =3D "Archive from date", value =3D "Archive f= rom date") > @QueryParam("archiveFromDate") > private LocalDate archiveFromDate; > @FieldDescription(title =3D "Archive to date", value =3D "Archive to = date") > @QueryParam("archiveToDate") > private LocalDate archiveToDate; > public HistoryParameters() { > } > ... > } > {code} > Here the stacktrace : > {quote} > java.lang.IllegalAccessException: Class org.apache.cxf.jaxrs.utils.Inject= ionUtils can not access a member of class org.joda.time.tz.DateTimeZoneBuil= der$PrecalculatedZone with modifiers "public" at sun.reflect.Reflection.ens= ureMemberAccess(Reflection.java:109) at java.lang.reflect.AccessibleObject.= slowCheckMemberAccess(AccessibleObject.java:261) at java.lang.reflect.Acces= sibleObject.checkAccess(AccessibleObject.java:253) at java.lang.reflect.Met= hod.invoke(Method.java:599) at org.apache.cxf.jaxrs.utils.InjectionUtils.ex= tractFromMethod(InjectionUtils.java:324) at org.apache.cxf.jaxrs.utils.Inje= ctionUtils.extractFromMethod(InjectionUtils.java:316) at org.apache.cxf.jax= rs.utils.InjectionUtils.fillInValuesFromBean(InjectionUtils.java:1147) at o= rg.apache.cxf.jaxrs.utils.InjectionUtils.fillInValuesFromBean(InjectionUtil= s.java:1174) at org.apache.cxf.jaxrs.utils.InjectionUtils.fillInValuesFromB= ean(InjectionUtils.java:1174) at org.apache.cxf.jaxrs.utils.InjectionUtils.= fillInValuesFromBean(InjectionUtils.java:1174) at org.apache.cxf.jaxrs.util= s.InjectionUtils.fillInValuesFromBean(InjectionUtils.java:1174) at org.apac= he.cxf.jaxrs.utils.InjectionUtils.fillInValuesFromBean(InjectionUtils.java:= 1174) at org.apache.cxf.jaxrs.utils.InjectionUtils.fillInValuesFromBean(Inj= ectionUtils.java:1174) at org.apache.cxf.jaxrs.utils.InjectionUtils.fillInV= aluesFromBean(InjectionUtils.java:1174) at org.apache.cxf.jaxrs.utils.Injec= tionUtils.extractValuesFromBean(InjectionUtils.java:1109) at org.apache.cxf= .jaxrs.client.AbstractClient.addMatrixQueryParamsToBuilder(AbstractClient.j= ava:677) at org.apache.cxf.jaxrs.client.ClientProxyImpl.handleQueries(Clien= tProxyImpl.java:455) at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(= ClientProxyImpl.java:178) at com.sun.proxy.$Proxy78.getHistoryEntries(Unkno= wn Source) > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)