Hi-

Ok, I've figured out this problem.  I used a java.util.Date
instead of a java.sql.Date.

Thanks,

-Mike

On Thu, Jan 06, 2000 at 01:44:14PM -0700, Mike Bridge wrote:
> I'm getting an odd error when I'm accessing an entity bean
> with Jonas 1.5 on Linux, Blackdown Java 1.1.7B.
> 
> I created two simple container managed entity beans for 
> two different tables; I can access the first one without 
> any difficulty from a client, but the second one returns
> an error when I'm calling a get method in it.  I can
> call home.findByPrimaryKey(), but when I call any of my get*() 
> methods I get the following stack trace on the server.  Is 
> there anything that cause the JOnAS server to complain that the 
> .ser file is corrupt?  It was created with GenIC in the same way 
> as with my first try, so I would think it would be ok.
> 
> Thanks,
> 
> -Mike
> 
> [jonas@london jonas]$ EJBServer
> JOnAS - Version 1.5
> JDBC DataSource gsnetdb is mapped on MSSQLAlpha.properties
> 
>EJBHome:com.gsnet.ejb.entity.Advertisements.JOnASAdvertisementsBeanAdvertisementsHome 
>for AdvertisementsBean available
> EJBHome:com.gsnet.ejb.entity.Location.JOnASLocationImplBeanLocationHome for 
>LocationImplBean available
> Failed to load bean from database
> java.io.StreamCorruptedException: InputStream does not contain a serialized object
>  at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java)
>         at java.io.ObjectInputStream.<init>(ObjectInputStream.java)
>         at org.objectweb.jonas.lib.MarshallTool.fromBytes(MarshallTool.java:73)
>         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.getSiteID(JOnASAdvertisementsBeanAdvertisements.
>         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)
> 
> --
> 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".

-- 
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