Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Dev List »

[hibernate-dev] org.hibernate.test.annotations.id.IdTest NPE unit
test failure on trunk

Scott Marlow

2009-12-07


Author LoginPost Reply
Is anyone else seeing a NPE in idTest (31 other tests failed also)
during unit testing?

Caused by: java.lang.NullPointerException
 at
org.hibernate.id.MultipleHiLoPerTableGenerator.configure (MultipleHiLoPerTableGenerator.java:227)
    at
org.hibernate.id.factory.DefaultIdentifierGeneratorFactory.createIdentifierGenerator (DefaultIdentifierGeneratorFactory.java:110)
    at
org.hibernate.mapping.SimpleValue.createIdentifierGenerator (SimpleValue.java:177)
    at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:234)
    at
org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1,381)
    at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory (AnnotationConfiguration.java:863)
    at
org.hibernate.test.annotations.TestCase.buildSessionFactory(TestCase.java:93)
    at org.hibernate.test.annotations.TestCase.setUp(TestCase.java:106)

This appears to be caused by "params.get( IDENTIFIER_NORMALIZER )"
returning null.

Scott
_______________________________________________
hibernate-dev mailing list
hibernate-dev@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-dev
©2008 gg3721.com - Jax Systems, LLC, U.S.A.