Hi,

Here is the exception:

org.exolab.castor.jdo.DataObjectAccessException: Type conversion error:
could not set value of FieldMolder of
DescriptiveProfile.setdateDescription(bytes dateDescription) with value of
type [B
        at org.exolab.castor.persist.FieldMolder.setValue(FieldMolder.java:330)
        at org.exolab.castor.persist.ClassMolder.load(ClassMolder.java:717)
        at org.exolab.castor.persist.LockEngine.load(LockEngine.java:359)
        at
org.exolab.castor.persist.TransactionContext.load(TransactionContext.java:64
9)
        at org.exolab.castor.persist.QueryResults.fetch(QueryResults.java:229)

class excerpt:

    public byte[] getDateDescription() {
        return dateDescription;
    }

    public void setDateDescription(byte[] dateDescription) {
        this.dateDescription = dateDescription;
    }

    public String getDateDescriptionAsString() {
        return new String(dateDescription);
    }

    public void setDateDescription(String dateDescription) {
        this.dateDescription = dateDescription.getBytes();
    }

xml-mapping excerpt:

    <class  name="DescriptiveProfile"  identity="userId">
        <map-to table="descriptiveProfiles" />
        <cache-type type="none" />
        <field name="userId" type="integer">
            <sql name="userId" type="integer"/>
        </field>
        <field name="openingLine" type="string">
            <sql name="openingLine" type="varchar"/>
        </field>
        <field name="selfDescription" type="bytes">
            <sql name="selfDescription" type="blob" />
        </field>
        <field name="otherDescription" type="bytes">
            <sql name="otherDescription" type="blob" />
        </field>
        <field name="dateDescription" type="bytes">
            <sql name="dateDescription" type="blob" />
        </field>
    </class>

I can't figure this out. I have other classes that have the same type of
mapping and class structure and they work fine. Any help would be greatly
appreciated. This is a CRITICAL priority.

Chuck

P.S. could you please reply to me since I am not on the list.

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

Reply via email to