The NPE has been corrected, however, it was actually just a crash in the midst of telling you that the SessionFactory you provided was not a valid instance of Hibernate3 or Hibernate4's SessionFactory, in other words, that you've got invalid config.
Now that an NPE won't happen in this case, your fake SessionFactory object might actually work, since we call all the relevant methods via Java reflection. However, this wouldn't be a supported approach.
So options are now:
1. continue with your unsupported hack; it may work
2. use Spring
3. sponsor a supported way to do this without Spring. If this is how you'd like to proceed, use the contact page to get started
Now that an NPE won't happen in this case, your fake SessionFactory object might actually work, since we call all the relevant methods via Java reflection. However, this wouldn't be a supported approach.
So options are now:
1. continue with your unsupported hack; it may work
2. use Spring
3. sponsor a supported way to do this without Spring. If this is how you'd like to proceed, use the contact page to get started
Comment