Re: [JBoss-user] Deserializing objects to DB

2002-05-16 Thread Dain Sundstrom
org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil Simon Stewart wrote: > Standard JDK classes: java.lang.String, java.net.URL and > java.util.Date. > > It seems as if the code is not going through the steps necessary to > unmarshal (?) the Object before returning it. From your description, > it sounds as

Re: [JBoss-user] Deserializing objects to DB

2002-05-16 Thread Simon Stewart
Standard JDK classes: java.lang.String, java.net.URL and java.util.Date. It seems as if the code is not going through the steps necessary to unmarshal (?) the Object before returning it. From your description, it sounds as if some "instanceof" testing is done before the class is returned. I would

Re: [JBoss-user] Deserializing objects to DB

2002-05-16 Thread Simon Stewart
On Thu, May 16, 2002 at 09:59:11AM -0500, Dain Sundstrom wrote: > Simon Stewart wrote: > >On Wed, May 15, 2002 at 10:48:48PM -0500, Dain Sundstrom wrote: > > Before you do this, make sure it is not a DB or driver bug. I > specifically remember PostgreSQL having problems with URLs. Try your >

Re: [JBoss-user] Deserializing objects to DB

2002-05-16 Thread Dain Sundstrom
Simon Stewart wrote: > On Wed, May 15, 2002 at 10:48:48PM -0500, Dain Sundstrom wrote: > >>>I'm starting to suspect that JBoss might be the culprit here. If I >>>manually extract an object from the byte array, it turns out to be a >>>java.rmi.MarshalledObject when the expected class was java.lan

Re: [JBoss-user] Deserializing objects to DB

2002-05-16 Thread Dan Christopherson
I do remember looking at this code in JAWS and saying to myself 'I don't see how that can work, but nobody's complaining, so I'll leave it be.' Simon, I take it you're getting this problem with non-jdk classes? There may be some crufty instanceof testing in there. -danch Simon Stewart wrote:

Re: [JBoss-user] Deserializing objects to DB

2002-05-16 Thread Simon Stewart
On Wed, May 15, 2002 at 10:48:48PM -0500, Dain Sundstrom wrote: > >I'm starting to suspect that JBoss might be the culprit here. If I > >manually extract an object from the byte array, it turns out to be a > >java.rmi.MarshalledObject when the expected class was java.lang.String. > > > >Can anyone

Re: [JBoss-user] Deserializing objects to DB

2002-05-15 Thread Dain Sundstrom
> I'm starting to suspect that JBoss might be the culprit here. If I > manually extract an object from the byte array, it turns out to be a > java.rmi.MarshalledObject when the expected class was java.lang.String. > > Can anyone shed some light on this? I'm using CMP 2, if that helps. JBossCMP

RE: [JBoss-user] Deserializing objects to DB

2002-05-15 Thread Simon Stewart
gt; data longblob > ) TYPE=InnoDB; > > HTH, > James > > > -----Original Message- > > From: Simon Stewart [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 15, 2002 5:12 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-user] Deseriali

RE: [JBoss-user] Deserializing objects to DB

2002-05-15 Thread James Higginbotham
ar(64) NOT NULL default '', data longblob ) TYPE=InnoDB; HTH, James > -Original Message- > From: Simon Stewart [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 5:12 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Deserializing objects to DB >

Re: [JBoss-user] Deserializing objects to DB

2002-05-15 Thread Simon Stewart
On Wed, 2002-05-15 at 20:06, Simon Stewart wrote: > I have a simple EJB that has three fields ("ID", a "key" and a "value") > Key is a string, and value is given as being of class > java.io.Serializable, so this class represents a basic key/value pair. > Data appears to be serialized to the databa

[JBoss-user] Deserializing objects to DB

2002-05-15 Thread Simon Stewart
I have a simple EJB that has three fields ("ID", a "key" and a "value") Key is a string, and value is given as being of class java.io.Serializable, so this class represents a basic key/value pair. Data appears to be serialized to the database okay (Postgres 7.2.1, column type BYTEA) but as a byte