Here's an update on this issue for anyone who might be interested.
I downloaded the classes12.zip(8.1.7) for Oracle8i from there web site. The
files in it are dated 3/20/2001, so it is newer than what I had. But the
same error occurred.
Then I thought to try a 9i driver (even though I'm pretty sure we are on an
8i database, I haven't been able to confirm that yet). The Oracle
ojdbc14.jar is for JSDK1.4 (which is what we are using). Substituting this
jar for classes12.zip solved the problem; no more ClassCastException.
Now I can continue my testing and evaluation of 0.9.7.
Dave Derry
Dave.Derry@Equif
ax.com To: [EMAIL PROTECTED]
cc:
12/10/2002 01:31 Subject: ClassCastException with 0.9.7
PM
Please respond
to "OJB Users
List"
Earlier today I mentioned that after moving from 0.9.4 to 0.9.7 I
encountered a class cast exception. This occurs when retrieving a specific
object rather than a list from the DB. So, there is no problem retrieving
all instances of Project class, but a ClassCastException when retrieving
Project where oid = XXX.
I traced this using the same database with the same objects, and retrieving
the same object in both cases.
Using 0.9.4 I get into StatementManager#bindStatementValue which makes a
call to OraclePreparedStatement#setObject, passing an index of 1, and a
value of java.lang.Integer containing 10012.
Using 0.9.7 I get into PlatformDefaultImpl#setObjectForStatement which
makes a call to OraclePreparedStatement#setObject, passing an index of 1, a
value of java.lang.Integer containing 10012, and a sqlType of -5 (BIGINT).
Of course, I am unable to step into this call, but stepping over it results
in the ClassCastException being thrown. Notice that the only difference
between this and the 0.9.4 flow is that the sqlType is also passed into
setObject.
I don't know how to tell what 'version' of classes12.zip I have, but
looking in the zip file, all files have a timestamp of 11/9/2000.
Can anyone shed any light on this. Seems if I've run across a bug in OJB,
it would have been brought up (and fixed)before this, since this is a
pretty critical problem that would prevent 0.9.7 from being widely used. So
is my classes12 outdated?
I need a clue how to get passed this.
TIA,
Dave Derry
This message contains information from Equifax Inc. which may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited. If you have
received this transmission in error, please notify by e-mail
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>