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

Steve Ebersole steve at hibernate.org
Tue Dec 8 08:14:40 EST 2009


That was my fault.  I am still working on that issue amd just missed a
file in the intermediate commit.  I have committed it now.

Sorry

On Mon, 2009-12-07 at 19:57 -0500, Scott Marlow wrote:
> 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
-- 
Steve Ebersole <steve at hibernate.org>
Hibernate.org




More information about the hibernate-dev mailing list