java.lang.NumberFormatException: For input string: "1234567890"

JIRA | Nathan Voxland | 8 years ago
  1. 0

    From http://liquibase.org/forum/index.php?topic=29.0 To create a sequence we use the createSequence element. The attribute maxValue gives an error if the number of digits is 10 or more. For example: <createSequence sequenceName='MY_SEQUENCE' incrementBy='1' minValue='1' maxValue='1234567890' /> The value for maxValue is just a dummy value to easily count the number of digits Wink Gives this error: 28-mei-2009 9:41:23 liquibase.parser.xml.XMLChangeLogHandler startElement SEVERE: Error thrown as a SAXException: For input string: "1234567890" java.lang.NumberFormatException: For input string: "1234567890" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.valueOf(Unknown Source) at liquibase.util.ObjectUtil.setProperty(ObjectUtil.java:33) at liquibase.parser.xml.XMLChangeLogHandler.setProperty(XMLChangeLogHandler.java:350) at liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:227) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:70) at liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:28) at liquibase.parser.xml.XMLChangeLogHandler.handleIncludedChangeLog(XMLChangeLogHandler.java:318) at liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:120) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:70) at liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:28) at liquibase.Liquibase.update(Liquibase.java:105) at liquibase.commandline.Main.doMigration(Main.java:650) at liquibase.commandline.Main.main(Main.java:97) Any ideas ? I'm using liquibase 1.9.3.

    JIRA | 8 years ago | Nathan Voxland
    java.lang.NumberFormatException: For input string: "1234567890"
  2. 0

    From http://liquibase.org/forum/index.php?topic=29.0 To create a sequence we use the createSequence element. The attribute maxValue gives an error if the number of digits is 10 or more. For example: <createSequence sequenceName='MY_SEQUENCE' incrementBy='1' minValue='1' maxValue='1234567890' /> The value for maxValue is just a dummy value to easily count the number of digits Wink Gives this error: 28-mei-2009 9:41:23 liquibase.parser.xml.XMLChangeLogHandler startElement SEVERE: Error thrown as a SAXException: For input string: "1234567890" java.lang.NumberFormatException: For input string: "1234567890" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.valueOf(Unknown Source) at liquibase.util.ObjectUtil.setProperty(ObjectUtil.java:33) at liquibase.parser.xml.XMLChangeLogHandler.setProperty(XMLChangeLogHandler.java:350) at liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:227) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:70) at liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:28) at liquibase.parser.xml.XMLChangeLogHandler.handleIncludedChangeLog(XMLChangeLogHandler.java:318) at liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:120) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:70) at liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:28) at liquibase.Liquibase.update(Liquibase.java:105) at liquibase.commandline.Main.doMigration(Main.java:650) at liquibase.commandline.Main.main(Main.java:97) Any ideas ? I'm using liquibase 1.9.3.

    JIRA | 8 years ago | Nathan Voxland
    java.lang.NumberFormatException: For input string: "1234567890"
  3. 0

    Landsize value is not validated

    GitHub | 5 years ago | sorklin
    org.bukkit.command.CommandException: Unhandled exception executing command 'mv' in plugin Multiverse-Core v2.0-b271
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Windows : stack in getTerminalWidth

    GitHub | 4 years ago | nanocom
    java.lang.NumberFormatException: For input string: "200x300 (200x80)"
  6. 0

    Pathways are no longer loaded

    GitHub | 3 years ago | cpartl
    java.lang.NumberFormatException: For input string: "5578+mmu:18750"

  1. maxxi 25 times, last 1 day ago
  2. DoktorDoener666 1 times, last 3 weeks ago
  3. serious2monkeys 6 times, last 1 month ago
  4. maxxi 4 times, last 2 months ago
  5. Piz 3 times, last 5 months ago
7 more registered users
15 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "1234567890"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.valueOf
    1. java.lang.NumberFormatException.forInputString(Unknown Source)
    2. java.lang.Integer.parseInt(Unknown Source)
    3. java.lang.Integer.valueOf(Unknown Source)
    3 frames
  3. Liquibase Core
    ObjectUtil.setProperty
    1. liquibase.util.ObjectUtil.setProperty(ObjectUtil.java:33)
    1 frame
  4. liquibase.parser.xml
    XMLChangeLogHandler.startElement
    1. liquibase.parser.xml.XMLChangeLogHandler.setProperty(XMLChangeLogHandler.java:350)
    2. liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:227)
    2 frames
  5. Java RT
    SAXParserImpl$JAXPSAXParser.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    2. com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
    3. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
    4. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    5. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    6. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    7. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    8. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    10. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    11. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    12. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    13. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    13 frames
  6. liquibase.parser.xml
    XMLChangeLogParser.parse
    1. liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:70)
    1 frame
  7. Liquibase Core
    ChangeLogParser.parse
    1. liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:28)
    1 frame
  8. liquibase.parser.xml
    XMLChangeLogHandler.startElement
    1. liquibase.parser.xml.XMLChangeLogHandler.handleIncludedChangeLog(XMLChangeLogHandler.java:318)
    2. liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:120)
    2 frames
  9. Java RT
    SAXParserImpl$JAXPSAXParser.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    2. com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
    3. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
    4. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    5. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    6. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    7. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    8. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    10. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    11. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    12. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    13. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    13 frames
  10. liquibase.parser.xml
    XMLChangeLogParser.parse
    1. liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:70)
    1 frame
  11. Liquibase Core
    Liquibase.update
    1. liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:28)
    2. liquibase.Liquibase.update(Liquibase.java:105)
    2 frames
  12. liquibase.commandline
    Main.main
    1. liquibase.commandline.Main.doMigration(Main.java:650)
    2. liquibase.commandline.Main.main(Main.java:97)
    2 frames