Hi,

Here is the full stack trace of the exception:

java.lang.IllegalArgumentException: object is not an instance of declaring
class
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler.doExecut
e(Unknown Source)
        at
org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler.invoke(U
nknown Source)
        at $Proxy0.doExecute(Unknown Source)
        at org.apache.ojb.broker.util.batch.BatchConnection.executeBatch(Unknown
Source)
        at org.apache.ojb.broker.util.batch.BatchConnection.nextExecuted(Unknown
Source)
        at
org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler.invoke(U
nknown Source)
        at $Proxy0.executeUpdate(Unknown Source)
        at org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeUpdate(Unknown
Source)
        at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(Unknown
Source)
        at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown
Source)Notif 4240 - act: 4832

        at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)
        at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown
Source)
        at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown
Source)
        at Test.main(Test.java:110)

Eric

-----Message d'origine-----
De : Oleg Nitz [mailto:[EMAIL PROTECTED]
Envoye : mardi 9 decembre 2003 14:36
A : OJB Users List
Objet : Re: BATCH-MODE parameter


Hi Eric,

Please send the full stack trace of the exception.

Oleg

-----Original Message-----
From: "eric barbe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Tue, 9 Dec 2003 10:24:31 +0100
Subject: BATCH-MODE parameter

> Hi all,
>
> In order to ameliorate performance, I've tried to set batch-mode parameter
> to true in the repository
> (if this is not intended to ameliorate performance, please tell me).
> Unfortunately, I get an error when executing my program :
>
> "Object is not an instance of declaring class".
>
> Here is the jdbc-connection-descriptor element in my repository:
>
>               <jdbc-connection-descriptor
>               default-connection="true"
>               jcd-alias="bod"
>               platform="oracle"
>               jdbc-level="2.0"
>               driver="oracle.jdbc.driver.OracleDriver"
>               protocol="jdbc"
>               subprotocol="oracle:thin"
>               dbalias="@superbug:1521:dbmaster"
>               username="SEJ"
>               password="SEJ"
>               batch-mode="true">
>
>               <connection-pool
>                   maxActive="15"
>                   whenExhaustedAction="0"
>                   testOnBorrow="false"
>                   testOnReturn="false"
>                   validationQuery="select count(*) from OJB_HL_SEQ"/>
>
>               <sequence-manager
>
className="org.apache.ojb.broker.util.sequence.SequenceManagerInMemoryImpl">
>                                   <attribute attribute-name="autoNaming" 
> attribute-value="true"/>
>               </sequence-manager>
>
>               </jdbc-connection-descriptor>
>
>
> Here is the code:
>
>               broker.beginTransaction();
>               broker.serviceConnectionManager().setBatchMode(true);
>               broker.store(myobject);
>               broker.commitTransaction();
>
> Note: even if I comment out the second line, it does not work any better.
> Besides, if I set batch-mode to "false", everything is OK.
>
> I use Oracle 8i.
>
> Thanks for your help.
>
> Regards
> Eric BARBи
>
>
> ---------------------------------------------------------------------
> 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]



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

Reply via email to