Hi,
It turns out that sql BLOB fields were causing this behavior, I
managed to fix this by setting the mapping file's sql element's
dirty attribute to "ignore" as per the documentation.
Moral of the story... read the docs. ho hum
Duke
Monday, January 07, 2002, 6:16:49 PM, you wrote:
DR> Hi,
DR> I am in the process of developing an application using the
DR> castor API and I am currently unable to update any class.
DR> Castor Version: 0.9.3.9
DR> JDK: 1.3.1 (Windows 2000 pro SP2)
DR> SQL Engine: Interbase 6 (firebird RC2)
DR> JDBC Driver: Interclient 2.01 JDK 1.3 firebird build
DR> when invocating this method
DR> public Svc testUpdate(String svcId) throws Exception {
DR> db.begin();
DR> Svc sv = (Svc) db.load(new Srvc().getClass(), svcId);
DR> sv.renew(); // this just updates a java.util.Date property
DR> db.commit();
DR> return sv;
DR> }
DR> The following exception is thrown?
DR> Exception in thread "main" interbase.interclient.SQLException: [interclient][int
DR> erbase] internal error
DR> at interbase.interclient.RecvMessage.createSQLException(RecvMessage.java
DR> :694)
DR> at interbase.interclient.RecvMessage.makeSQLException(RecvMessage.java:5
DR> 93)
DR> at interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.java:554
DR> )
DR> at interbase.interclient.PreparedStatement.remote_EXECUTE_PREPARED_UPDAT
DR> E_STATEMENT(PreparedStatement.java:360)
DR> at interbase.interclient.PreparedStatement.executeUpdate(PreparedStateme
DR> nt.java:340)
DR> at org.exolab.castor.jdo.engine.SQLEngine.store(SQLEngine.java:843)
DR> at org.exolab.castor.persist.ClassMolder.store(ClassMolder.java:1584)
DR> at org.exolab.castor.persist.LockEngine.store(LockEngine.java:758)
DR> at org.exolab.castor.persist.TransactionContext.prepare(TransactionConte
DR> xt.java:1457)
DR> at org.exolab.castor.jdo.engine.DatabaseImpl.commit(DatabaseImpl.java:49
DR> 9)
DR> <snip>
DR> This does appear to be in interclient issue, has anyone experienced
DR> the same problem / know of a work around?
DR> Regards
DR> Duke
DR> -----------------------------------------------------------
DR> If you wish to unsubscribe from this mailing, send mail to
DR> [EMAIL PROTECTED] with a subject of:
DR> unsubscribe castor-dev
--
Regards
Duke Ronlund
Webdata E-Business
www.webdata.com.au
[EMAIL PROTECTED]
p: 07 4054-1511
f: 07 4054-1872
m: 0409277924
This message and/or attached documents may contain confidential and
privileged information and should only be read by those persons to whom
this message is addressed. This message is copyright to Webdata Pty Ltd
and disclosure, copying or forwarding this message and attachments
without the owner's approval is prohibited and may be unlawful. If you
have received this message in error, please notify the sender via return
email and delete the original message from any computer. Thank you for
your co-operation.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev