[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 09:15:08 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40209#action_40209 ] 

Galder Zamarreno commented on HHH-6015:
---------------------------------------

Steve, I've committed a fix for the isolated classloader test (see https://github.com/hibernate/hibernate-core/commit/f3bab5638253c48dc3e1909f77d17ca45356f0b2). However, I can't figure out the problem with the other test. I'm pretty sure it's a cleanup issue from running the testClassLoaderHandlingNamedQueryCache but can't figure out what's missing. I don't have more time to look into this now. Cheers

> 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