Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 94905 invoked from network); 20 Apr 2010 19:36:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Apr 2010 19:36:00 -0000 Received: (qmail 16002 invoked by uid 500); 20 Apr 2010 19:35:59 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 15925 invoked by uid 500); 20 Apr 2010 19:35:58 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 15910 invoked by uid 99); 20 Apr 2010 19:35:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Apr 2010 19:35:58 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.159.87.244] (HELO ns1.officenet.no) (195.159.87.244) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Apr 2010 19:35:51 +0000 Received: from [95.34.25.88] (helo=andreak-laptop.localnet) by ns1.officenet.no with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1O4JEC-0001dE-W3 for dev@struts.apache.org; Tue, 20 Apr 2010 21:35:28 +0200 From: Andreas Joseph Krogh Organization: OfficeNet AS To: dev@struts.apache.org Subject: Properties not getting @Injected in custom-converter Date: Tue, 20 Apr 2010 21:35:07 +0200 User-Agent: KMail/1.13.2 (Linux/2.6.31-21-generic; KDE/4.4.2; i686; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201004202135.07975.andreak@officenet.no> X-Spam-Score: -0.7 X-Spam-Report: SpamAssasin (score=-0.7, required 5.0 ALL_TRUSTED=-1.8,BAYES_50=0.001,DNS_FROM_OPENWHOIS=1.13) Hi. Environment: $ uname -a Linux prod2 2.6.20-17-server #2 SMP Thu Jul 10 00:12:43 UTC 2008 i686 GNU/L= inux $ java -version java version "1.6.0_19" Java(TM) SE Runtime Environment (build 1.6.0_19-b04) Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing) apache-tomcat-6.0.26 I'm using Struts-2.1.8.1 and have a custom converter for java.util.List reg= istered in xwork-conversion.properties: java.util.List=3Dno.officenet.origo.frontend.converter.ListConverter This converter extends XWorkBasicConverter and on our production-server we = experience that all properties being injected by the setters having the @In= ject annotation are null, resulting in lots of NPEs at runtime. We don't kn= ow if the setters are called with a argument or if they're not calle= d at all. The strange thing is that it works if we turn on debugging (./cat= alina jpda start). It also works on all our development-machines (Intel cor= e2 duo), laptops, while the production-server is a dual Xeon machine. I hav= e no clue why this is happening and the logs show nothing. There is very mi= nimal logging in ContainerImpl and related xwork-classes. Anybody have a suggestion on where to go from here? =2D-=20 Andreas Joseph Krogh Senior Software Developer / CTO =2D-----------------------+---------------------------------------------+ OfficeNet AS | The most difficult thing in the world is to | Rosenholmveien 25 | know how to do a thing and to watch | 1414 Troll=C3=A5sen | somebody else doing it wrong, without | NORWAY | comment. | | | Tlf: +47 24 15 38 90 | | =46ax: +47 24 15 38 91 | | Mobile: +47 909 56 963 | | =2D-----------------------+---------------------------------------------+ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org