Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full State Saving ArrayIndexOutOfBoundsException #4936

Closed
melloware opened this issue May 23, 2021 · 1 comment
Closed

Full State Saving ArrayIndexOutOfBoundsException #4936

melloware opened this issue May 23, 2021 · 1 comment

Comments

@melloware
Copy link
Contributor

melloware commented May 23, 2021

Mojarra: 2.2.20
Mojarra: 2.3.16

Original Report: primefaces/primefaces#7343

Reproducer:
pf-7343.zip

mvn clean jetty:run -Pmojarra22 - ERROR

mvn clean jetty:run -Pmojarra23 - ERROR

Navigate to: http://localhost:8080/primefaces-test/test.xhtml

When using:

<context-param>
        <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
        <param-value>false</param-value>
    </context-param>

When trying to use PrimeFaces Download it fails with stack trace:

java.lang.ArrayIndexOutOfBoundsException: Index 6 out of bounds for length 6
    at javax.faces.component.UIComponentBase.processRestoreState (UIComponentBase.java:1399)
    at javax.faces.component.UIComponentBase.processRestoreState (UIComponentBase.java:1420)
    at javax.faces.component.UIViewRoot.processRestoreState (UIViewRoot.java:875)
    at com.sun.faces.application.view.JspStateManagementStrategy.restoreView (JspStateManagementStrategy.java:273)
    at com.sun.faces.application.StateManagerImpl.restoreView (StateManagerImpl.java:138)
    at com.sun.faces.application.view.ViewHandlingStrategy.restoreView (ViewHandlingStrategy.java:123)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView (FaceletViewHandlingStrategy.java:589)
    at com.sun.faces.application.view.MultiViewHandler.restoreView (MultiViewHandler.java:151)
    at javax.faces.application.ViewHandlerWrapper.restoreView (ViewHandlerWrapper.java:353)
    at javax.faces.application.ViewHandlerWrapper.restoreView (ViewHandlerWrapper.java:353)
    at com.sun.faces.lifecycle.RestoreViewPhase.execute (RestoreViewPhase.java:199)
    at com.sun.faces.lifecycle.Phase.doPhase (Phase.java:101)
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase (RestoreViewPhase.java:123)
    at com.sun.faces.lifecycle.LifecycleImpl.execute (LifecycleImpl.java:198)
    at javax.faces.webapp.FacesServlet.service (FacesServlet.java:658)

melloware added a commit to melloware/mojarra that referenced this issue May 23, 2021
melloware added a commit to melloware/mojarra that referenced this issue May 23, 2021
@melloware melloware changed the title Partial State Saving ArrayIndexOutOfBoundsException Full State Saving ArrayIndexOutOfBoundsException May 24, 2021
arjantijms added a commit that referenced this issue Jun 1, 2021
arjantijms added a commit that referenced this issue Jun 25, 2021
arjantijms added a commit that referenced this issue Jun 25, 2021
phillipross added a commit to phillipross/patched-src-mojarra that referenced this issue Aug 2, 2021
@marcjordanavila
Copy link

Thank you for fixing this issue! Do you know when this will be released? Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants