You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.ClassCastException: class com.vaadin.mpr.MprUI cannot be cast to class org.vaadin.mprdemo.OldUI (com.vaadin.mpr.MprUI and org.vaadin.mprdemo.OldUI are in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @d80243a)
at org.vaadin.mprdemo.MyUI.(MyUI.java:55)
... 58 more
Apparently this is regression due url parameter template feature, since the error does not happen with versions before 14.5.1.
Workaround: add @LegacyUI annotation to OtherView.java
Since all other annotations should be on the
AppShellConfiguration implementation class
in v19+ also MPR should only look for the
annotations on the configuration class.
part of vaadin/multiplatform-runtime#83
Since all other annotations should be on the
AppShellConfiguration implementation class
in v19+ also MPR should only look for the
annotations on the configuration class.
part of vaadin/multiplatform-runtime#83
Vaadin versions 14.5.1, 8.12.4
@LegacyUI, @MprTheme, ... annotations do not work with HasUrlParameter
Install and deploy the attached test application
Type http://localhost:8080/other/parameter in address bar and press enter.
Exception with root cause like below is thrown
Caused by: java.lang.ClassCastException: class com.vaadin.mpr.MprUI cannot be cast to class org.vaadin.mprdemo.OldUI (com.vaadin.mpr.MprUI and org.vaadin.mprdemo.OldUI are in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @d80243a)
at org.vaadin.mprdemo.MyUI.(MyUI.java:55)
... 58 more
Apparently this is regression due url parameter template feature, since the error does not happen with versions before 14.5.1.
Workaround: add @LegacyUI annotation to OtherView.java
mpr-parameter-bug.zip
The text was updated successfully, but these errors were encountered: