You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ernesto Reinaldo Barreiro (Jira)" <ji...@apache.org> on 2020/10/15 12:37:00 UTC

[jira] [Commented] (WICKET-6702) AsynchronousPageStore with NotDetachedModelChecker - "Not detached model found" exception on several fast sequential Ajax calls

    [ https://issues.apache.org/jira/browse/WICKET-6702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17214672#comment-17214672 ] 

Ernesto Reinaldo Barreiro commented on WICKET-6702:
---------------------------------------------------

Hi,

java.lang.IllegalStateException: Cannot create a session after the response has been committed	at org.apache.catalina.connector.Request.doGetSession(Request.java:3038)
	at org.apache.catalina.connector.Request.getSession(Request.java:2456)
	at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:896)
	at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:231)
	at org.apache.shiro.web.servlet.ShiroHttpServletRequest.getSession(ShiroHttpServletRequest.java:148)
	at org.apache.wicket.session.HttpSessionStore.getHttpSession(HttpSessionStore.java:85)
	at org.apache.wicket.session.HttpSessionStore.getSessionId(HttpSessionStore.java:146)
	at org.apache.wicket.Session.bind(Session.java:276)
	at org.apache.wicket.pageStore.DefaultPageContext.getSessionId(DefaultPageContext.java:44)
	at org.apache.wicket.pageStore.AsynchronousPageStore$PendingAdd.<init>(AsynchronousPageStore.java:150)
	at org.apache.wicket.pageStore.AsynchronousPageStore.addPage(AsynchronousPageStore.java:368)
	at org.apache.wicket.pageStore.SerializingPageStore.addPage(SerializingPageStore.java:82)
	at org.apache.wicket.pageStore.CachingPageStore.addPage(CachingPageStore.java:73)
	at org.apache.wicket.pageStore.RequestPageStore.detach(RequestPageStore.java:108)
	at org.apache.wicket.page.PageManager.detach(PageManager.java:85)

Maybe is this related to early flush?

> AsynchronousPageStore with NotDetachedModelChecker - "Not detached model found" exception on several fast sequential Ajax calls
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-6702
>                 URL: https://issues.apache.org/jira/browse/WICKET-6702
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 8.5.0, 9.0.0
>            Reporter: Sergei Tkachuk
>            Priority: Major
>             Fix For: 9.1.0, 8.10.0
>
>         Attachments: QuickStart.zip
>
>
> Preconditions: Application uses AsynchronousPageStore (as it is by default).
> When there are several fast sequential Ajax calls to a component, then a component's LoadableDetachableModel gets attached and detached several times before real async serialization takes place. And at times the serialization is initiated when the model has been already attached once again by a subsequent Ajax call, and not detached yet as the request is still in progress. This causes NotDetachedModelChecker() to throw "Not detached model found!" exception
> Disabling async serialization fixes the problem.
> A test-case and a log attached.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)