-
1. Re: Fails to select single field
scoy Oct 3, 2002 8:08 AM (in response to cosmic_crusader)The mappings for hsqldb in standardjbosscmp-jdbc.xml up until today were not brilliant.
There's a reasonable chance that M_Value is one of java.sql.Date, java.sql.Time or java.math.BigDecimal.
JBoss serialises objects for which it does not have mappings.
That's what the "org.jboss.invocation.MarshalledValue@79215d83" represents.
Try adding the following to the Hypersonic mappings in your copy:
<java-type>java.sql.Date</java-type>
<jdbc-type>DATE</jdbc-type>
<sql-type>DATE</sql-type>
<java-type>java.sql.Time</java-type>
<jdbc-type>TIME</jdbc-type>
<sql-type>TIME</sql-type>
<java-type>java.math.BigDecimal</java-type>
<jdbc-type>DECIMAL</jdbc-type>
<sql-type>DECIMAL</sql-type>
<java-type>java.lang.Object</java-type>
<!-- hsqldb only supports directly serializable objects for sql type OBJECT -->
<jdbc-type>VARBINARY</jdbc-type>
<sql-type>VARBINARY</sql-type>
Steve Coy -
2. Re: Fails to select single field
scoy Oct 3, 2002 8:12 AM (in response to cosmic_crusader)This rotten thing just gobbled my reply.
The short version is: add the following to the Hypersonic mappings in your standardjbosscmp-jdbc.xml file. JBoss serialises objects for which it does not have mappings.
Hence the "org.jboss.invocation.MarshalledValue@79215d83".
<java-type>java.sql.Date</java-type>
<jdbc-type>DATE</jdbc-type>
<sql-type>DATE</sql-type>
<java-type>java.sql.Time</java-type>
<jdbc-type>TIME</jdbc-type>
<sql-type>TIME</sql-type>
<java-type>java.math.BigDecimal</java-type>
<jdbc-type>DECIMAL</jdbc-type>
<sql-type>DECIMAL</sql-type>
<java-type>java.lang.Object</java-type>
<!-- hsqldb only supports directly serializable objects for sql type OBJECT -->
<jdbc-type>VARBINARY</jdbc-type>
<sql-type>VARBINARY</sql-type> -
3. Re: Fails to select single field
scoy Oct 3, 2002 8:16 AM (in response to cosmic_crusader)Third time lucky? This rotten thing just gobbled my reply (twice).
The short version is: add Hypersonic mappings in your standardjbosscmp-jdbc.xml file. JBoss serialises objects for which it does not have mappings.
Hence the "org.jboss.invocation.MarshalledValue@79215d83".
I tried pasting them in for you here, but I'm guessing that the forum software can't cope with the embedded xml.
In particular, mappings are missing for java.sql.Date, java.sql.Time and java.math.BigDecimal. -
4. Re: Fails to select single field
cosmic_crusader Oct 3, 2002 9:53 PM (in response to cosmic_crusader)THANKYOU! :)
That fixed the issues I was having, thanks for help.
JBoss rocks my world once more :)