Hi Gerhard
yes I saw it also the error is ignored.

thanks
Matthias

-----Original Message-----
From: Gerhard Grosse [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 22. Oktober 2003 09:29
To: [EMAIL PROTECTED]
Subject: Re: check Batchmode problem with DB2 on z/OS with ojb 1.0.rc4


Hi Matthias,

I am seeing an AbstractMethodError (partial stack trace below) in my
logs whenever OJB first initializes a JDBC connection from the DB2
JDBC driver. Obviously OJB is checking for batch support even if
batch-mode=false is set in repository.xml. However, in my case the
error is silently ignored and does not cause any further problems.

I'm using CVS HEAD (almost), Windows XP, Websphere, DB2 and IBM's
category 2 JDBC driver.

Gerhard


ERROR ojb.broker.platforms.PlatformDefaultImpl -  batch support check
failed
java.lang.AbstractMethodError:
COM/ibm/db2/jdbc/app/DB2DatabaseMetaData.supportsBatchUpdates
        at
org.apache.ojb.broker.platforms.PlatformDefaultImpl.checkForBatchSupport(Pla
tformDefaultImpl.java:106)
        at
org.apache.ojb.broker.platforms.PlatformDefaultImpl.initializeJdbcConnection
(PlatformDefaultImpl.java:180)
        at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.initializeJd
bcConnection(ConnectionFactoryAbstractImpl.java:138)
        at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnectio
nFromDataSource(ConnectionFactoryAbstractImpl.java:210)
        at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConnec
tion(ConnectionFactoryAbstractImpl.java:97)
        at
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(Connec
tionManagerImpl.java:135)
        at
org.apache.ojb.broker.accesslayer.StatementManager.getPreparedStatement(Stat
ementManager.java:710)
        at
org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccessImpl
.java:327)
...


On Tue, 21 Oct 2003 23:33:03 +0200, "Matthias Roth"
<[EMAIL PROTECTED]> wrote:

>Hi
>
>does the SequenceManagerHighLowImpl check for batchmode by creating
>a new broker instance in getSequence(...){
>...
>PersistenceBrokerFactory.createPersistenceBroker(brokerForSequence.getPBKey
(
>))
>...
>}
>
>I get an db2 jdbc error (ONLY jdbc driver on z/OS) if the first getSequence
>is called. The error
>tells that batch mode is not suported. But in the repository.xml file I set
>batch-mode="false".
>
>Have had some body also this problem?
>
>
>
>regards
>Matthias Roth
>Dipl. Ing. HTL
>in Wirtschaftsinformatik
>
>impart Software Engineering GmbH
>Chasseralstrasse 13
>Postfach
>CH-3063 Ittigen
>
>Phone           +41 (0)31 922 39 25
>Fax             +41 (0)31 922 39 18
>EMail           mailto:[EMAIL PROTECTED]
>Homepage        http://www.impart.ch



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to