ICEfaces
  1. ICEfaces
  2. ICE-10174

ICEMobile showcase - Random Errors

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P02
    • Fix Version/s: 4.0, EE-3.3.0.GA_P03
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEmobile 1.3.1 Jenkins Build 7
      Browser IE10 /simulator
      Server: Tomcat 7.0.42
    • Assignee Priority:
      P1

      Description

      Mobileshowcase > QR Code
      1) On this demo, a server side error and browser console errors were seen when changing the device types in the simulator (Auto Theme).
      These errors have been reproduced with this build only once, however I've seen them 1-2 times also in previous testings.

      Server error:
      Jul 17, 2014 11:35:59 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
      SEVERE: Error Rendering View[/showcase.xhtml]
      java.util.ConcurrentModificationException
          at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966)
          at java.util.LinkedList$ListItr.next(LinkedList.java:888)
          at org.icefaces.impl.application.WindowScopeManager.lookupWindowScope(WindowScopeManager.java:93)
          at org.icefaces.impl.application.WindowELResolver.getScope(WindowELResolver.java:66)
          at org.icefaces.impl.application.WindowELResolver.getValue(WindowELResolver.java:36)
          at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
          at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
          at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:72)
          at org.apache.el.parser.AstValue.getValue(AstValue.java:161)
          at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185)
          at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
          at com.sun.faces.facelets.component.UIRepeat.getValue(UIRepeat.java:274)
          at com.sun.faces.facelets.component.UIRepeat.getDataModel(UIRepeat.java:250)
          at com.sun.faces.facelets.component.UIRepeat.setIndex(UIRepeat.java:466)
          at com.sun.faces.facelets.component.UIRepeat.doVisitChildren(UIRepeat.java:729)
          at com.sun.faces.facelets.component.UIRepeat.visitTree(UIRepeat.java:687)
          at javax.faces.component.UIComponent.visitTree(UIComponent.java:1663)
          at javax.faces.component.UIComponent.visitTree(UIComponent.java:1663)
          at javax.faces.component.UIForm.visitTree(UIForm.java:371)
      ..............


      Browser console errors:
      [window] [Thu, 17 Jul 2014 17:35:59 UTC] Error [status: emptyResponse code: 200]: An empty response was received from the server. Check server error logs.
      <?xml version='1.0' encoding='UTF-8'?>
      <partial-response><changes><update id="javax.faces.ViewState"><![CDATA[2558013941311923273:-4234120419908233263]]></update><?xml version='1.0' encoding='UTF-8'?>
      <partial-response></changes><error><error-name>class java.util.ConcurrentModificationException</error-name><error-message><![CDATA[]]></error-message></error></partial-response>
      XML5635: An XML declaration is only allowed at the beginning of the file.
      , line 2 character 126
      XML5635: An XML declaration is only allowed at the beginning of the file.
      , line 2 character 126
      XML5635: An XML declaration is only allowed at the beginning of the file.
      , line 2 character 126



      2) In a second round of testing (fresh deployment, cache cleared browser), when switching devices from "Nexus 7" to "iPad" and then back to "Nexus 7" , a different server error occurred (no browser console error this time):

      Jul 17, 2014 11:53:37 AM org.icepush.PushStormDetectionServer$PushStormResponseHandler respond
      WARNING: Push storm occurred, shutting down blocking connection.
      Jul 17, 2014 11:53:51 AM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError
      SEVERE: javax.faces.view.facelets.TagAttributeException: /resources/components/exampleTabset.xhtml @58,70 src="#{cc.attrs.exampleBean.resourcesPath}" null
          at com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:331)
          at com.sun.faces.facelets.tag.TagAttributeImpl.getValue(TagAttributeImpl.java:295)
          at com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:112)
          at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
          at org.icefaces.mobi.component.contentpane.ContentPaneHandler.applyNextHandler(ContentPaneHandler.java:66)
          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:187)
          at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
          at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:95)
          at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:187)
          at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
          at com.sun.faces.facelets.tag.composite.ImplementationHandler.apply(ImplementationHandler.java:81)
      .............
      Caused by: java.lang.NullPointerException
          at org.icefaces.impl.application.WindowScopeManager$ScopeMap.access$300(WindowScopeManager.java:313)
          at org.icefaces.impl.application.WindowScopeManager.lookupWindowScope(WindowScopeManager.java:94)
          at org.icefaces.impl.application.WindowELResolver.getScope(WindowELResolver.java:66)
          at org.icefaces.impl.application.WindowELResolver.getValue(WindowELResolver.java:36)
          at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
          at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
          at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:72)
          at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185)
          at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
          at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2364)
          at com.sun.faces.el.CompositeComponentAttributesELResolver$ExpressionEvalMap.get(CompositeComponentAttributesELResolver.java:386)
          at javax.el.MapELResolver.getValue(MapELResolver.java:52)
          at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
          at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
          at org.apache.el.parser.AstValue.getValue(AstValue.java:183)
          at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185)
          at com.sun.faces.facelets.el.ContextualCompositeValueExpression.getValue(ContextualCompositeValueExpression.java:156)
          at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
          at com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
          ... 101 more

        Activity

        Hide
        Deryk Sinotte added a comment -

        Adjusted iteration over disposedWindowScopedMaps to use a copy to avoid ConcurrentModificationExceptions.

        Show
        Deryk Sinotte added a comment - Adjusted iteration over disposedWindowScopedMaps to use a copy to avoid ConcurrentModificationExceptions.

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: