[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6015) Investigate hibernate-infinispan test failures since migration to JUnit4
Galder Zamarreno (JIRA)
noreply at atlassian.com
Tue Mar 15 07:03:08 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40206#action_40206 ]
Galder Zamarreno commented on HHH-6015:
---------------------------------------
Steve, the problem is that you're not mimicking the test correctly. There's two classloaders being set up in the correct test. One where the classes are not found and once where classes are found, and in the migration you did, you only create one classloader that includes the entities to be looked up. I'm trying to fix it now.
> Investigate hibernate-infinispan test failures since migration to JUnit4
> ------------------------------------------------------------------------
>
> Key: HHH-6015
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6015
> Project: Hibernate Core
> Issue Type: Task
> Components: testsuite
> Reporter: Steve Ebersole
> Assignee: Galder Zamarreno
> Fix For: 4.0.0.Alpha2
>
>
> 2 failures, both in {{org.hibernate.test.cache.infinispan.functional.classloader.IsolatedClassLoaderTest}}:
> {{testClassLoaderHandlingStandardQueryCache}}
> {noformat}
> org.hibernate.PersistentObjectException: detached entity passed to persist: org.hibernate.test.cache.infinispan.functional.classloader.Account
> at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:124)
> at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:62)
> at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:813)
> at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:787)
> at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:791)
> at org.hibernate.test.cache.infinispan.functional.classloader.ClassLoaderTestDAO.createAccount(ClassLoaderTestDAO.java:146)
> at org.hibernate.test.cache.infinispan.functional.classloader.IsolatedClassLoaderTest.setupEntities(IsolatedClassLoaderTest.java:310)
> at org.hibernate.test.cache.infinispan.functional.classloader.IsolatedClassLoaderTest.queryTest(IsolatedClassLoaderTest.java:222)
> at org.hibernate.test.cache.infinispan.functional.classloader.IsolatedClassLoaderTest.testClassLoaderHandlingStandardQueryCache(IsolatedClassLoaderTest.java:179)
> ...
> {noformat}
> {{testIsolatedSetup}}
> {noformat}
> java.lang.AssertionError: Should not have succeeded in putting acct -- classloader not isolated
> at org.junit.Assert.fail(Assert.java:91)
> at org.hibernate.test.cache.infinispan.functional.classloader.IsolatedClassLoaderTest.testIsolatedSetup(IsolatedClassLoaderTest.java:155)
> ...
> {noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list