Bugs item #1051812, was opened at 2004-10-21 15:02
Message generated for change (Comment added) made by starksm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1051812&group_id=22866

Category: JBossCX
Group: v4.0
Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Benoit Menendez (bmenendez)
Assigned to: Adrian Brock (ejort)
Summary: Statement Cache Bug

Initial Comment:
Running JBoss 4.0.0, I have a datasource with:

<prepared-statement-cache-size>32</prepared-statement-cache-size>

I get the following exception:

2004-10-21 14:57:25,987 ERROR
[org.jboss.web.localhost.Engine]
StandardWrapperValve[ProInsight Servlet]:
Servlet.service() for servlet ProInsight Servlet threw
exception
java.lang.NullPointerException
        at
org.jboss.resource.adapter.jdbc.PreparedStatementCache.ageOut(PreparedStatementCache.java:37)
        at
org.jboss.util.LRUCachePolicy$LRUList.demote(LRUCachePolicy.java:346)
        at
org.jboss.util.LRUCachePolicy.insert(LRUCachePolicy.java:162)
        at
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.prepareStatement(BaseWrapperManagedConnection.java:348)
        at
org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:205)
        at
com.proinsight.jdbc.proxy.ConnectionProxy.prepareStatement(ConnectionProxy.java:48)
        at com.proinsight.jdbc.JDBCUtil.prepare(JDBCUtil.java:316)
        at
com.proinsight.jdbc.JDBCDataSource.select(JDBCDataSource.java:138)
        at
com.proinsight.jdbc.JDBCDataSource.select(JDBCDataSource.java:121)
        at
com.proinsight.objects.ObjectDataSource.select(ObjectDataSource.java:103)


This does not occur with JBoss 3.2.6 and does not occur
if disable the statement cache in JBoss 4.0.0

----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2004-12-05 15:28

Message:
Logged In: YES 
user_id=175228

There was still a fix missing for the PreparedStatementCache
itself in 4.0 so 4.0.1RC2 still had the problem. The fix is
in the codebase for the 4.0.1 final release.

----------------------------------------------------------------------

Comment By: Steven Grimm (koreth)
Date: 2004-12-02 23:09

Message:
Logged In: YES 
user_id=59197

I am still seeing this in 4.0.1RC2. Should the fix be
present there?

----------------------------------------------------------------------

Comment By: Adrian Brock (ejort)
Date: 2004-10-21 17:28

Message:
Logged In: YES 
user_id=9459

I already fixed this earlier this week for the 4.0.1 release.
The fix had not been ported from 3.2.x into 4.0.x

http://cvs.sourceforge.net/viewcvs.py/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/BaseWrapperManagedConnection.java?rev=1.8&view=log
http://cvs.sourceforge.net/viewcvs.py/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/CachedPreparedStatement.java?rev=1.4&view=log

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1051812&group_id=22866


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to