2021-09-08 07:42:42.707 INFO 19944 --- [ restartedMain] org.example.Application : Started Application in 3.751 seconds (JVM running for 4.115)
Exception in thread "restartedMain" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: java.lang.NoClassDefFoundError: com/vaadin/flow/server/DevModeHandler
at org.vaadin.artur.helpers.LaunchUtil.isProductionMode(LaunchUtil.java:21)
at org.vaadin.artur.helpers.LaunchUtil.launchBrowserInDevelopmentMode(LaunchUtil.java:68)
at org.example.Application.main(Application.java:15)
... 5 more
Caused by: java.lang.ClassNotFoundException: com.vaadin.flow.server.DevModeHandler
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 8 more
Versions:
- Vaadin / Flow version: 21.0.0
- Java version: 1.8
- OS version: Big Sur
- Browser version (if applicable):
- Application Server (if applicable):
- IDE (if applicable):
Description of the bug / feature
There is an exception message in console when running a flow-spring app in dev-mode.
Note that the execution continues and the app works.
Minimal reproducible example
Expected behavior
No disturbing exceptions reported in the console
Actual behavior
Versions: