Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
NPE in GenericTypeResolver when using Spring 2.5 on IBM JDK 1.6 [SPR-4788] #9465
(spring2.5 && ibm jdk5) ||( spring2.0.8 && ibm jdk6) is fine.
spring2.5 && ibm jdk6 will produce a NPE
2008-05-08 15:27:54,739 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] [org.springframework.web.context.ContextLoader] [ERROR] - Context initialization failed
Juergen Hoeller commented
This seems to be caused by a slightly different implementation of the "java.beans.PropertyDescriptor" class in IBM's JDK class libraries... breaking an assumption in Spring's GenericTypeAwarePropertyDescriptor subclass. I've revised this for Spring 2.5.5, hopefully being compatible with IBM's JDK 1.6 as well now (again).
This will be available in tonight's 2.5.5 snapshot (build 489 or higher; available from http://static.springframework.org/downloads/nightly/snapshot-download.php?project=SPR). Please give it a try and let us know whether it works for you on IBM's JDK 1.6...
Yanming Zhou commented
you just add some assumption,but didn't resolve this problem actually.
2008-05-09 14:06:58,794 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed