问题描述
java.lang.IllegalArgumentException: Contents must be presorted - added value -2146647068 is less than preceding value 2147447602
at org.netbeans.core.output2.IntList.add(IntList.java:76)
at org.netbeans.core.output2.AbstractLines.lineUpdated(AbstractLines.java:764)
at org.netbeans.core.output2.OutWriter.write(OutWriter.java:216)
at org.netbeans.core.output2.OutWriter.doWrite(OutWriter.java:453)
at org.netbeans.core.output2.OutWriter.println(OutWriter.java:488)
at org.netbeans.core.output2.OutWriter.print(OutWriter.java:526)
at org.netbeans.core.output2.NbIO$IOColorLinesImpl.println(NbIO.java:494)
at org.openide.windows.IOColorLines.println(IOColorLines.java:88)
at org.apache.tools.ant.module.run.StandardLogger.formatColoredMessageWithTime(StandardLogger.java:353)
at org.apache.tools.ant.module.run.StandardLogger.buildFinished(StandardLogger.java:318)
[catch] at org.apache.tools.ant.module.bridge.impl.NbBuildLogger.buildFinished(NbBuildLogger.java:440)
at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2093)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:290)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
当运行需要读取大块XML数据的SAX解析器时,我收到此异常.数据存储到哈希树中.运行约15分钟后,发现此异常.是什么意思?
I received this Exception when running an SAX Parser that needs to read large chunks of XML data. The data is stored into a Hashtree. After about 15 mins of running, this exception was found. What does it mean?
推荐答案
这意味着:程序中的某个地方有一个达到最大值的整数.整数的最大值为2,147,483,647.当达到此值时,它们将返回到最小值-2,147,483,648.可能发生的情况是程序中存在一个不断增加整数的循环.当程序运行足够长时间时,整数达到其最大值并循环回到其最小值.该程序不希望出现此情况,因此会引发错误.
It means: somewhere in the program there is an int that reached its maximum value. Integers have a maximum value of 2,147,483,647. When they reach this value, they loop back to their minimum value, -2,147,483,648. What probably happened is that there is a loop in the program that constantly increments an integer. When the program runs for long enough, the integer reaches its maximum value and loops back to its minimum value. The program doesn't expect this, so it throws an error.
这篇关于java.lang.IllegalArgumentException:内容必须预先排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!