Hi,

When the application stops Application#destroy() should call
AsynchronousDataStore#destroy() (
https://github.com/apache/wicket/blob/6ee5313d405fbbdd4ce9d9a03ccb526358834fca/wicket-core/src/main/java/org/apache/wicket/pageStore/AsynchronousDataStore.java#L101
)
There it will interrupt the page saving thread and it should stop:
https://github.com/apache/wicket/blob/6ee5313d405fbbdd4ce9d9a03ccb526358834fca/wicket-core/src/main/java/org/apache/wicket/pageStore/AsynchronousDataStore.java#L325

I do not remember changes in this area of the code in 8.x but it is not
impossible.

On Fri, Oct 12, 2018 at 12:32 PM Rob Audenaerde <rob.audenae...@gmail.com>
wrote:

> Hi all,
>
> I'm experiencing some jetty-shutdown problems after upgrading from 7.9 to
> 8.1. See the stacktrace below.
>
> Is there a simple remedy for this? (or a known cause?) It is annoying
> because this error prevents Jetty from shutting down, and I use this in my
> tests, so my tests never end... :(
>
> Btw. I'm on java 10.0.2 and jetty version 9.2.5.v20141112
>
>
> 2018-10-12 11:24:25,738 ERROR - AsynchronousDataStore      -
> java.lang.InterruptedException
>         at
>
> java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1259)
>         at
>
> java.base/java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:317)
>         at
>
> java.base/java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:373)
>         at
>
> org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:207)
>         at
>
> org.apache.wicket.pageStore.AbstractPageStore.storePageData(AbstractPageStore.java:119)
>         at
>
> org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:66)
>         at
>
> org.apache.wicket.pageStore.AsynchronousPageStore$PageSavingRunnable.run(AsynchronousPageStore.java:225)
>         at java.base/java.lang.Thread.run(Thread.java:844)
>

Reply via email to