Hi,
I am using a bag in one of my classes with a regular mapping that works fine when I run it via Eclipse in stand-alone. When I run it within weblogic 8.1sp3 (nothing fancy here, i.e. I use the same hibernate configuration xml file), I am getting a NullPointerException in PersistentBag.size very consistently in one of my test cases. This is with hibernate 3.0.5 on java 1.4.2_06.
Upon looking at the source code, the private List bag member is not initialized for the PersistentBag(SessionImplementor session) or PersistentBag() constructors. My test case works fine if I initialize the list in the PersistentBag(SessionImplementor session) constructor.
could you confirm that this uninitialization is actually a problem? (first time I've looked at the code base so I am not sure how to assess this even if it looks fishy)
Thanks!
Sebastien
|