Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用commons digester解析时的java.lang.NumberFormatException_Java_Apache Commons Digester - Fatal编程技术网

使用commons digester解析时的java.lang.NumberFormatException

使用commons digester解析时的java.lang.NumberFormatException,java,apache-commons-digester,Java,Apache Commons Digester,在使用commons digester解析xml文件时,我得到一个java.lang.NumberFormatException 不知道这意味着什么: Caused by: java.lang.NumberFormatException: For input string: "flickrmeetup rochester dan totheright 200701" at java.lang.NumberFormatException.forInputString(NumberForma

在使用commons digester解析xml文件时,我得到一个java.lang.NumberFormatException

不知道这意味着什么:

Caused by: java.lang.NumberFormatException: For input string: "flickrmeetup rochester dan totheright 200701"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:449)
    ...
这是完整的错误消息:

这是代码:


谢谢

似乎您已经将
FlickrSetup rochester dan totheright 200701
传递给了
Integer.parseInt()
,这是不可接受的

Integer.parseInt()在传递给函数的字符串不包含可解析int时抛出“NumberFormatException”

传递给函数的字符串是“Flickrmetup rochester dan totheright 200701”。您需要传递一个只包含数值的字符串。e、 g:“0”、“1234”、“999”

希望这有帮助