struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Joseph Krogh <>
Subject Properties not getting @Injected in custom-converter
Date Tue, 20 Apr 2010 19:35:07 GMT


$ uname -a
Linux prod2 2.6.20-17-server #2 SMP Thu Jul 10 00:12:43 UTC 2008 i686 GNU/Linux

$ 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)


I'm using Struts- and have a custom converter for java.util.List registered in


This converter extends XWorkBasicConverter and on our production-server we experience that
all properties being injected by the setters having the @Inject annotation are null, resulting
in lots of NPEs at runtime. We don't know if the setters are called with a <null> argument
or if they're not called at all. The strange thing is that it works if we turn on debugging
(./catalina jpda start). It also works on all our development-machines (Intel core2 duo),
laptops, while the production-server is a dual Xeon machine. I have no clue why this is happening
and the logs show nothing. There is very minimal logging in ContainerImpl and related xwork-classes.

Anybody have a suggestion on where to go from here?

Andreas Joseph Krogh <>
Senior Software Developer / CTO
OfficeNet AS            | The most difficult thing in the world is to |
Rosenholmveien 25       | know how to do a thing and to watch         |
1414 Trollåsen          | somebody else doing it wrong, without       |
NORWAY                  | comment.                                    |
                        |                                             |
Tlf:    +47 24 15 38 90 |                                             |
Fax:    +47 24 15 38 91 |                                             |
Mobile: +47 909  56 963 |                                             |

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message