`

Comparison method violates its general contract!

    博客分类:
  • J2EE
阅读更多
jdk1.6升级到1.7后Comparator有null的参数就会抛出如下异常
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeLo(TimSort.java:747)
at java.util.TimSort.mergeAt(TimSort.java:483)
at java.util.TimSort.mergeCollapse(TimSort.java:410)
at java.util.TimSort.sort(TimSort.java:214)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:659)
at java.util.Collections.sort(Collections.java:217)
at com.spokesoft.util.GenericListPager.sort(GenericListPager.java:188)
at com.spokesoft.http.util.ListNavigatorModel.sort(ListNavigatorModel.java:145)
at com.spokesoft.http.util.ListModel.sort(ListModel.java:195)
at com.spokesoft.http.util.ListModel.handleListControl(ListModel.java:301)
at com.spokesoft.http.framework.TabServlet.doHandleList(TabServlet.java:247)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.spokesoft.http.framework.TabServlet.processRequest(TabServlet.java:185)
at com.spokesoft.http.framework.TabServlet.doGet(TabServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at com.spokesoft.http.framework.MainServlet.processTabs(MainServlet.java:140)
at com.spokesoft.http.framework.MainServlet.processRequest(MainServlet.java:115)
at com.spokesoft.http.framework.MainServlet.doGet(MainServlet.java:72)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at com.spokesoft.http.framework.Dispatcher.processRequest(Dispatcher.java:145)
at com.spokesoft.http.framework.Dispatcher.doGet(Dispatcher.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.spokesoft.http.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
17:21:53,216 ERROR [STDERR] 	at java.lang.Thread.run(Thread.java:724)
分享到:
评论

相关推荐

    java中排序报:Comparison method violates its general contract异常的解决

    在Java编程中,当执行排序操作时,可能会遇到一个特定的异常:“Comparison method violates its general contract”。这个异常通常发生在使用`Arrays.sort()`或`Collections.sort()`方法时,尤其是在从Java 6升级到...

    Algorithms for Association Rule Mining - A General Survey and Comparison

    ### 关联规则挖掘算法:概览与比较 #### 引言 自1993年引入以来,关联规则挖掘已成为数据挖掘领域中最受关注的任务之一。这一方法在知识发现(KDD)过程中,尤其是在市场篮子分析等商业场景下,被广泛应用。...

    Closely interleaved self-comparison method applied to precise measurement

    A self-comparison method with closely interleaved switching states is analyzed and used to evaluate some type-B uncertainties of an 87Rb atomic fountain clock. Free from additional frequency reference...

    Comparison of regional planning strategies: Countywide general plans in USA

    标题《Comparison of regional planning strategies: Countywide general plans in USA》和描述《The regional plans of developed countries follow a few common patterns. Both subjects under research have ...

    Hex Comparison1.8.2破解版

    Hex Comparison(文件比较与编辑)是一款小巧的十六进制文件比较和编辑修改工具。可以同时打开两个文件在同一界面比较,它可以自动比较两个文件的不同之处并高亮显示。并可以把不同之处生成文件保存成文档。

    The Boundary Element Method with Programming

    The often quoted comparison that the method is a “Cinderella”, dominated by her “big sister”, the Finite Element Method, and whose beauty is hidden away, is still true and we hope that the reader...

    fandango_score_comparison.csv

    fandango_score_comparison.csv 。python 机器学习,电影评分表。

    Hex Comparison

    Hex Comparison 是一款二进制文件比较与十六进制编辑工具。它可以帮助你使用二进制格式来比较两个文件。主要功能: 1.允许快速比较两个文件。 2.快速查找每一处不匹配的数据。 3.使用自定义颜色来显示不匹配数据。 4...

    Sorting Running Time Comparison Test

    本文将深入探讨四种常见的排序算法:插入排序、合并排序、堆排序和快速排序,并通过"Sorting Running Time Comparison Test"来分析它们的运行性能。 1. 插入排序(Insertion Sort): 插入排序是一种简单直观的排序...

    tiusie.zip_Ambiguity function_The Method Method

    This is the second energy entropy matlab code, EULER numerical analysis method, Comparison of soft threshold and hard threshold and today various threshold calculation method.

    A low-medium frequency sound velocity measurement device and measurement result via comparison method

    根据给定的文件信息,以下是对标题、描述和部分内容中提及的知识点的详细说明: 标题和描述中都提到了“低中频声速测量设备及比较法测量结果”,这表明研究的焦点是设计并测试一个用于在水下测量声速的装置,并通过...

    !A quantitative comparison of change detection algorithms

    标题与描述概述的知识点主要集中在变化检测算法在遥感监测中的应用,特别是在监测海草(如鳗草)的动态变化方面。以下是对这些知识点的详细阐述: ### 遥感变化检测算法 #### 定义与重要性 变化检测算法是遥感分析...

    Algorithm-sorting-algorithms-performance-comparison.zip

    Algorithm-sorting-algorithms-performance-comparison.zip,一组排序算法的性能比较它计算每个算法用于排序列表的时间:已排序的数字和未排序的数字,算法是为计算机程序高效、彻底地完成任务而创建的一组详细的准则...

    Comparison of learning disabled and general education children on the McCarthy Scales of Children's Abilities

    Comparison of learning disabled and general education children on the McCarthy Scales of Children's Abilities P.vyrhology in the Srhools 1980, 17. 429-436 COMPARISON OF LEARNING DISABLED AND ...

    Digital Change Detection by Post-Classification Comparison of RS Data in Land Use of Guangzhou

    Digital Change Detection by Post-Classification Comparison of RS Data in Land Use of Guangzhou,樊风雷,Wang Yunpeng,Remote sensing has long time been an important component of regional planning for ...

    comparison of db2 vs oracle

    ### DB2与Oracle数据库对比分析 #### 引言:为何选择IBM DB2? 随着全球数字化进程的加速,企业面临着前所未有的数据处理挑战。为了更好地利用信息技术(IT),许多组织正在寻求更智能、更高效的解决方案来应对日益...

    atlassian-visual-comparison-2.5.4-jira20.jar

    atlassian-visual-comparison-2.5.4-jira20.jar webdriver

    fandango_score_comparison

    标题"Fandango_score_comparison"可能指的是一个关于电影评分比较的研究或数据分析项目,其中可能涉及到Fandango网站上的电影评分与其他来源(如Metacritic或Rotten Tomatoes)的评分对比。描述提到“房价信息”,这...

    Arm Cortex-M Comparison Table_v3.pdf

    ### ARM Cortex-M处理器系列对比分析 #### 概述 ARM Cortex-M处理器家族是为成本与能源效率极高的微控制器优化设计的。这些处理器被广泛应用于各类设备中,包括物联网(IoT)、工业以及日常消费电子产品等。...

Global site tag (gtag.js) - Google Analytics