Works just fine for me here. Seems this may be related to using Google Guice:
org.apache.wicket.WicketRuntimeException: There is no application attached to current thread Thread-68 at org.apache.wicket.Application.get(Application.java:236) at org.apache.wicket.guice.GuiceProxyTargetLocator.getInjector(GuiceProxyTargetLocator.java:135) at org.apache.wicket.guice.GuiceProxyTargetLocator.locateProxyTarget(GuiceProxyTargetLocator.java:60) at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:498) Zbynek On Wed, Jun 20, 2018 at 11:30 AM, Maxim Solodovnik <solomax...@gmail.com> wrote: > "There is no application attached to current thread" error is usually mean > Application.get() is not working .... > > On Wed, Jun 20, 2018 at 4:21 PM Zbynek Vavros <zbynekvav...@gmail.com> > wrote: > > > Yeah the difference (from what I see) is that ThreadPoolExecutor is used > in > > BgProcessApplication. > > And usage of > > > > https://ci.apache.org/projects/wicket/apidocs/6.x/ > org/apache/wicket/Session.html#bind() > > that is non-related. > > None of that helps me... > > > > @Maxim: Not sure what you mean but ThreadContext.getApplication() returns > > my application > > without the need to do anything > > > > Zbynek > > > > On Wed, Jun 20, 2018 at 11:10 AM, Ernesto Reinaldo Barreiro < > > reier...@gmail.com> wrote: > > > > > Did you look at > > > > > > https://github.com/reiern70/antilia-bits/tree/master/bgprocess > > > > > > > > > > > > On Wed, Jun 20, 2018 at 12:05 PM, Zbynek Vavros < > zbynekvav...@gmail.com> > > > wrote: > > > > > > > Still the same: > > > > > > > > org.apache.wicket.WicketRuntimeException: There is no application > > > attached > > > > to current thread pool-XX-thread-XX > > > > > > > > Zbynek > > > > > > > > > > > > > > > > On Wed, Jun 20, 2018 at 10:44 AM, Ernesto Reinaldo Barreiro < > > > > reier...@gmail.com> wrote: > > > > > > > > > Maybe this can help > > > > > > > > > > https://github.com/reiern70/antilia-bits/tree/master/bgprocess > > > > > > > > > > On Wed, Jun 20, 2018 at 11:13 AM, Zbynek Vavros < > > > zbynekvav...@gmail.com> > > > > > wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > I've got an AjaxButton and hidden panel with progress bar and > > status > > > > > > message which is hidden in the beggining. > > > > > > My idea is to display the panel when the button is clicked and > span > > > > long > > > > > > task. > > > > > > This task would update a counter that the progress will display > > using > > > > > > AjaxSelfUpdatingTimerBehavior. > > > > > > > > > > > > The problem is that the task has to be run in separate thread so > > the > > > > ajax > > > > > > completes > > > > > > and panel is even displayed before task end. > > > > > > > > > > > > Got the idea from > > > > > > https://stackoverflow.com/questions/15337198/wicket- > > > > > > calling-a-lengthy-operation-and-updating-through-ajax > > > > > > . > > > > > > > > > > > > But I'm getting org.apache.wicket.WicketRuntimeException: There > is > > > no > > > > > > application attached to current thread Thread-XX. > > > > > > > > > > > > Any suggestions? > > > > > > > > > > > > Thanks, > > > > > > Zbynek > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Regards - Ernesto Reinaldo Barreiro > > > > > > > > > > > > > > > > > > > > > -- > > > Regards - Ernesto Reinaldo Barreiro > > > > > > > > -- > WBR > Maxim aka solomax >