You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/01/29 15:32:38 UTC
[Bug 56088] New: AbstractQueryReport$StatementProxy throws exception
on Object methods if statement is closed
https://issues.apache.org/bugzilla/show_bug.cgi?id=56088
Bug ID: 56088
Summary: AbstractQueryReport$StatementProxy throws exception on
Object methods if statement is closed
Product: Tomcat Modules
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P2
Component: jdbc-pool
Assignee: dev@tomcat.apache.org
Reporter: ignacio@bacamt.com
If the StatemetProxy.hashcode is called after the delegated statement is closed
the proxy throws an exception. This produces an incompatibility with the last
version of hibernate.
Hibernate issue at https://hibernate.atlassian.net/browse/HHH-8853.
Although this problem appear in the last version of hibernate, looks like a
silent bug in the statement proxy. For example, guava has an utility which
hides solves this problem
(https://code.google.com/p/guava-libraries/wiki/ReflectionExplained#AbstractInvocationHandler).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 56088] AbstractQueryReport$StatementProxy throws exception on
Object methods if statement is closed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56088
Lari Hotari <la...@sagire.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lari.hotari@sagire.fi
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 56088] AbstractQueryReport$StatementProxy throws exception on
Object methods if statement is closed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56088
--- Comment #1 from Lari Hotari <la...@sagire.fi> ---
Please fix this. This is causing a problem in Grails applications too,
http://jira.grails.org/browse/GRAILS-11151 . This is related to Hibernate issue
HHH-8853 and has a workaround in Hibernate 4.3.2 version (which hasn't been
released yet.)
The problem seems to be in StatementDecoratorInterceptor.StatementProxy
https://github.com/apache/tomcat/blob/7884644627150716ec3ed8460ee845179cb5da9a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/StatementDecoratorInterceptor.java#L235
not allowing equals and hashCode calls after the statement has been closed.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 56088] AbstractQueryReport$StatementProxy throws exception on
Object methods if statement is closed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56088
--- Comment #2 from Lari Hotari <la...@sagire.fi> ---
Another place where equals and hashCode should be allowed on the proxy after
closing:
https://github.com/apache/tomcat/blob/7cc49cba77c628207c3d91ad4d4e1f6b2186de94/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/AbstractQueryReport.java#L224
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org