[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: PersistenceUnitInfo

mfobrien do-not-reply at jboss.com
Fri Apr 18 15:55:08 EDT 2008


Hi, There is a fix for the secondary NPE in this bug within EclipseLink M7 under bug#227630

This is a fix for the NPE when doing a universalClassLoader3.loadClass() - the call to aPersistenceUnitInfo.getNewTempClassLoader() returns a [UCL3] not [null] in this case.

The JBoss SPI implementation for persistenceUnitInfo.getNewTempClassLoader() is causing a NPE problem when using the JBoss4 UniversalClassLoader3 - returning [null] for UCL3.loadClass(entity).
A secondary NPE occurs in EclipseLink when trying to use this [null] missing entity class.  The workaround is to handle the original NPE and disable weaving for the session.

See
https://bugs.eclipse.org/227630
https://bugs.eclipse.org/bugs/attachment.cgi?id=96619&action=diff

Thank you for raising this issue.
/michael


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145259#4145259

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145259



More information about the jboss-user mailing list