ICEfaces
  1. ICEfaces
  2. ICE-10653

Can not navigate to showcase demos from link menu (WebLogic 10.3.6.0/ WAS 7.0.0.31/8.5.5.4)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P03
    • Fix Version/s: EE-3.3.0.GA_P03
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces ee-3.3.0 r44538/ Build #1, WebLogic 10.3.6.0/ IBM WebSphere 7.0.0.31/WebSphere 8.5.5.4 on amazon aws, all browsers
    • Assignee Priority:
      P1
    • Affects:
      Compatibility/Configuration

      Description

      Details of deployment:
      showcase built with servlet-profile from ICEfaces EE-3.3.0 maintenance branch r44538, or using showcase.war from the Jenkins Build 01.
      A weblogic.xml file containing only the following was added to the WEB-INF folder inside the .war file
      <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
         <container-descriptor>
      <prefer-web-inf-classes>true</prefer-web-inf-classes>
         </container-descriptor>
      </weblogic-web-app>

      The showcase application loads but when trying to navigate to any demo using the links in the application there is Error 500--Internal Server Error.
      If using the actual URL of a demo directly, such as (http://ec2-54-184-121-30.us-west-2.compute.amazonaws.com:7001/showcase/showcase.jsf?grp=aceMenu&exp=dataTableBean) the demo will load and function as expected.

      Error 500--Internal Server Error
      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 javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
         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 weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

        Issue Links

          Activity

          Hide
          Carmen Cristurean added a comment -

          The same server error occurs when trying to access showcase menu links on WebSphere 7.0.0.31:

          [4/23/15 12:25:45:696 EDT] 00000026 webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[Faces Servlet]: java.util.ConcurrentModificationException
          at java.util.LinkedHashMap$AbstractMapIterator.checkConcurrentMod(LinkedHashMap.java:136)
          at java.util.LinkedHashMap$AbstractMapIterator.makeNext(LinkedHashMap.java:141)
          at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:188)
          at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:180)
          at java.util.AbstractMap.equals(AbstractMap.java:384)
          at java.util.Collections$SynchronizedMap.equals(Collections.java:746)
          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 javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
          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 com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:944)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:507)
          at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
          at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
          at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:878)
          at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
          at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:191)
          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453)
          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306)
          at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:84)
          at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
          at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
          at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
          at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
          at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
          at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
          at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1660)

          [4/23/15 12:26:30:760 EDT] 00000027 SRTServletRes W com.ibm.ws.webcontainer.srt.SRTServletResponse addHeader WARNING: Cannot set header. Response already committed.
          [4/23/15 12:26:30:762 EDT] 00000027 SRTServletRes W com.ibm.ws.webcontainer.srt.SRTServletResponse addHeader WARNING: Cannot set header. Response already committed.
          [4/23/15 12:26:30:801 EDT] 00000027 SRTServletRes W com.ibm.ws.webcontainer.srt.SRTServletResponse addHeader WARNING: Cannot set header. Response already committed.

          Show
          Carmen Cristurean added a comment - The same server error occurs when trying to access showcase menu links on WebSphere 7.0.0.31: [4/23/15 12:25:45:696 EDT] 00000026 webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error] - [Faces Servlet] : java.util.ConcurrentModificationException at java.util.LinkedHashMap$AbstractMapIterator.checkConcurrentMod(LinkedHashMap.java:136) at java.util.LinkedHashMap$AbstractMapIterator.makeNext(LinkedHashMap.java:141) at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:188) at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:180) at java.util.AbstractMap.equals(AbstractMap.java:384) at java.util.Collections$SynchronizedMap.equals(Collections.java:746) 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 javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) 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 com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:944) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:507) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:878) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:191) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:84) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1660) [4/23/15 12:26:30:760 EDT] 00000027 SRTServletRes W com.ibm.ws.webcontainer.srt.SRTServletResponse addHeader WARNING: Cannot set header. Response already committed. [4/23/15 12:26:30:762 EDT] 00000027 SRTServletRes W com.ibm.ws.webcontainer.srt.SRTServletResponse addHeader WARNING: Cannot set header. Response already committed. [4/23/15 12:26:30:801 EDT] 00000027 SRTServletRes W com.ibm.ws.webcontainer.srt.SRTServletResponse addHeader WARNING: Cannot set header. Response already committed.
          Hide
          Carmen Cristurean added a comment - - edited

          Errors can also be reproduced with the scopes application deployed on WAS 7.0.0.31, and auction/showcase on WAS 8.5.5.4.

          No such errors when the applications are deployed on JBoss EAP 6.3.0 / JBoss 7.1.1.Final.

          Show
          Carmen Cristurean added a comment - - edited Errors can also be reproduced with the scopes application deployed on WAS 7.0.0.31, and auction/showcase on WAS 8.5.5.4. No such errors when the applications are deployed on JBoss EAP 6.3.0 / JBoss 7.1.1.Final.
          Hide
          Ken Fyten added a comment -

          Note that updating to Mojarra JSF 2.1.29-01.jar did not help, the issue still occurs.

          Show
          Ken Fyten added a comment - Note that updating to Mojarra JSF 2.1.29-01.jar did not help, the issue still occurs.
          Hide
          Liana Munroe added a comment -

          No such errors when the applications are deployed on WebLogic 12,1.3.1, WIldfly 8.2, Glassfish 3.1.2.2 or Tomcat 7/8

          Show
          Liana Munroe added a comment - No such errors when the applications are deployed on WebLogic 12,1.3.1, WIldfly 8.2, Glassfish 3.1.2.2 or Tomcat 7/8
          Hide
          Mircea Toma added a comment - - edited

          It seems that Websphere is using an ancient version of Mojarra, more specifically version 1.2. To avoid using this version the deployed application can be configured to load the application libraries first then the global libraries (see http://ec2-52-13-31-232.us-west-2.compute.amazonaws.com:9060/ibm/help/index.jsp?topic=/com.ibm.ws.console.appmanagement/ae/urun_rapp_classload.html - select option 'Classes loaded with local class loader first (parent last)'). Additionally the application needs to be built with web-profile target to include Mojarra 2.1.29 library.

          Show
          Mircea Toma added a comment - - edited It seems that Websphere is using an ancient version of Mojarra, more specifically version 1.2 . To avoid using this version the deployed application can be configured to load the application libraries first then the global libraries (see http://ec2-52-13-31-232.us-west-2.compute.amazonaws.com:9060/ibm/help/index.jsp?topic=/com.ibm.ws.console.appmanagement/ae/urun_rapp_classload.html - select option 'Classes loaded with local class loader first (parent last)' ). Additionally the application needs to be built with web-profile target to include Mojarra 2.1.29 library.
          Hide
          Carmen Cristurean added a comment -

          No errors when accessing showcase menu links on IF4 trunk r. 44593/ Mojarra 2.2.10 on WebLogic 10.3.6.0.

          Show
          Carmen Cristurean added a comment - No errors when accessing showcase menu links on IF4 trunk r. 44593/ Mojarra 2.2.10 on WebLogic 10.3.6.0.
          Show
          Mircea Toma added a comment - - edited Seems that other people have this problem: https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=1134966 http://stackoverflow.com/questions/27853823/jsf-2-1-29-not-compatible-with-jdk-1-6 http://quabr.com/27853823/jsf-2-1-29-not-compatible-with-jdk-1-6 JDK 1.6 looks to be the cause.
          Hide
          Ken Fyten added a comment -

          Alright, reverted back to Mojarra JSF 2.1.28.

          Show
          Ken Fyten added a comment - Alright, reverted back to Mojarra JSF 2.1.28.
          Hide
          Carmen Cristurean added a comment -

          EE-3.3.0-maintenance branch r.44594/ Mojarra 2.1.28: testing on WebLogic10.3.6.0 and WAS 8.5.5.4 could not reproduce the errors.

          Show
          Carmen Cristurean added a comment - EE-3.3.0-maintenance branch r.44594/ Mojarra 2.1.28: testing on WebLogic10.3.6.0 and WAS 8.5.5.4 could not reproduce the errors.
          Hide
          Ken Fyten added a comment -

          Marking this resolved via reverting back to Mojarra JSF 2.1.28.

          Will add to Known Issues in Rel Notes.

          Show
          Ken Fyten added a comment - Marking this resolved via reverting back to Mojarra JSF 2.1.28. Will add to Known Issues in Rel Notes.

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Liana Munroe
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: