Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Casting sequence value to Integer problem on IAS 9i 2

94821Jul 30 2002
I'm casting the next value of a sequence (9i2 database) to an Integer object ->
Integer newAddressId = (Integer)attractAddrSeq.getData()
It works just fine on JDeveloper 3.2.2 but when I deploy the project on the IAS 9i2 I get a ClassCastException:java.lang.Long (both Jdeveloper and IAS refer to the exact same DB)
Is there a way to fix this without switching from Integer to Long? The same code works fine for Oracle 9i and 8i. It is a very large project with many occurences of this problem and I'd rather keep the Integer data type if possible, so are there any suggestions?

Thanks in advance.

John Baseas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2002
Added on Jul 30 2002
0 comments
150 views