Hi,

I have a really urgent problem. I’m trying to port InfoGlue CMS to
Oracle and the asset management is almost done but I have a problem:

The mapping seems ok – it is 

<!--  Mapping for DigitalAsset  -->
<class
name="org.infoglue.cms.entities.content.impl.simple.DigitalAssetImpl"
identity="digitalAssetId" key-generator="SEQUENCE">
    <description>DigitalAsset</description>
    <cache-type type="unlimited" capacity="10000"/>
    <map-to table="cmDigAsset"/>
      <field name="digitalAssetId" type="java.lang.Integer">
      <sql name="DigAssetId" type="integer" dirty="check" />
    </field>
        <field name="assetFileName" type="java.lang.String">
      <sql name="assetFileName" type="varchar" dirty="check" />
    </field>
        <field name="assetKey" type="java.lang.String">
      <sql name="assetKey" type="varchar" dirty="check" />
    </field>
        <field name="assetFilePath" type="java.lang.String">
      <sql name="assetFilePath" type="varchar" dirty="check" />
    </field>
        <field name="assetContentType" type="java.lang.String">
      <sql name="assetContType" type="varchar" dirty="check" />
    </field>
        <field name="assetFileSize" type="java.lang.Integer">
      <sql name="assetFileSize" type="integer" dirty="check" />
    </field>
    <field name="contentVersions"
type="org.infoglue.cms.entities.content.impl.simple.ContentVersionImpl"
lazy="true" collection="collection">
      <sql many-key="DigAssetId" many-table="cmContVerDigAsset"/>
    </field>
    <field name="assetBlob" type="stream" >
      <sql name="assetBlob" type="blob" dirty="ignore" />
    </field>
  </class>

When I read from these objects I have checked that the binary stream is
fetched correctly by dumping it to file within the castor-code
(SQLTypes.java). But this is when the result is fetched. When I try to
dump the data later on Oracle protests saying 

java.io.IOException: Must be logged into server (freely translated from
Swedish / mattias)
        at
oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java:717)
        at
oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream
.java:249)
        at
oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java:1
58)
        at
java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
        at
java.io.BufferedInputStream.read(BufferedInputStream.java:201)

Can it be that the connection to the database is disconnected or
something?

Regards
Mattias Bogeblad


_______________________________________________________________ 
Mattias Bogeblad  |  PH: +46 31 761 09 03 |  MOB: +46 702 80 05 05 
SPRAWL SOLUTIONS AB
Drottningatan 5
403 14 GÖTEBORG
_______________________________________________________________ 
 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to