gpt4 book ai didi

jsf - Mojarra 2.1.29 与 JDK 1.6 不兼容

转载 作者:行者123 更新时间:2023-12-01 05:06:41 25 4
gpt4 key购买 nike

我正在将我的应用程序升级到 primefaces 5.1 和 Mojarra javax.faces 2.1.29 版本。当时我使用 JDK 1.7 之前我没有收到任何错误。
为了与客户端环境兼容,我更改了 weblogic JDK 运行时和 My Eclipse 编译器以设置
JDK 1.6 出现以下错误。有人遇到过同样的问题吗?我需要使用低版本吗
带有 JDK 1.6 的 Mojarra 2.1.28 或 2.1.27

Jan 6, 2015 2:12:17 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
SEVERE: Error Rendering View[/myHTML.xhtml]
java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:392)
at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:391)
at java.util.AbstractMap.equals(AbstractMap.java:420)
at java.util.Collections$SynchronizedMap.equals(Collections.java:2020)
at com.sun.faces.context.SessionMap.put(SessionMap.java:138)
at com.sun.faces.context.SessionMap.put(SessionMap.java:61)
at com.sun.faces.renderkit.ServerSideStateHelper.writeState(ServerSideStateHelper.java:243)
at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:122)
at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:113)
at com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:225)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:464)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:105)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

最佳答案

这真的很奇怪,但你是对的。这是JDK版本的问题。在我的情况下,我在 Glassfish 3.1.2-11 上使用 JDK 1.6.0-30、JSF 2.1.29 时遇到了同样的错误。

根据您的建议,我将 JDK 更改为 1.7.0-45,问题就消失了。

关于jsf - Mojarra 2.1.29 与 JDK 1.6 不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27853823/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com