You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Jaroslaw Palka <kc...@interia.pl> on 2003/03/25 01:06:59 UTC
[OJB] Issue #OJB148 - Storing objects which have null reference to its attributes ...
You can view the issue detail at the following URL:
<http://scarab.werken.com/scarab/issues/id/OJB148>
Type : Defect
Issue Id : OJB148
Reported by: Jaroslaw Palka
kcrimson - (kcrimson@interia.pl)
Details:
Platform: PC
Operating system: Redhat
Summary: Storing objects which have null reference to its attributes causes exception
Description: I have a Taxidriver class which has attribute registration. This attribute is an instance of TaxiRegistration.When this attribute is null and I try to make this object persistent i got this exception:
[org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl] DEBUG: SQL: SELE
CT txd_firstname,txd_lastname,txd_taxinumber FROM taxidrivers WHERE txd_taxinumb
er = ?
[org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl] DEBUG: SQL: INSE
RT INTO taxidrivers (txd_taxinumber,txd_firstname,txd_lastname) VALUES ( ?, ?, ?
)
[org.apache.ojb.odmg.ObjectEnvelopeTable] ERROR: Commit on object level failed f
or tx org.apache.ojb.odmg.TransactionImpl@149a794
Batch entry 0 [Ljava.lang.Object;@b1a4e2 was aborted.
Batch entry 0 [Ljava.lang.Object;@b1a4e2 was aborted.
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc
2Statement.java:105)
at org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler.d
oExecute(Unknown Source)
at org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler.i
nvoke(Unknown Source)
at $Proxy1.doExecute(Unknown Source)
at org.apache.ojb.broker.util.batch.BatchConnection.executeBatch(Unknown
Source)
at org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.executeBatch(
Unknown Source)
at org.apache.ojb.odmg.ObjectEnvelopeTable.commit(Unknown Source)
at org.apache.ojb.odmg.TransactionImpl.doCommitOnObjects(Unknown Source)
at org.apache.ojb.odmg.TransactionImpl.prepare(Unknown Source)
at org.apache.ojb.odmg.TransactionImpl.commit(Unknown Source)
at com.gtc.server.OperatorTerminalRemoteImpl.addTaxidriver(OperatorTermi
nalRemoteImpl.java:134)
What's wrong with it?
Status: New
Severity: Critical