[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-572) PersistenceUnitInfo.getNewTempClassLoader()

Alexander Tsirel (JIRA) jira-events at lists.jboss.org
Fri Feb 8 09:14:03 EST 2008


    [ http://jira.jboss.com/jira/browse/EJBTHREE-572?page=comments#action_12398911 ] 
            
Alexander Tsirel commented on EJBTHREE-572:
-------------------------------------------

Now PersistenceUnitInfo.getNewTempClassLoader();  returns not null ClassLoader, 
but during start of jboss with toplink when there is a lookup 
for oracle.toplink.essentials.platform.server.jboss.JBossPlatform class with this classloader
NPE is thrown.

I added some output to toplink - here is the output for this lookup.

17:05:01,446 INFO  [STDOUT] Inside PrivilegedAccessHelper, looking for: oracle.toplink.essentials.platform.server.jboss.JBossPlatform with classLoader: org.jboss.mx.loading.UnifiedClassLoader3 at ad962c{ url=file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp42933javaEEApplication.ear ,addedOrder=0}

After this lookup we have:

17:05:01,462 WARN  [ServiceController] Problem starting service persistence.units:ear=javaEEApplication.ear,jar=EJB.jar,unitName=first
javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0.1 (Build SNAPSHOT (02/08/2008))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [first] failed.
Internal Exception: java.lang.NullPointerException
	at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:653)
	at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:178)
	at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:247)




> PersistenceUnitInfo.getNewTempClassLoader()
> -------------------------------------------
>
>                 Key: EJBTHREE-572
>                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-572
>             Project: EJB 3.0
>          Issue Type: Bug
>            Reporter: Emmanuel Bernard
>         Assigned To: Bill Burke
>
> The sooner the better.
> Hibernate can't enhance the classes to make property (not association) lazy loading.
> Toplink just can't start.
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939615#3939615

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list