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

Warning about application instance has been already stopped #5

Open
mshabarov opened this issue Dec 14, 2023 · 0 comments
Open

Warning about application instance has been already stopped #5

mshabarov opened this issue Dec 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mshabarov
Copy link
Contributor

I get the following stacktrace in the server logs, when I start the application from main:

2023-12-14T09:03:42.741+02:00  INFO 12375 --- [onPool-worker-3] o.a.c.loader.WebappClassLoaderBase       : Illegal access: this web application instance has been stopped already. Could not load [META-INF/frontend/buttonFunctions.js]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [META-INF/frontend/buttonFunctions.js]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1373) ~[tomcat-embed-core-10.1.16.jar:10.1.16]
        at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:971) ~[tomcat-embed-core-10.1.16.jar:10.1.16]
        at com.vaadin.flow.server.frontend.scanner.ClassFinder$DefaultClassFinder.getResource(ClassFinder.java:105) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.scanner.ClassFinder$CachedClassFinder.getResource(ClassFinder.java:159) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.AbstractUpdateImports.getResource(AbstractUpdateImports.java:348) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.AbstractUpdateImports.hasMetaInfResource(AbstractUpdateImports.java:775) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.AbstractUpdateImports.resolveResource(AbstractUpdateImports.java:444) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.AbstractUpdateImports.lambda$resolveModules$4(AbstractUpdateImports.java:374) ~[flow-server-24.3.0.jar:24.3.0]
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[na:na]
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[na:na]
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[na:na]
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[na:na]
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[na:na]
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[na:na]
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[na:na]
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:na]
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[na:na]
        at com.vaadin.flow.server.frontend.AbstractUpdateImports.resolveModules(AbstractUpdateImports.java:375) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.AbstractUpdateImports.mergeJavascript(AbstractUpdateImports.java:477) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.AbstractUpdateImports.getMergedJavascript(AbstractUpdateImports.java:173) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.AbstractUpdateImports.run(AbstractUpdateImports.java:137) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.TaskUpdateImports.execute(TaskUpdateImports.java:75) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.flow.server.frontend.NodeTasks.execute(NodeTasks.java:342) ~[flow-server-24.3.0.jar:24.3.0]
        at com.vaadin.base.devserver.startup.DevModeInitializer.runNodeTasks(DevModeInitializer.java:354) ~[vaadin-dev-server-24.3.0.jar:na]
        at com.vaadin.base.devserver.startup.DevModeInitializer.lambda$initDevModeHandler$0(DevModeInitializer.java:295) ~[vaadin-dev-server-24.3.0.jar:na]
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[na:na]
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[na:na]
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[na:na]
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[na:na]
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[na:na]
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[na:na]
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[na:na]

This shows up only on the first run with mvn and not anymore for further runs.
Doesn't affect the application functionality. Might be related to some threads aren't stopped properly.

Versions:

    <properties>
        <java.version>17</java.version>
        <vaadin.version>24.3.0</vaadin.version>
        <hilla.version>2.5.0.beta1</hilla.version>
    </properties>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.2.0</version>
    </parent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant