RAR5074

hello,

I deployed an webapp created by Java Studio Creatro 2. After approx 40hr i cant use this app anymore. that is any action that requires access to the DB, the app gets stuck. I have looked every where no idea whats wrong.

I checked the error code in the *error message reference doc*

I check the the MYsql DB it was never restarted.

Please help. Blow are the config info.

OS: Solaris 10 3/05 s10_74L2a SPARC

appserver: Sun Java System Application Server Platform

Edition 8.2.

dbserver:mysql server 4.0.24

jdbc driver:mysql-connector-java-3.1.12-bin.jar

entry in the log file

**********************

[#|2006-04-29T12:44:34.552+0700|SEVERE|sun-appserver-pe8.2|javax.enterprise.res ource.resourceadapter|_ThreadID=18;|RAR5074 : Exception while executing prepared statement|#]

[#|2006-04-29T12:44:34.559+0700|SEVERE|sun-appserver-pe8.2|javax.enterprise.res ource.resourceadapter|_ThreadID=18;|jdbc.re|#]

the connection pool settings are

general settings

********************

datesource class: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource

resource type: javax.sql.connectionPoolDataSource

pool settings

****************

init min pool size: 8

max pool size: 32

resize qnt: 2

idel timeout: 300

max wait time: 60000

connection validation

*************************

validation: required

validation method: table

tablename: validation table

on failure: close all connetion

trans isolation

*****************

isolation: read-uncomitted

level: Guaranteed

[1677 byte] By [java.boss] at [2007-11-26 6:52:02]
# 1
> [#|2006-04-29T12:44:34.552+0700|SEVERE|sun-appserver-pe8.2|javax.enterprise.res ource.resourceadapter|_ThreadID=18;|RAR5074 : Exception while executing prepared statement|#]Is there the exception itself in the log?
KSorokin at 2007-7-6 15:19:59 > top of Java-index,Development Tools,Java Tools...
# 2
no there is not stacktrace of this exception in the log file
javaboss at 2007-7-6 15:19:59 > top of Java-index,Development Tools,Java Tools...
# 3
Did you take a look @ http://dev.mysql.com/doc/connector/j/en/cj-faq.html ? Item 24.3.5.1.4 seems very similar to your situation.
KSorokin at 2007-7-6 15:19:59 > top of Java-index,Development Tools,Java Tools...
# 4

Thanx for link, it does look very similar to my problem ... and this could actually be the case, need to do some experiments. Just wondering shouldnt the connection pool transparently manage this for me?

Message was edited by:

java.boss

Message was edited by:

java.boss

javaboss at 2007-7-6 15:19:59 > top of Java-index,Development Tools,Java Tools...
# 5
Oh, I would say that it should. But you can never tell... ;-)
KSorokin at 2007-7-6 15:19:59 > top of Java-index,Development Tools,Java Tools...
# 6
Dear KSorokinThanx for your support. The link u pointed me to did seem to have solved the problem. Eventhough mysql doc didnt encourage the use of autoReconnect.
javaboss at 2007-7-6 15:19:59 > top of Java-index,Development Tools,Java Tools...
# 7

this problem is still happening after setting autoRecommit to true. Has anyone out there faced this? This seems to be a very difficult situation to track down.

Is this a SUN app server problem? or Is it Creator that has BAD code? I have developed and deployed many application over years, never faced this. I mostly worked with TomCat and MySql

javaboss at 2007-7-6 15:19:59 > top of Java-index,Development Tools,Java Tools...