Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3703A2005E6 for ; Sun, 30 Jul 2017 22:54:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 353F216405B; Sun, 30 Jul 2017 20:54:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4CA3D164059 for ; Sun, 30 Jul 2017 22:54:32 +0200 (CEST) Received: (qmail 46376 invoked by uid 500); 30 Jul 2017 20:54:31 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 46364 invoked by uid 99); 30 Jul 2017 20:54:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jul 2017 20:54:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4D428C0913 for ; Sun, 30 Jul 2017 20:54:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.567 X-Spam-Level: * X-Spam-Status: No, score=1.567 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_HOTMAIL_RCVD2=1.187, KAM_NUMSUBJECT=0.5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8bGXCoOc0qp2 for ; Sun, 30 Jul 2017 20:54:23 +0000 (UTC) Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-oln040092014073.outbound.protection.outlook.com [40.92.14.73]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8560A5F6C0 for ; Sun, 30 Jul 2017 20:54:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RwpG1dt8J5TiCyJ2PMn0MgAgMYxhUbah7u8kgcB0FRk=; b=BTLD7T+AZBrAZYWm/DOBrv4jN5kjfY4/Q+EM9wCQ8v9L8VvSCPrDSryRUpFmS/jFEj0Bry4BsgvMg+U/1ea4AD5D5SXPkbuqeI5DlIxblK5ju+SIiIpHBm8KOtWJ6IUC/uRIsQL8jZaX54ICtTxluBmGgTDrDG7aT7nq1oBr20DHD/2Xln4UhhCU13sU8HbUZlUWE5eL3lUs0e7Gp9I9GkTl2yUiGEmpyFo/91FjSR9TdWCOkk9DKOY0f92wEi0nJQ08Cgf7xque9PUMaS3bkVQVGczJbib1+RvcuJ93QmBDWJ48TPN3cKuBZn/twzY/ixWxW2zMYKRENpcdUj8YbQ== Received: from BY2NAM05FT008.eop-nam05.prod.protection.outlook.com (10.152.100.55) by BY2NAM05HT033.eop-nam05.prod.protection.outlook.com (10.152.100.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1261.15; Sun, 30 Jul 2017 19:00:28 +0000 Received: from BY2PR11MB0727.namprd11.prod.outlook.com (10.152.100.55) by BY2NAM05FT008.mail.protection.outlook.com (10.152.100.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1304.16 via Frontend Transport; Sun, 30 Jul 2017 19:00:28 +0000 Received: from BY2PR11MB0727.namprd11.prod.outlook.com ([10.163.112.13]) by BY2PR11MB0727.namprd11.prod.outlook.com ([10.163.112.13]) with mapi id 15.01.1304.022; Sun, 30 Jul 2017 19:00:28 +0000 From: Rubens Gomes To: "user@struts.apache.org" Subject: spring struts 2: Unexpected Exception caught setting 'lang' on 'class com.sun.proxy.$Proxy164 Thread-Topic: spring struts 2: Unexpected Exception caught setting 'lang' on 'class com.sun.proxy.$Proxy164 Thread-Index: AQHTCWUok8ZomIMy10G9rWaKtoiB+Q== Date: Sun, 30 Jul 2017 19:00:28 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: struts.apache.org; dkim=none (message not signed) header.d=none;struts.apache.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:D9BD57026FCB07901CE232EEF1B0D46BF441D209FFC1870CA72CA787CA6A22A0;UpperCasedChecksum:39DBB63FF89C5D54F321B9E579295814E8658FBBD4EF58FDEC9F22D97F0685C7;SizeAsReceived:7141;Count:43 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ud5AzdVJLNGNNy4n89DkIHoDfzzr4GaC] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY2NAM05HT033;7:t0wURpmZcXGtPgawR4vH4KJTsldJ29OQGMn6uwJie4kUCeiS4Wcm7cCch3TxkOUhv8SlfnYi9/4GWTwsTJTIH8Av1XBfFwKSIcUdAtLCtJDS14njKL0qYEIghBYhVDG5xThUF5rFoGSPxOGZDfd0NxvtNTJ1CkMBFCQT2zFw0+ffx5qSCPA1DJWok7W6v9WhmZ5O0MYcjDcEcBNvM2ZWgYv+UF/s+gbwoME1ADDWsrJpjTN35XJmD8wc1Y84S932zQqhJEx0FZWQZemjBnPwdE68ISEU3eQKaQKtaED0FR70m11rquvvD8Giesh4p3fN86OdtMlXG1rL7aRThekkur+51okS+6Jgvq0iQl3LNZc+m3jdk4SmNRnlHELAkoqMy9Q+Mh77K+eIiMA4uwYChgTXPV7tfCPlQbcgQXg8c6hli+NloOsTO86VrwaOlwRUa38s0yH4vWfSg7BFOEGYyH06E8KcaBbmoOFLiFJ1mG2CxebHWXJlF+RqARW13JeNZTLGWPARAE/YlcK2Fa+lylvX2x3Os6euPAT6iudIFhLDxK6GYy0H9gIvM7nf1+wA8OGIjS+GZWKJknvpLxT4hhWthK4Jx9153SEDbzlcFY0+yWbZxIW8XalWA5pqI00/0jB5HWyZnkVvysTVwM0QGdNyM9G5N4dtvSRmsor/rHXcJMa3kb8e/OCCbTpSx/c0tt6qqQ2Jcgd88DUS/dQQ1UI/suoGs0B8RAJRTyef+qvla6vwhGDC49RNRwHbiEfCYvHSXdx39xZAhLsQtTl5CQ== x-incomingheadercount: 43 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:BY2NAM05HT033;H:BY2PR11MB0727.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:; x-ms-office365-filtering-correlation-id: e700db50-3ae7-4730-caf6-08d4d77d3e9d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322377)(1603101448)(1601125374)(1701031045)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BY2NAM05HT033; x-ms-traffictypediagnostic: BY2NAM05HT033: x-exchange-antispam-report-test: UriScan:(265634631926514); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031);SRVR:BY2NAM05HT033;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2NAM05HT033; x-forefront-prvs: 0384275935 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jul 2017 19:00:28.4994 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM05HT033 archived-at: Sun, 30 Jul 2017 20:54:33 -0000 I am using the Spring + Struts 2 Plugin, and I am getting an error from the= Struts2 ParameterInteceptor (see below) when setting request parameters se= nt on the URL. My Actions are being created by the Spring factory. And I = *do* have the proper properties setters in my class (see below). In the URL below, the "lang" and "redirectURL" , both lang/redirectURL are = not being set. http://localhost:8080/locale/change-locale.do?lang=3Den&redirectURL=3D%2Fse= curity%2Fview-login.do 07-30 13:49:05.187 DEBUG [http-nio-8080-exec-5] c.o.x.i.ParametersIntercept= or - Setting params lang =3D> enredirectURL =3D>=20 07-30 13:49:05.188 DEBUG [http-nio-8080-exec-5] c.o.x.i.ParametersIntercept= or - Parameter [lang] was accepted and will be appended to action! 07-30 13:49:05.188 DEBUG [http-nio-8080-exec-5] c.o.x.i.ParametersIntercept= or - Parameter [redirectURL] was accepted and will be appended to action! ... 07-30 13:49:05.235 ERROR [http-nio-8080-exec-5] c.o.x.i.ParametersIntercept= or - Developer Notification (set struts.devMode to false to disable this me= ssage): Unexpected Exception caught setting 'lang' on 'class com.sun.proxy.$Proxy16= 4: Error setting expression 'lang' with value ['en', ] 07-30 13:49:05.236 DEBUG [http-nio-8080-exec-5] c.o.x.c.i.InstantiatingNull= Handler - Entering nullPropertyValue [target=3D[com.ezlista.web.struts2.act= ion.ChangeLocaleAction@4bfd8bce, com.opensymphony.xwork2.DefaultTextProvide= r@18e0976d], property=3Ddevmode] 07-30 13:49:05.245 ERROR [http-nio-8080-exec-5] c.o.x.i.ParametersIntercept= or - Developer Notification (set struts.devMode to false to disable this me= ssage): Unexpected Exception caught setting 'redirectURL' on 'class com.sun.proxy.$= Proxy164: Error setting expression 'redirectURL' with value ['', ] @Scope("request") @Controller @SuppressWarnings("serial") @Namespace("/locale") @Results( { @Result(name=3DAction.INPUT, location=3D"/error.do", type=3D"dispatcher"), @Result(name=3DAction.SUCCESS, location=3D"${redirectURL}", type=3D"dispatcher") } ) public class ChangeLocaleAction extends BaseAction { private String lang; private String redirectURL; public ChangeLocaleAction() { super(); } @Override public String execute() { // code not displayed.... } /** * @return the redirectURL */ public String getRedirectURL() { return redirectURL; } /** * @param url the redirectURL to set */ public void setRedirectURL(String url) { // _--------->>>>>> NOT BEING CALLED <<<< -------- this.redirectURL =3D url; } /** * @return the lang */ public String getLang() { return lang; } /** * @param lang the lang to set */ public void setLang(String lang) { // _--------->>>>>> NOT BEING CALLED <<<< -------- this.lang =3D lang; } } --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org