Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] NumberFormatException at setting id value

Title: NumberFormatException at setting id value
Hi Markus,

    Can you post a stack trace and can you describe the situation a little more?  If you have typed an id field as int or Integer and your sequence generates a value > MAXINT I suspect you'll get NumberFormatException when EclipseLink tries to parse that value into an Integer.  If you want to have ids larger than MAXINT then you need a data type that can hold it.


On 4/2/2010 11:50 AM, Hahn, Markus wrote:


are there any known issues with big numbers? In a persist operation, we fill an ID from a sequence. Value ist for instance 2320149544, thus out of Integer scope.

EL runs into a NumberFormatException parsing this number as an Integer.

What can I do to avoid this? Change the mapping (almost only defaults)?

Regards, Markus

_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx

Shaun Smith | Principal Product Manager
Phone: +19055023094
Oracle Server Technologies, Oracle TopLink
ORACLE Canada | 110 Matheson Boulevard West, Suite 100, Mississauga, Ontario | L5R 3P4

Green Oracle Oracle is committed to developing practices and products that help protect the environment

Back to the top