Thanks...that was it exactly!
-Jason
Aaron Mulder <[EMAIL PROTECTED]>
09/18/00 11:17 AM
Please respond to jBoss
To: jBoss <[EMAIL PROTECTED]>
cc:
Subject: Re: [jBoss-User]
Try using a javax.sql.Date, Time, or Timestamp instead of a
java.util.Date. JDBC isn't aware of "java.util.Date" per se, so you
should use one of the javax.sql subclasses instead.
Aaron
On Sun, 17 Sep 2000 [EMAIL PROTECTED] wrote:
> Hi,
>
> While exercising the baseline functionality of CMP, I'm running into a
> problem with retrieving dates. I'm attempting to deploy with no
jaws.xml
> or jboss.xml (using the server defaults, which I believe should be
> deploying to Hypersonic).
>
> I have a test client which creates an instance of my bean in the db,
then
> performs a findAll on that type of bean. This part works ok, and I can
get
> an iterator with the beans. I can even cast each item to the bean type
ok.
> But, as soon as I call a method on the bean, I get this error:
>
> java.sql.SQLException: Unable to load a ResultSet column into a
variable
> of type 'java.util.Date': java.io.StreamCorruptedException: InputStream
> does not contain a serialized object
>
> I get this error whether I'm actually attempting to retrieve a date or
not
> (I assume the container probably retrieves all the fields on the first
> call, so this would make sense, I guess).
>
> Any ideas as to what might be happening here? My next step would be to
put
> together a jaws.xml and jboss.xml, but I had read previously on this
list,
> that for basic setups, the defaults should work ok..
>
> -Jason
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]