varma.chiru@gmail.com schreef:
> hi,
>
[quoted text clipped - 7 lines]
> javax.ejb.EJBException: java.lang.ClassCastException:
> java.math.BigInteger
It seems like you try to convert a BigInteger to an Integer by casting.
like this:
Integer i = (Integer) someThingThatIsABigInt()
That will not work, because BigInteger is no subclass or superclass of
Integer. There are, however, the methods intValue(), longValue and
floatValue(), which can then be used to get an Integer. But probably,
you just want an int. That would be much clearer *if you had posted
some code*.
HTH, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html