Message:
The following issue has been closed.
Resolver: Gavin King
Date: Mon, 24 Nov 2003 6:55 AM
I fixed this - it was due to proxies being initialized from endLoadingCollections() calling endRead() on a Set of objects which overrode hashCode() and equals() to call the hashCode/equals of another proxied object.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-494
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-494
Summary: lazy collection loading causes ConcurrentModificationException
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: Hibernate2
Components:
core
Fix Fors:
2.1 rc1
Versions:
2.1 beta 6
Assignee: Gavin King
Reporter: Dmitry
Created: Sun, 23 Nov 2003 7:44 PM
Updated: Mon, 24 Nov 2003 6:55 AM
Environment: Windows XP Pro, JDK 1.3.1_09, Oracle database 8.1.7.4
Description:
Attempt to access lazy collection throws an exception:
[ERROR] PersistentCollection - -Failed to lazily initialize a collection <java.util.ConcurrentModificationException>java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.remove(HashMap.java:755)
Attached sources contain all necessary to run test. You will need Oracle JDBC.
1. Create new database user (optional, you may use existing schema)
2. execute init.sql from sources archive on the database
3. fix Test.java (HOSTNAME, SID, USERNAME and PASSWORD in the JDBC database URL).
4. Run test
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|