SessionImpl « Exception « JPA Q&A





1. SessionImpl.updateReachableCollection Error    forum.hibernate.org

The unsaved-value attribute of the mapping specifies which identifier values should be interpreted as representing a "new" instance. The allowed values of unsaved-value are: * any - always save * none - always update * null - save when identifier is null (this is the default) * valid identifier value - save when identifier is null or the given value ...

2. NullPointerException in SessionImpl (getOrphans)    forum.hibernate.org

Gettings, I'm having a strange error. I'm trying to update an object that is in my servlet session, both to ensure it is up to date and to associate it with my current session, but I get an error on the update. The exception is from within SessionImpl, and is follows: Code: at ...

3. NullPointerException in SessionImpl.getOrphans()    forum.hibernate.org

We are currently using Hibernate 2.1 with PostgreSQL 7.3.4 and JBoss 3.2.2. I am not including all mapping documents yet since I hope that the problem is clear from the description below. I get a NullPointerException in SessionImpl.getOrphans() after vetoing an update in the Lifecycle method onUpdate() (see stack trace below). The broader situation is like this: We are using detached ...

4. java.lang.IndexOutOfBoundsException at SessionImpl.executeAl    forum.hibernate.org

Hello, fighting against an error, and getting confused by it. I just give you the exception and maybe someone can put me in the right direction. Describing the whole situation with mappings, classes.. would be to complex. Code: 01:12:12,312 ERROR [LogInterceptor] RuntimeException: java.lang.IndexOutOfBoundsException: Index: 38, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) ...

5. NullPointerException at net.sf.hibernate.impl.SessionImpl    forum.hibernate.org

I am using Hibernate2.1.2 and jdk1.4 I encounter problem with lazy initialization when I do these: (1)Load an object. (2)Call getter or setter of that object. (If this step, everything is fine). (3)Call Session.clear() (4)Call a getter, which returns a Collection, of the object (5)Get Iterator from the return Collection and at this point the following exception occurs: net.sf.hibernate.LazyInitializationException: Failed to ...

6. OutofMemory: SessionImpl doesn't clear ScheduledInsertion    forum.hibernate.org

I get OutofMemoryError when I'm using Hibernate to create 20,000 rows in one transaction. I debuged the Hibernate for a little while. What I got is: SessionImpl doesn't release references to "ScheduledInsertion" objects until the transaction is commited(). ( SessionImpl.afterTransactionCompletion() calls "executions.clear()" ) So I have to break the whole thing into a lot of transactions. Is this a restriction for ...

7. Strange exception in SessionImpl.doLoad    forum.hibernate.org

8. java.lang.IncompatibleClassChangeError in SessionImpl.java    forum.hibernate.org

I get this error at runtime for my application deployed on JBoss 4.0.5 which has hibernate 3. java.lang.IncompatibleClassChangeError at org.hibernate.impl.SessionImpl.afterTransactionCompletion(SessionImpl.java:377) at org.hibernate.jdbc.JDBCContext.afterTransactionCompletion(JDBCContext.java:228) at org.hibernate.jdbc.JDBCContext.disconnect(JDBCContext.java:191) at org.hibernate.jdbc.JDBCContext.release(JDBCContext.java:88) at org.hibernate.impl.SessionImpl.close(SessionImpl.java:274) The same configuration deploys fine on JBoss 4.0.2. I tried googling and removed log4j jars (incompatible versions probably) from my application.war file but the problem still persisits what next?