`
lygle
  • 浏览: 22919 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

恼火(EMPTY_ORDERED_ITERATOR错误)

阅读更多

今天调试了下小程序,结果一直报这个错

堆栈打印如下:

javax.faces.FacesException: EMPTY_ORDERED_ITERATOR
	at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:411)
	at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:280)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:619)
Caused by: javax.servlet.ServletException: EMPTY_ORDERED_ITERATOR
	at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
	at org.apache.jsp.browse_jsp._jspService(browse_jsp.java:95)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
	at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:405)
	... 27 more
javax.servlet.ServletException: EMPTY_ORDERED_ITERATOR
	at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
	at org.apache.jsp.browse_jsp._jspService(browse_jsp.java:95)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
	at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:405)
	at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:280)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:619)
java.lang.NoSuchFieldError: EMPTY_ORDERED_ITERATOR
	at org.apache.commons.collections.map.AbstractLinkedMap.createValuesIterator(AbstractLinkedMap.java:482)
	at org.apache.commons.collections.map.AbstractHashedMap$Values.iterator(AbstractHashedMap.java:958)
	at java.util.AbstractCollection.toArray(AbstractCollection.java:120)
	at java.util.ArrayList.<init>(ArrayList.java:131)
	at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:399)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:298)
	at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
	at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)
	at javax.servlet.GenericServlet.init(GenericServlet.java:211)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
	at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
	at org.apache.catalina.core.StandardService.start(StandardService.java:480)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

 

 

 

网上有的说是

写道
解决方法:
java.lang.NoSuchFieldError: EMPTY_ORDERED_ITERATOR 出现是Jar 包冲突导致,删除commons-collections-2.0.jar保留commons-collections-3.0.jar

顺便建议你清理一下你的jar目录,把重复的去掉吧,只保留最新的!

 

但改这边根本就不存在jar包冲突问题。

于是改了下,JDK版本(之前用的是tomcat5.0.28要jdk1.6,把jdk1.6改成1.5)

结果就不报错啦

分享到:
评论

相关推荐

    sql server练习

    在本文档中,我们可以看到五个数据表的设计:items_ordered 表、customer 表、authors 表、books 表。这些表的设计体现了实体关系和数据 normalization 的概念。 * items_ordered 表:该表记录了客户的订单信息,...

    6_Concurrent rebalancing of AVL trees_A fine-grained approach

    ### 并发AVL树再平衡:细粒度方法 #### 概述 在计算机科学领域,二叉搜索树(Binary Search Trees, BST)是一种重要的数据结构,用于存储有序的数据集合,而AVL树(Adelson-Velsky and Landis tree)作为平衡二叉...

    liton_ordered_tec:将有序数据(结构数据)写入二进制tecplot文件(.plt)-matlab开发

    Ordered_tec是一个简单的程序包,可将有序数据(结构数据)写入二进制tecplot文件(.plt)。 MATLAB的Ordered_tec用MATLAB OOP编写。 该软件包不需要任何依赖关系,并且根据Tecplot二进制数据格式直接写入二进制文件...

    PyPI 官网下载 | orderedset-1.2.tar.gz

    这个包的版本是1.2,通常每个版本可能包含错误修复、新功能或性能优化。 描述简洁明了,告诉我们资源来源于PyPI官网,具体是`orderedset-1.2.tar.gz`,这通常是一个压缩文件,包含了`orderedset`库的所有源代码和...

    sql server中批量导入的代码

    在给定的代码中,`BULK INSERT items_ordered FROM 'D:\a.txt'`指示SQL Server从本地路径`D:\a.txt`读取数据,并按照指定的格式插入到`items_ordered`表中。 #### 配置选项 `WITH`子句用于指定导入数据的格式细节...

    Python3.6入门学习示例

    6.3_ordered_dictionaries.py 7.1_input.py 7.2_while_with_list.py 8.1_function.py 8.2_function_return_value_type.py 8.3.1_function_modules.py 8.3.2_function_modules.py 8.3.3_function_modules.py 8.3.4_...

    ordered-map:保留插入顺序的C ++哈希映射和哈希集

    这种设计简化了集成过程,用户可以直接在项目中包含`&lt;ordered_map&gt;`头文件即可使用。 ### 3. 兼容性和API设计 库的设计目标是与`std::unordered_map`保持尽可能的兼容性,允许开发者轻松地替换已有的`std::...

    java ordered接口应用

    Java中的`Ordered`接口主要用在需要定义顺序或者排列规则的场景,特别是在Spring框架中,它在Bean的初始化和销毁顺序、AOP切面的执行顺序等方面起到关键作用。`Ordered`接口仅包含一个方法`getOrder()`,返回一个...

    简单了解JavaScript操作XPath的一些基本方法

    当需要返回多个节点时,可以使用ORDERED_NODE_ITERATOR_TYPE或ORDERED_NODE_SNAPSHOT_TYPE作为返回结果类型。前者返回的节点集合顺序与文档中的顺序相同,后者则创建了一个节点集合的快照,即便文档结构发生变化,...

    pintos 作业2

    list_empty(&sema-&gt;waiters)) { wake_up = list_entry(list_pop_front(&sema-&gt;waiters), struct thread, elem); thread_unblock(wake_up); } sema-&gt;value++; if (wake_up != NULL && wake_up-&gt;priority &gt; curr-...

    Python中将字典转换为列表的方法

    在这种情况下,`key_value_ordered` 和 `value_list_ordered` 将分别按照字典中的顺序返回。 总结来说,Python中将字典转换为列表,主要是通过`keys()`和`values()`方法,分别获取字典的键和值,并转换为列表。对于...

    EventBus五种ThreadMode

    ThreadMode 提供了5种mode, 我觉得在只用其中的MAIN和BACKGROUD就可以了 ...5. ThreadMode: MAIN_ORDERED 在主线程中处理事件, 事件总是放入队列中通过handle处理, 并且总是发布时间按着先后顺序执行事件的处理

    OrderedSet:具有定义顺序的集合

    OrderedSet 静态的,有序的唯一对象集合。 关于 简而言之, OrderedSet是Array和Set的混合体。 像Array一样,它的元素具有定义的顺序,但是它像Set一样在其成员上强制唯一性。 在以下情况下,可以使用OrderedSet...

    webshop-backend-api-oop:出于教育目的,使用C ++内置的网店后端API

    控制器 服务 资料库 列出产品 命令有一个或多个产品只能属于一个用户,一个用户可以有更多订单这意味着将包含一个新的db表products_ordered ,其中将包含已订购产品的状态(它可能与products表中的状态有所不同,...

    北大POJ2533-Longest Ordered Subsequence【O(nlogn)】

    北大POJ2533-Longest Ordered Subsequence【O(nlogn)】

    ordered_find

    gem 'ordered_find' 然后执行: $ bundle 或者自己安装: $ gem install ordered_find 用法 SomeModel.ordered_find([1, 3, 2, 1]) =&gt; [#, #, #, #] 或者 SomeModel.ordered_find(1, 3, 2) SomeModel....

    Python标准库使用OrderedDict类的实例讲解

    my_ordered_dict = OrderedDict() # 添加键值对 my_ordered_dict['one'] = 1 my_ordered_dict['two'] = 2 my_ordered_dict['three'] = 3 # 输出 print(my_ordered_dict) ``` #### 三、示例分析 根据提供的部分...

    Python库 | ordered_argparse-1.0.10-py3-none-any.whl

    资源分类:Python库 所属语言:Python 资源全名:ordered_argparse-1.0.10-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    dqz数据库原理.docx

    4. 订单联系(hold)原本包含订单编号(order_no)、订单日期(order_date)、所订货物编号(item_id)和所订货物数量(qty_ordered)。由于存在部分函数依赖,如订单编号决定订单日期,必须将其分解为两个表:订单...

    android demo发送有序广播

    &lt;action android:name="com.example.ACTION_SEND_ORDERED_BROADCAST"/&gt; ``` 3. **发送有序广播**: 使用`sendOrderedBroadcast()`方法发送有序广播,而不是`sendBroadcast()`。此方法需要一个Intent对象和一个...

Global site tag (gtag.js) - Google Analytics