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(StatementManager.java:15
7)
at
org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeInsert(JdbcAccessImpl.java:270)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBrokerImpl.java:1384
)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:1301)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:1261)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.j
ava:171)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.j
ava:171)
at
org.apache.ojb.odmg.states.StateNewDirty.commit(StateNewDirty.java:148)
at
org.apache.ojb.odmg.ObjectEnvelopeTable.commitAllEnvelopes(ObjectEnvelopeTable.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(StatementManager.java,
Compiled Code)
at
org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeInsert(JdbcAccessImpl.java:270)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBrokerImpl.java:1384
)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:1301)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:1261)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.j
ava:171)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.j
ava:171)
at
org.apache.ojb.odmg.states.StateNewDirty.commit(StateNewDirty.java:148)
at
org.apache.ojb.odmg.ObjectEnvelopeTable.commitAllEnvelopes(ObjectEnvelopeTable.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]
