Hmmm... So you're trying to serialize the "books" to a column in
the database? I haven't tried that with InstantDB... Which is not to say
it shouldn't work! Are you sure the exception is being caused by the
"books" field? That is, if you save and find the same entity without
books, it works fine? If so, then I think we'll need to figure out
exactly what type it's getting for the object when it fetches it, because
it seems like it's trying to stuff the wrong type of variable (like maybe
a byte[] or something) into the books field of your bean.
Aaron
On Mon, 4 Sep 2000, Sascha Matzke wrote:
> Hello,
>
> On Mon, Sep 04, 2000 at 07:43:33AM -0400, Aaron Mulder wrote:
> > It looks like it can't match up the data types in the database to
> > the data types in your EJB. Are you using a jaws.xml file or just
> > accepting the defaults? What database are you using? You may need to
> > specify the DB in jaws.xml so it uses the correct variable mappings.
>
> I'm using InstantDB over the RMIJDBC driver.
>
> In my jaws.xml field is the following defintion:
>
> <cmp-field>
> <field-name>books</field-name>
> <column-name>books</column-name>
> <sql-type>LONGVARBINARY</sql-type>
> <jdbc-type>LONGVARBINARY</jdbc-type>
> </cmp-field>
>
> The field books in the class UnitBean is defined as
>
> public Book[] books;
>
> Sascha
> --
> .-> Sascha Matzke - [EMAIL PROTECTED] ------------------------.
> | Read the sourcecode, Luke... |
> | Obi Wan Kenobi |
> `-- On this earth for 24 years, 326 days <----------------'
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]