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

java.lang.ClassCastException: [B cannot be cast to java.lang.Integer at org.omnifaces.util.Hacks.removeViewState #444

Closed
BalusC opened this Issue Mar 24, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@BalusC
Copy link
Member

commented Mar 24, 2018

https://stackoverflow.com/q/49445846/157882

I'm trying to upgrade myfaces to latest version (without the whole java EE 8 stack, since tomee 8 is still not released).

It seems to work fine in most of the cases, however refreshing some pages throws this error

java.lang.ClassCastException: [B cannot be cast to java.base/java.lang.Integer
at org.omnifaces.util.Hacks.removeViewState(Hacks.java:432)
at org.omnifaces.viewhandler.OmniViewHandler.unloadView(OmniViewHandler.java:134)
at org.omnifaces.viewhandler.OmniViewHandler.restoreView(OmniViewHandler.java:101)
at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:97)

BalusC added a commit that referenced this issue Mar 24, 2018

@BalusC

This comment has been minimized.

Copy link
Member Author

commented Mar 24, 2018

Fixed in 2.6.9-SNAPSHOT

@BalusC BalusC closed this Mar 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.