platform icon indicating copy to clipboard operation
platform copied to clipboard

Whitelabel Error Page when upgrading to 24.4.0.alpha7 from Vaadin 23

Open samie opened this issue 1 year ago • 7 comments

Describe the bug

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Feb 29 13:00:00 UTC 2024
There was an unexpected error (type=Internal Server Error, status=500).
java.lang.IllegalStateException: com.vaadin.flow.server.ExecutionFailedException: ************************* * The TypeScript type declaration file 'types.d.ts' has been updated * * to the latest version by Vaadin. Previous content has been backed up * * on 'types.d.ts.flowBackup' file. Please verify that the updated * * 'types.d.ts' file contains configuration needed for your project, and * * then delete the backup file. * *************************
com.vaadin.flow.server.ServiceException: java.lang.IllegalStateException: com.vaadin.flow.server.ExecutionFailedException: 

*************************
*  The TypeScript type declaration file 'types.d.ts' has been updated     *
*  to the latest version by Vaadin. Previous content has been backed up   *
*  on 'types.d.ts.flowBackup' file. Please verify that the updated        *
*  'types.d.ts' file contains configuration needed for your project, and  *
*  then delete the backup file.                                           *
*************************



	at com.vaadin.flow.server.VaadinService.handleExceptionDuringRequest(VaadinService.java:1635)
	at com.vaadin.flow.server.VaadinService.handleRequest(VaadinService.java:1586)
	at com.vaadin.flow.server.VaadinServlet.service(VaadinServlet.java:398)
	at com.vaadin.flow.spring.SpringServlet.service(SpringServlet.java:106)
	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:205)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:642)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:408)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:313)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:277)
	at org.springframework.web.servlet.mvc.ServletForwardingController.handleRequestInternal(ServletForwardingController.java:141)
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:178)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:51)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903)
	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885)
	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:205)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:391)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.IllegalStateException: com.vaadin.flow.server.ExecutionFailedException: 

*************************
*  The TypeScript type declaration file 'types.d.ts' has been updated     *
*  to the latest version by Vaadin. Previous content has been backed up   *
*  on 'types.d.ts.flowBackup' file. Please verify that the updated        *
*  'types.d.ts' file contains configuration needed for your project, and  *
*  then delete the backup file.                                           *
*************************



	at com.vaadin.base.devserver.AbstractDevServerRunner.getCause(AbstractDevServerRunner.java:772)
	at com.vaadin.base.devserver.AbstractDevServerRunner.getCause(AbstractDevServerRunner.java:768)
	at com.vaadin.base.devserver.AbstractDevServerRunner.handleRequestInternal(AbstractDevServerRunner.java:631)
	at com.vaadin.base.devserver.DevBundleBuildingHandler.handleRequest(DevBundleBuildingHandler.java:94)
	at com.vaadin.flow.server.VaadinService.handleRequest(VaadinService.java:1574)
	... 52 more
Caused by: com.vaadin.flow.server.ExecutionFailedException: 

*************************
*  The TypeScript type declaration file 'types.d.ts' has been updated     *
*  to the latest version by Vaadin. Previous content has been backed up   *
*  on 'types.d.ts.flowBackup' file. Please verify that the updated        *
*  'types.d.ts' file contains configuration needed for your project, and  *
*  then delete the backup file.                                           *
*************************



	at com.vaadin.flow.server.frontend.TaskGenerateTsDefinitions.updateIfContentMissing(TaskGenerateTsDefinitions.java:175)
	at com.vaadin.flow.server.frontend.TaskGenerateTsDefinitions.execute(TaskGenerateTsDefinitions.java:93)
	at com.vaadin.flow.server.frontend.NodeTasks.execute(NodeTasks.java:343)
	at com.vaadin.base.devserver.startup.DevModeInitializer.runNodeTasks(DevModeInitializer.java:359)
	at com.vaadin.base.devserver.startup.DevModeInitializer.lambda$initDevModeHandler$0(DevModeInitializer.java:300)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Expected-behavior

No response

Reproduction

Update the Vaadin version in pom.xml of existing Vaadin 23 project and run mvn package

System Info

Windows 11 OpenJDK 17

samie avatar Feb 29 '24 15:02 samie

What exactly does types.d.ts.flowBackup contain, was it customized? Did you do what the message told you to do?

Artur- avatar Feb 29 '24 15:02 Artur-

Restarting the app started it ok. Should this be a warning instead of a error?

samie avatar Mar 01 '24 08:03 samie

Side-note: Could not find a way to get system information or the "Vaadin debug popup" anymore. Only copilot configuration. Should it be there?

samie avatar Mar 01 '24 08:03 samie

It you have not manually changed types.d.ts, then you should not see anything and it should just work. That's why I asked what the backup file contains, i.e. the old version of types.d.ts

Artur- avatar Mar 01 '24 08:03 Artur-

Could not find a way to get system information or the "Vaadin debug popup" anymore.

Copilot provides the same information in the right side panel

Artur- avatar Mar 01 '24 08:03 Artur-

is this still bothering you? or we can remove the bug the label, even close the ticket?

ZheSun88 avatar Mar 20 '24 07:03 ZheSun88

This is fixed after this change

manolo avatar Mar 26 '24 07:03 manolo

this issue should be fixed now, let us close it.

ZheSun88 avatar Jun 05 '24 12:06 ZheSun88