[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1740) Build-time instrumentation breaks lazy="proxy"

Frank Grimes (JIRA) noreply at atlassian.com
Wed Aug 16 09:42:20 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740?page=comments#action_23945 ] 

Frank Grimes commented on HHH-1740:
-----------------------------------

Hi Steve,

I've checked out the latest from the 3.2 branch and my test case still fails.
Also, I intermittently get the following errors from the instrument tests:

Cannot open connection

org.hibernate.exception.JDBCConnectionException: Cannot open connection at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:420) at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326) at org.hibernate.test.instrument.cases.TestDirtyCheckExecutable.execute(TestDirtyCheckExecutable.java:19) at org.hibernate.test.instrument.buildtime.InstrumentTest.execute(InstrumentTest.java:59) at org.hibernate.test.instrument.buildtime.InstrumentTest.testDirtyCheck(InstrumentTest.java:29) at org.hibernate.test.TestCase.runTest(TestCase.java:162) at org.hibernate.test.instrument.buildtime.InstrumentTest.runTest(InstrumentTest.java:72) at org.hibernate.test.TestCase.runBare(TestCase.java:402)Caused by: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile at dec476cb[file =D:\eclipse-3.1\workspaces\invex-stratix\Hibernate3-Branch_3_2\Hibernate3\build\db\hsqldb\hibernate.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [D:\eclipse-3.1\workspaces\invex-stratix\Hibernate3-Branch_3_2\Hibernate3\build\db\hsqldb\hibernate.lck] is presumably locked by another process. at org.hsqldb.jdbc.Util.sqlException(Unknown Source) at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source) at org.hsqldb.jdbcDriver.getConnection(Unknown Source) at org.hsqldb.jdbcDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417) ... 25 more

> Build-time instrumentation breaks lazy="proxy"
> ----------------------------------------------
>
>          Key: HHH-1740
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740
>      Project: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.1.3, 3.2.0 cr1, 3.2.0.cr2
>     Reporter: Frank Grimes
>     Assignee: Steve Ebersole
>     Priority: Critical
>      Fix For: 3.2.0.ga
>  Attachments: 312Document.class, Document.class, HHH-1740.diff
>
>
> I have a mapping that contains a many-to-one lazy="proxy".
> This alone works fine: I see $$EnhancerByCGLIB$$ as the type when I do a load
> Once I add a lazy property to the mapping and do build-time cglib enhancement, it breaks.
> Not only is the lazy property listed in $CGLIB_READ_WRITE_CALLBACK, but also my lazy="proxy" association. (i.e. no more proxy object)
> This works fine in hibernate-3.1.2.
> This was originally brought up here: http://forums.hibernate.org/viewtopic.php?t=958881
> Please let me know if more info or a test case is needed.

-- 
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