2 Replies Latest reply on Oct 9, 2007 9:31 AM by wenhua yan

    Release 3.1.1, ArrayIndexOutOfBoundException

    wenhua yan Newbie

      after upgrade from 3.1.0 to 3.1.1, I got following exception. Any Help?

      16:33:40,141 WARN [lifecycle] executePhase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1c2ab6c) threw exception
      java.lang.ArrayIndexOutOfBoundsException: 6
      at org.richfaces.component.html.HtmlToolBarGroup.restoreState(HtmlToolBarGroup.java:581)
      at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1138)
      at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1154)
      at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1154)
      at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:245)
      at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:287)
      at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:317)
      at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
      at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:159)
      at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:317)
      at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:317)
      at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
      at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:159)
      at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Unknown Source)

        • 2. Re: Release 3.1.1, ArrayIndexOutOfBoundException
          wenhua yan Newbie

          Just back to work, thanks for the reply.

          from the exception, seems there is problem with my toolbar

          here is my code:
          <rich:toolBar id="bar" height="40" itemSeparator="line">
          <rich:toolBarGroup itemSeparator="none">
          <h:graphicImage value="/images/doubleespresso.jpg" height="40" width="40"/>
          <h:outputText styleClass="h1" value="#{msg.header}"></h:outputText>
          <h:panelGroup>
          <ui:insert name="pageHeader"/>
          </h:panelGroup>
          </rich:toolBarGroup>
          <rich:toolBarGroup location="right" itemSeparator="none">
          <h:outputText value="#{expressoModel.currentUser.userName}"></h:outputText>
          <h:commandButton value="Logout"/>
          </rich:toolBarGroup>
          </rich:toolBar>

          and here are my environments:
          JBoss 4.2.0, Facelet, Sun JSF RI (comes with jboss), Richfaces 3.1.1

          Toolbar was fine with Richfaces 3.1.0