I have a container managed entity bean which corresponds to an
MSSQL 7 table with a field with an DECIMAL(18,2) type.  I'm trying 
to load a bean from an existing record, but I get the following
stack from the EJBServer when this field has a NULL value (it works
ok with non-null values):
 
Failed to load bean from database
java.lang.ClassCastException: java.math.BigDecimal
        at 
com.gsnet.ejb.entity.Advertisements.JOnASAdvertisementsBeanAdvertisements.loadData(JOnASAdvertisementsBeanAdvertisements.j
        at 
org.objectweb.jonas.container.EntitySynchroImpl.considerRequest(EntitySynchroImpl.java:179)
        at org.objectweb.jonas.container.JBeanEntity.preinvoke(JBeanEntity.java:450)
        at 
com.gsnet.ejb.entity.Advertisements.JOnASAdvertisementsBeanAdvertisements.getAdID(JOnASAdvertisementsBeanAdvertisements.ja
        at 
com.gsnet.ejb.entity.Advertisements.JOnASAdvertisementsBeanAdvertisements_Skel.dispatch(JOnASAdvertisementsBeanAdvertiseme
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:164)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:154)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:600)
        at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:506)
        at java.lang.Thread.run(Thread.java)
 
I tried the entity bean field with both a java.lang.Double and a
java.lang.Float, but both times it gave me this error.  

I'm using Jonas 1.5 with Blackdown's JDK1.1.7B and the inetsoftware
TDS driver for JDK1.1.

Any ideas on this?

Thanks,

-Mike

-- 
Mike Bridge <[EMAIL PROTECTED]>
System Administrator
Global Sourcing Network
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to