Hi Rouven, The problem is in proxy.jar, that Proxy implementation doesn't provide methods from superclasses of given interfaces. But the workaround is simple and I have committed it to CVS. You can get BatchConnection.java from CVS HEAD (for example, via web CVS interface) and put it to your rc5 source tree.
Regards, Oleg On Friday 12 March 2004 08:21, Rouven Oberholzer wrote: > Hi Oleg, > > I'am using the packaged rc5 src zip file available at db.apache.org/ojb. > > I'am a little confused about that line numbers in java. the stack trace > posted was out of the eclipse debugger. now i rerun the test without > debugger and I'am getting correct line numbers. I also tryed disable and > enable the jit to run this test. when I disable the jit I'am getting the > same error before (AbstractMethodError) when I enable the jit I'am > getting a NullPointerException at the same place, see stack traces. > > JIT DISABLED: > java.lang.AbstractMethodError: $ProxyDM0.close > at > org.apache.ojb.broker.accesslayer.StatementManager.closeResources(Statement >Manager.java:15 7) > at > org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeInsert(JdbcAccessIm >pl.java:270) at > org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBroke >rImpl.java:1384 ) > at > org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImp >l.java:1301) at > org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImp >l.java:1261) at > org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPers >istenceBroker.j ava:171) > at > org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPers >istenceBroker.j ava:171) > at > org.apache.ojb.odmg.states.StateNewDirty.commit(StateNewDirty.java:148) > at > org.apache.ojb.odmg.ObjectEnvelopeTable.commitAllEnvelopes(ObjectEnvelopeTa >ble.java:241) at > org.apache.ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:195 >) at > org.apache.ojb.odmg.TransactionImpl.doCommitOnObjects(TransactionImpl.java: >335) at > org.apache.ojb.odmg.TransactionImpl.prepare(TransactionImpl.java:656) > at > org.apache.ojb.odmg.TransactionImpl.commit(TransactionImpl.java:613) > > JIT ENABLED: > 9135 ERROR [main] ObjectEnvelopeTable.commit: Commit on object level > failed for tx [EMAIL PROTECTED] > java.lang.NullPointerException > at > org.apache.ojb.broker.accesslayer.StatementManager.closeResources(Statement >Manager.java, Compiled Code) > at > org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeInsert(JdbcAccessIm >pl.java:270) at > org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBroke >rImpl.java:1384 ) > at > org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImp >l.java:1301) at > org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImp >l.java:1261) at > org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPers >istenceBroker.j ava:171) > at > org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPers >istenceBroker.j ava:171) > at > org.apache.ojb.odmg.states.StateNewDirty.commit(StateNewDirty.java:148) > at > org.apache.ojb.odmg.ObjectEnvelopeTable.commitAllEnvelopes(ObjectEnvelopeTa >ble.java, Compiled Code) > at > org.apache.ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:195 >) at > org.apache.ojb.odmg.TransactionImpl.doCommitOnObjects(TransactionImpl.java, > Compiled Code) > at > org.apache.ojb.odmg.TransactionImpl.prepare(TransactionImpl.java:656) > at > org.apache.ojb.odmg.TransactionImpl.commit(TransactionImpl.java:613) > > > Rouven > > Oleg Nitz wrote: > > Hi Rouven, > > > > My idea was wrong, PersistenceBrokerImpl.java doesn't have conditional > > compilation directives, so line numbers in the stack trace should match > > the source file. > > Please, look at your file PersistenceBrokerImpl.java and tell me what is > > in the line 1299 and around. JDK shouldn't show wrong line numbers, > > whatever version of JDK you use. > > Are you using OJB from rc5 src tarball, or have you checked it out from > > CVS yourself? > > > > Oleg > > > > On Thursday 11 March 2004 12:22, Rouven Oberholzer wrote: > >>Hi Oleg and all, > >> > >>Thanks for your response. > >>You're right I over looked that about the line number in the stack trace. > >>so I retried the compilation to be sure having the right version in the > >>classpath. which gave me the same result. so i switched to jdk 1.2.2_017 > >> to be sure having the newest 1.2 jdk available -> same result. yes I use > >> the sun jdk. > >> > >>I'am not sure if the problem could be related to the proxy.jar I'am > >> using. I took that one available in the sourceforge ojb project from > >> release rc1. like recommended in the build.xml. I couldn't find anything > >> newer. > >> > >>Does anyone else use ojb with sun jdk 1.2 and batch_mode=true, (and has > >> it running)? > >> > >>Thanks, > >>Rouven > >> > >> > >>--------------------------------------------------------------------- > >>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]
