Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 40391 invoked from network); 12 May 2004 09:04:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 May 2004 09:04:12 -0000 Received: (qmail 13948 invoked by uid 500); 12 May 2004 09:04:06 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 13813 invoked by uid 500); 12 May 2004 09:04:05 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 13785 invoked by uid 98); 12 May 2004 09:04:04 -0000 Received: from g.brand@interface-business.de by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(193.101.57.34):. Processed in 0.471608 secs); 12 May 2004 09:04:04 -0000 X-Qmail-Scanner-Mail-From: g.brand@interface-business.de via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(193.101.57.34):. Processed in 0.471608 secs) Received: from unknown (HELO chuck.interface-business.de) (193.101.57.34) by hermes.apache.org with SMTP; 12 May 2004 09:04:04 -0000 Received: from rei.interface-business.de (rei.interface-business.de [193.101.57.38]) by chuck.interface-business.de (8.12.9/8.12.9) with ESMTP id i4C93nwx009680 for ; Wed, 12 May 2004 11:03:49 +0200 (CEST) (envelope-from g.brand@interface-business.de) Message-Id: <5.0.2.1.2.20040512110225.0243c0a0@pop.interface-business.de> X-Sender: gunnar@pop.interface-business.de X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 12 May 2004 11:04:14 +0200 To: dev@cocoon.apache.org From: Gunnar Brand Subject: Re: Warning for informix query Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hmm, send this to the wrong address, but now the right one ;) >Hi, > >I am getting the following warning for informix. Can someone tell what I have >to do to avoid this.My queries work mysteriously at times. Sometimes they >work sometimes they dont. Probably informix' great feature to abort queries if they access locked rows/pages (read: concurrent access to a database). All other databases I know wait until the lock is gone (at least for a certain amount of time) by default. Fix: Once you open a connection, execute "set lock mode to wait [optional time in seconds]" before your queries. If you pool the connection it is sufficient to do it once. It might be a good idea to write a wrapper driver for the informix one that does that for every call to get a connection. This way it is autmagically fixed for everyone. I don't know if the jdbc driver has a setting for this. (Too bad the system I use informix with doesn't allow you access the pool in any way, so i have this statement in front of every statement, oh what joy) gunnar >WARN (2004-05-07) 12:02.36:262 [sitemap.generator.serverpages] (/ >newhistoryserver/coplets/search/firmhistoryexcel) Thread-14/ >AbstractEsqlConnection: Your database [informix-online] is not being >recognized yet. Using the generic [jdbc] query as default. Please report >this to cocoon-dev or to tcurdt.at.apache.org directly. > >Thanks, >Anna. -- G. Brand - interface:projects GmbH Tolkewitzer Strasse 49 D-01277 Dresden mail: g.brand@interface-projects.de tel: ++49-351-3 18 09 - 41 Ein Unternehmen der interface:business-Gruppe