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

Uwe Jäger commented on ISIS-3218:
---------------------------------

Complete stack trace/console output:

 

java.lang.NullPointerException: Cannot invoke 
"org.apache.isis.core.runtime.context.IsisAppCommonContext.lookupServiceElseFail(java.lang.Class)"
 because "this.commonContext" is null

 at 
org.apache.isis.viewer.wicket.viewer.integration.AuthenticatedWebSessionForIsis.syncExternalAuthenticationIfAvailable(AuthenticatedWebSessionForIsis.java:144)
 ~[isis-viewer-wicket-viewer-2.0.0-M7.jar:2.0.0-M7]

 at 
org.apache.isis.viewer.wicket.viewer.integration.WebRequestCycleForIsis.onBeginRequest(WebRequestCycleForIsis.java:136)
 ~[isis-viewer-wicket-viewer-2.0.0-M7.jar:2.0.0-M7]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection$1.notify(RequestCycleListenerCollection.java:65)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection$1.notify(RequestCycleListenerCollection.java:61)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
 ~[wicket-util-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection.onBeginRequest(RequestCycleListenerCollection.java:60)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection$1.notify(RequestCycleListenerCollection.java:65)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection$1.notify(RequestCycleListenerCollection.java:61)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
 ~[wicket-util-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection.onBeginRequest(RequestCycleListenerCollection.java:60)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:242)
 [wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:276)
 [wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:207)
 [wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:306) 
[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.isis.core.webapp.modules.logonlog.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:60)
 [isis-core-webapp-2.0.0-M7.jar:2.0.0-M7]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
 [spring-web-5.3.16.jar:5.3.16]

 at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
 [spring-web-5.3.16.jar:5.3.16]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
 [spring-web-5.3.16.jar:5.3.16]

 at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
 [spring-web-5.3.16.jar:5.3.16]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:450)
 [shiro-web-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
 [shiro-web-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
 [shiro-core-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) 
[shiro-core-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)
 [shiro-core-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
 [shiro-web-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
 [shiro-web-1.8.0.jar:1.8.0]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:359) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:889)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1735)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at java.lang.Thread.run(Thread.java:833) [?:?]

 

2022-09-23 10:39:18.401  WARN 53604 --- [nio-8080-exec-1] RequestCycleExtra     
                   : ********************************

2022-09-23 10:39:18.409 ERROR 53604 --- [nio-8080-exec-1] 
o.a.i.c.w.m.l.IsisLogOnExceptionFilter   : Request caused 
org.apache.wicket.WicketRuntimeException: 
http://localhost:8080/wicket/entity/simple.HomePageViewModel:AKztAAVzcgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAAAdwgAAAAQAAAAAHg=?3

 

org.apache.wicket.WicketRuntimeException: Cannot instantiate the configured 
sign in page

 at 
org.apache.isis.viewer.wicket.viewer.integration.WebRequestCycleForIsis.newSignInPage(WebRequestCycleForIsis.java:408)
 ~[isis-viewer-wicket-viewer-2.0.0-M7.jar:2.0.0-M7]

 at 
org.apache.isis.viewer.wicket.viewer.integration.WebRequestCycleForIsis.errorPageFor(WebRequestCycleForIsis.java:381)
 ~[isis-viewer-wicket-viewer-2.0.0-M7.jar:2.0.0-M7]

 at 
org.apache.isis.viewer.wicket.viewer.integration.WebRequestCycleForIsis.errorPageProviderFor(WebRequestCycleForIsis.java:339)
 ~[isis-viewer-wicket-viewer-2.0.0-M7.jar:2.0.0-M7]

 at 
org.apache.isis.viewer.wicket.viewer.integration.WebRequestCycleForIsis.onException(WebRequestCycleForIsis.java:293)
 ~[isis-viewer-wicket-viewer-2.0.0-M7.jar:2.0.0-M7]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:126)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:122)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
 ~[wicket-util-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection.onException(RequestCycleListenerCollection.java:121)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:126)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection$4.notify(RequestCycleListenerCollection.java:122)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
 ~[wicket-util-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycleListenerCollection.onException(RequestCycleListenerCollection.java:121)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycle.handleException(RequestCycle.java:379)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:325)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:260)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:276)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:207)
 ~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:306) 
~[wicket-core-8.13.0.jar:8.13.0]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 ~[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 ~[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.isis.core.webapp.modules.logonlog.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:60)
 [isis-core-webapp-2.0.0-M7.jar:2.0.0-M7]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
 [spring-web-5.3.16.jar:5.3.16]

 at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
 [spring-web-5.3.16.jar:5.3.16]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
 [spring-web-5.3.16.jar:5.3.16]

 at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
 [spring-web-5.3.16.jar:5.3.16]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:450)
 [shiro-web-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
 [shiro-web-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
 [shiro-core-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) 
[shiro-core-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)
 [shiro-core-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
 [shiro-web-1.8.0.jar:1.8.0]

 at 
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
 [shiro-web-1.8.0.jar:1.8.0]

 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:359) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:889)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1735)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 
[tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 [tomcat-embed-core-9.0.58.jar:9.0.58]

 at java.lang.Thread.run(Thread.java:833) [?:?]

Caused by: org.apache.wicket.RestartResponseException

> Make Isis work with sprint-boot-devtools
> ----------------------------------------
>
>                 Key: ISIS-3218
>                 URL: https://issues.apache.org/jira/browse/ISIS-3218
>             Project: Isis
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M7
>            Reporter: Uwe Jäger
>            Priority: Major
>
> When you add Spring Boot Devtools to you project (e.g. simpleapp), the 
> application automatically restarts when classes change. Unfortunately this 
> does not play nicely with Wicket, you have create a new session by deleting 
> your session cookie or reopening the browser. A solution seems to be to 
> register a custom serializer, as is done in the wicket-spring-boot-starter. 
> See the following commit for their solutions to register a serializer when 
> the devtools are active:
> https://github.com/MarcGiffing/wicket-spring-boot/commit/b2a3469f004d3636674a29b3c99458c051ba79eb



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to