I got that same exception message doing a query in a session bean when I
moved it from NAS 4.0 to J2EERI thereby changing from Netscape's JDBC
drivers to Oracle's.  It is some sort of datatype problem.  Mine
specifically was that I was reading in a CHAR(1) field using
resultset.getByte() (which internally uses resultset.getLong()).  Netscape's
JDBC driver was ok with this, but Oracle's barfed on it.  I ended up having
to read it with resultset.getString().charAt(0).  Since you're not directly
manipulating the ResultSet object maybe there is some way you can manipulate
descriptor of the entity bean or change the java data type of the offending
field.

Hope that helps,
Ken

----- Original Message -----
From: "Pavan_T" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 07, 2000 11:44 AM
Subject: finder query


> Hi folks
>
> I have written a CMP Entity bean which has got deployed.
> My bean has a finder method (findAllRows which is working fine with rest
of
> my beans)
>
> when I access the bean through the client I am getting an
> javax.sql.SQLException  which says it can't convert it into internal
> representation. This problem is specific to one of my CMP bean,rest of the
> beans which have the same implementation of find methods are working fine.
>
> If any one of you have encountered the same Exception.Please give me a
> solution.
> thanx in advance
>
> Pavan V T
> @3665
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to