Memory leak in BasicLazyInitializer
-----------------------------------
Key: HHH-2456
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2456
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.2.2
Environment: Hibernate 3.2.2, cglib 2.1.3, jdk 1.4.2, weblogic 8.1
Reporter: Julien Kirch
Priority: Blocker
Attachments: graph_2.png
While profiling our application because of OutOfMemory, I noticed a big memory leak that seems to come from hibernate:
After some calls a CGLIBLazyInitializer containing a a SessionImpl is referenced in a threadlocal so it is never GCed even if the session is closed and the calling flow is over
Forum thread http://forum.hibernate.org/viewtopic.php?t=968853 seems to deal with the same issue
I attached a picture of the profiling 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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
Incorrect SQL emitted for EJB query involving COUNT()
-----------------------------------------------------
Key: EJB-251
URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-251
Project: Hibernate Entity Manager
Type: Bug
Components: EntityManager
Versions: 3.2.0.ga
Environment: Hibernate 3.2 / MySQL 4.1.xx
Reporter: Manuel Mall
If you have an entity with a composite id and query it like:
select count(e) from Entity e
the emitted SQL looks like
SELECT COUNT(e.id1, e.id2) FROM Entity
However, this is at least according to MySQL invalid SQL as the COUNT function can have only one argument.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
getForUpdateString is not correct in DB2Dialect; session.lock doesn't work as expected.
---------------------------------------------------------------------------------------
Key: HHH-2010
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2010
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.1.3, 3.2.0.cr3
Environment: 3.1.3, DB2
Reporter: Lari Hotari
The correct getForUpdateString for DB2 should be "for update with rr"
see:
http://opensource.atlassian.com/projects/hibernate/browse/HB-1032
DB2 will release all locks created in a result set if the isolation level is lower than TRANSACTION_SERIALIZABLE (RR in DB2).
Locks and concurrency control in DB2:
http://publib.boulder.ibm.com/infocenter/db2help/topic/com.ibm.db2.udb.do...
"
The duration of row locking varies with the isolation level being used:
* UR scans: No row locks are held unless row data is changing.
* CS scans: Row locks are only held while the cursor is positioned on the row.
* RS scans: Only qualifying row locks are held for the duration of the transaction.
* RR scans: All row locks are held for the duration of the transaction.
"
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
CLONE -explicit and implicit query with enabled filter gives different results
------------------------------------------------------------------------------
Key: HHH-2116
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2116
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.2.0.cr2
Environment: hibernate 3.2.0.cr2, hibernate annotations 3.2.0.cr1
Reporter: Armin Haaf
we are playing around with filters and found a inconsistent behaviour in using a filter in an explicit vs. implicit join. In explicit join a filter is not active, but in an implicit join it is active. Please look at the attachment
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
Infinite recursion in org.hibernate.cfg.Configuration.setListener(String, Object)
---------------------------------------------------------------------------------
Key: HHH-2104
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2104
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.1 rc 1
Environment: Hibernate 3.1, but also newer versions contain this bug.
Reporter: Daniel Beer
When method org.hibernate.cfg.Configuration.setListener(String, Object) is called with second argument set to <null> (in order to remove all listeners of that type) an infinite recursion occurs.
Cause:
There is a check against null in this method which invokes a wrong method (its a simple typos):
if ( listener == null ) {
setListener( type, null );
}
Instead the method "setListeners(String, Object[])" should be invoked (notice the trailing "s" in the methods name).
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
ability to specify joinType in createAlias in DetachedCriteria
--------------------------------------------------------------
Key: HHH-2400
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2400
Project: Hibernate3
Type: New Feature
Versions: 3.2.1
Environment: 3.2.1
Reporter: Michal Pavlasek
Criteria has two methods than can create an alias, but DetachedCriteria has only one method,
without the possibility of specifying the joinType.
It will be very useful for me to have that opportunity. Now I have to use Criteria instead of DetachedCriteria in some cases.
Criteria:
Criteria createAlias(String associationPath, String alias)
Join an association, assigning an alias to the joined association.
Criteria createAlias(String associationPath, String alias, int joinType)
Join an association using the specified join-type, assigning an alias to the joined association.
DetachedCriteria:
DetachedCriteria createAlias(String associationPath, String alias)
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
adding a new method to DetachedCriteria
---------------------------------------
Key: HHH-2379
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2379
Project: Hibernate3
Type: Improvement
Components: core
Versions: 3.2.1
Environment: 3.2, all db flavors
Reporter: Vadim Marchenko
I propose to add additional method to detached criteria to allow creating of left join constructs as in
public DetachedCriteria createAlias(String associationPath, String alias, int joinType)
throws HibernateException {
criteria.createAlias(associationPath, alias, joinType);
return this;
}
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
DetachedCriteria.getExecutableCriteria(session) does not return a new criteria each time
----------------------------------------------------------------------------------------
Key: HHH-2364
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2364
Project: Hibernate3
Type: Bug
Components: query-criteria
Versions: 3.2.1
Reporter: Amir Pashazadeh
detachedCriteria.getExecutableCriteria(session) does not return a new Criteria each time;
so if some projection or ... is applied on the result criteria, it will remain on next criterias.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
add alias when create a subcriteria
-----------------------------------
Key: HHH-1991
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1991
Project: Hibernate3
Type: Improvement
Components: query-criteria
Versions: 3.1 rc2
Environment: windows
Reporter: Jorge L. Middleton
Priority: Trivial
Its very simple... only I noted this:
public DetachedCriteria createCriteria(String associationPath, String alias)
throws HibernateException {
return new DetachedCriteria( impl, criteria.createCriteria(associationPath) );
}
I had a problem with this method because, hibernate doesn't recognize the alias. The point is that you have to use criteria.createCriteria(associationPath, alias);
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira