Discussion:
web session not available to current thread
Arunachalam Sibisakkaravarthi
2018-12-06 06:35:28 UTC
Permalink
Hi guys,
I am facing problem when try to get current session in separate thread.
Have a button in a page to import contacts.
When user clicks the button, it invoke Spring Async method in service class.
The method saves the contacts.
Inside the method I have used Sessiong.get() to get username.

But it throws following exception

org.apache.wicket.WicketRuntimeException: There is no application attached
to current thread commonTaskExecutor-2
at org.apache.wicket.Application.get(Application.java:235)
at org.apache.wicket.Session.get(Session.java:175)




*Thanks And RegardsSibi.ArunachalammCruncher*

Loading...