Anonymous | Login | Signup for a new account | 12-17-2024 08:47 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001137 | [Resin] | minor | always | 05-22-06 10:32 | 06-27-06 14:35 | ||||
Reporter | ferg | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | urgent | Resolution | fixed | ||||||
Status | closed | Product Version | |||||||
Summary | 0001137: connections disappearing | ||||||||
Description |
(rep by Neil Fradkin) First, we are running resin 3.0.14 (we plan to put 3.0.19 on our test machine next week). We are having a very strange problem where it appears connections are dropping out from under us. Here's an example stack trace: An error occured on 2006.05.19 at 04:44:58 PM null java.lang.NullPointerException at com.caucho.sql.UserConnection.getAutoCommit(UserConnection.java:557) at org.hibernate.jdbc.ConnectionManager.isAutoCommit(ConnectionManager.java:185) at org.hibernate.jdbc.ConnectionManager.isAggressiveRelease(ConnectionManager.java:208) at org.hibernate.jdbc.ConnectionManager.afterStatement(ConnectionManager.java:264) at org.hibernate.jdbc.AbstractBatcher.closePreparedStatement(AbstractBatcher.java:535) at org.hibernate.jdbc.AbstractBatcher.closeStatement(AbstractBatcher.java:265) at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:281) at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:209) at org.hibernate.loader.Loader.doQuery(Loader.java:714) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) at org.hibernate.loader.Loader.doList(Loader.java:2145) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029) at org.hibernate.loader.Loader.list(Loader.java:2024) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:392) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:333) at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1109) As you can see we are using hibernate (3.1 to be exact). The database is Oracle. This error only happens during our stress testing when we are really banging on the system, with many threads simultaneously running our most expensive operations. It has happened in a few different places, the only common factor is that the places where it happens all seem to be our longer running queries (it has happened here and two other places where we call stored procedures that can take a few minutes under heavy stress). We did check resin's connection pool settings and we thought we had a culprit when we saw that we had max-active-time set to 180s, but we changed it to default (6 hrs according to the docs) and the problem still happens. I've gone over all our connection (and hibernate session) handling with a fine tooth comb to make sure we aren't doing this to ourselves. The queries themselves run without incident. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |