db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Courcoux <pe...@courcoux.biz>
Subject Re: Village - NegativeArraySizeException
Date Mon, 18 Aug 2003 19:10:49 GMT
Eric,

Thanks for looking at this.

I am calling save on an object from the following table :-

  <table idMethod="native" name="name">
    <column name="id" primaryKey="true" required="true" type="BIGINT"/>
    <column name="projectid" type="BIGINT"/>
    <column name="title" size="255" type="VARCHAR"/>
    <column name="status" size="255" type="VARCHAR"/>
    <column name="released" type="BOOLEANCHAR"/>
    <column name="open" type="TIMESTAMP"/>
    <column name="closed" type="TIMESTAMP"/>
    <column name="reference" size="255" type="VARCHAR"/>
    <column name="summary" type="LONGVARCHAR"/>
    <column name="wcategory" size="255" type="VARCHAR"/>
    <column name="valuerange" type="BIGINT"/>
    <column name="location" type="BIGINT"/>
    <column name="accesslistno" type="BIGINT"/>
    <column name="notes" type="LONGVARCHAR"/>
    <column name="useapprlist" type="BOOLEANCHAR"/>
    <column name="listing" size="255" type="VARCHAR"/>
    <column description="Flag to enable bid handling"
      name="enablebidhandling" type="BOOLEANCHAR"/>
    <column description="xml fragment giving policy"
      name="policy" type="CLOB"/>
    <column name="createdat" type="TIMESTAMP"/>
    <column name="modifiedat" type="TIMESTAMP"/>
    <column name="tclass" type="BIGINT"/>
  </table>


On Mon, 2003-08-18 at 20:01, Eric Emminger wrote:
> Peter
> 
> > 2003-08-18 10:04:17,643 [Ajp13Processor[8009][4]] ERROR com.mydomain.myproject.modules.actions.MyAction
- doUpdate() : Exception caught
> > java.lang.NegativeArraySizeException
> > 	at org.postgresql.jdbc1.AbstractJdbc1Statement.setBinaryStream(AbstractJdbc1Statement.java:1257)
> > 	at com.workingdogs.village.Value.setPreparedStatementValue(Unknown Source)
> > 	at com.workingdogs.village.Record.saveWithUpdate(Unknown Source)
> > 	at com.workingdogs.village.Record.save(Unknown Source)
> > 	at com.workingdogs.village.Record.save(Unknown Source)
> > 	at org.apache.torque.util.BasePeer.insertOrUpdateRecord(BasePeer.java:896)
> > 	at org.apache.torque.util.BasePeer.doUpdate(BasePeer.java:1928)
> 
> Have you tried checking the size of the array before using it? Are you 
> getting any exceptions specific to your code?
> 
> Eric
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
-- 
Peter Courcoux <peter@courcoux.biz>

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message