Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
results in Caused by: java.lang.NumberFormatException: For input string: "9999999999999999999999999999" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:444) at java.lang.Long.valueOf(Long.java:540) at liquibase.parser.core.ParsedNode.convertObject(ParsedNode.java:233)
ParsedNode (233) Should be return (T) new BigInteger(rawValue.toString());
As the Long.valueOf is limited to Long MAXIMUM which is smaller than BigInteger.
<createSequence cacheSize="20" cycle="false" incrementBy="1" maxValue="9999999999999999999999999999" minValue="1" ordered="false" sequenceName="BATCH_JOB_EXECUTION_SEQ" startValue="1"/>
results in
Caused by: java.lang.NumberFormatException: For input string: "9999999999999999999999999999"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:444)
at java.lang.Long.valueOf(Long.java:540)
at liquibase.parser.core.ParsedNode.convertObject(ParsedNode.java:233)
ParsedNode (233)
Should be return (T) new BigInteger(rawValue.toString());
As the Long.valueOf is limited to Long MAXIMUM which is smaller than BigInteger.