----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
on 5/15/2000 10:33 AM, Otis Gospodnetic <[EMAIL PROTECTED]> wrote:
> Problem:
> Some JDBC calls (executeQuery() in java.sql.Statement class) take extra long
> to return when run under JServ.
That is the entirely wrong hypothesis. JServ can't "slow down" your
execution of JDBC calls.
> I can execute the same code from a different driver class (as opposed to
> servlet) that I can run from the command line and everything executes
> quickly.
> The same code under JServ takes a loooong time to execute and results in the
> following exception (from the log file):
They take a long time because of an unrelated problem to JServ...
> Tue May 16 12:34:44 EDT 2000: SQL: SELECT COUNT(H.harvest_id) FROM
> nm_harvest H WHERE H.user_id=21 AND H.deleted='N' AND H.harvest_type='foo'
>
> Tue May 16 12:35:04 EDT 2000: Caught current thread not owner
> java.lang.IllegalMonitorStateException: current thread not owner
> at
Ok, that exception makes me think that you have some sort of thread
contention problem in your code. Without seeing your code, I'm not going to
try to guess the problem though. You might also want to make sure that you
are using the latest version of Oracle JDBC drivers. They are well known to
be very buggy.
You should also look into the threading of your JVM. You are using an old
version of the blackdown JVM. It could be a problem with that. Try switching
JVM's and seeing if the problem goes away.
> Could there be something in JServ that triggers this exception....and makes
> the execution of some JDBC methods super slow?
Actually, now that you mention it, we specifically wrote code to check to
see if anyone from neomeo.com was doing a JDBC call and then we purposely
slowed it down and also attempt to cause some Oracle code to throw an
exception. :-)
Post your code that demonstrates this problem. I would guess that you are
using a class variable somewhere that isn't synchronized or it is a JVM
problem.
-jon
--
Java Servlet Based - Open Source | Collab.Net
Bug/Issue Tracking System | now hiring smart people
<http://scarab.tigris.org/> | <http://Collab.Net/jobs/>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]