Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3069

[Regression] Deprecated DomainService naming strategy not picked up by Spring

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Resolved
    • None
    • 2.0.0-M8
    • None
    • None

    Description

      To reproduce:

      1. build isis locally (to 2.0.0-SNAPSHOT)
      2. build simpleapp locally , on branch jpa-SNAPSHOT (which references 2.0.0-SNAPSHOT)
      3. run using "java -jar webapp/target/simpleapp-jpa-webapp-2.0.0-SNAPSHOT-exec.jar"
      4. login, use the app eg to install the demo fixture, edit an object 
      5. hit back button in browser (or alt+left arrow on Windows); will get a stack trace for your troubles.
       2022-06-06 11:46:08.551  WARN 59504 --- [io-8080-exec-10] RequestCycleExtra                        : Handling the following exceptionorg.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [WebMarkupContainer [Component id = topMenu]]
              at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1771) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.onBeforeRender(Component.java:3832) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.beforeRender(Component.java:949) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1759) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.onBeforeRender(Component.java:3832) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.beforeRender(Component.java:949) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1759) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.onBeforeRender(Component.java:3832) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:143) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.beforeRender(Component.java:949) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1759) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.onBeforeRender(Component.java:3832) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.beforeRender(Component.java:949) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1759) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.onBeforeRender(Component.java:3832) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.beforeRender(Component.java:949) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1759) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.onBeforeRender(Component.java:3832) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Page.onBeforeRender(Page.java:789) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.beforeRender(Component.java:949) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Page.renderPage(Page.java:991) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.isis.viewer.wicket.ui.pages.PageAbstract.renderPage(PageAbstract.java:491) ~[isis-viewer-wicket-ui-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:124) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:195) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:910) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:63) ~[wicket-request-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:294) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:255) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:277) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:208) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:307) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.isis.core.webapp.modules.logonlog.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:60) ~[isis-core-webapp-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.20.jar!/:5.3.20]
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.20.jar!/:5.3.20]
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.20.jar!/:5.3.20]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:450) ~[shiro-web-1.9.0.jar!/:1.9.0]
              at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) ~[shiro-web-1.9.0.jar!/:1.9.0]
              at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) ~[shiro-core-1.9.0.jar!/:1.9.0]
              at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) ~[shiro-core-1.9.0.jar!/:1.9.0]
              at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387) ~[shiro-core-1.9.0.jar!/:1.9.0]
              at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) ~[shiro-web-1.9.0.jar!/:1.9.0]
              at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) ~[shiro-web-1.9.0.jar!/:1.9.0]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.63.jar!/:?]
              at java.lang.Thread.run(Thread.java:829) ~[?:?]
      Caused by: java.util.NoSuchElementException: loader: org.apache.isis.core.metamodel.objectmanager.load.ObjectLoader_builtinHandlers$LoadService loading beanName simple.SimpleObjects
              at org.apache.isis.commons.internal.exceptions._Exceptions.noSuchElement(_Exceptions.java:120) ~[isis-commons-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.commons.internal.exceptions._Exceptions.noSuchElement(_Exceptions.java:126) ~[isis-commons-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.core.metamodel.objectmanager.load.ObjectLoader_builtinHandlers$LoadService.lambda$handle$0(ObjectLoader_builtinHandlers.java:98) ~[isis-core-metamodel-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at java.util.Optional.orElseThrow(Optional.java:408) ~[?:?]
              at org.apache.isis.core.metamodel.objectmanager.load.ObjectLoader_builtinHandlers$LoadService.handle(ObjectLoader_builtinHandlers.java:98) ~[isis-core-metamodel-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.core.metamodel.objectmanager.load.ObjectLoader_builtinHandlers$LoadService.handle(ObjectLoader_builtinHandlers.java:76) ~[isis-core-metamodel-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.commons.handler.ChainOfResponsibility$2.handle(ChainOfResponsibility.java:94) ~[isis-commons-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.core.metamodel.objectmanager.load.ObjectLoader.lambda$createDefault$0(ObjectLoader.java:68) ~[isis-core-metamodel-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.core.metamodel.objectmanager.ObjectManager.loadObject(ObjectManager.java:83) ~[isis-core-metamodel-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.core.metamodel.context.MetaModelContext.lambda$loadObject$0(MetaModelContext.java:129) ~[isis-core-metamodel-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at java.util.Optional.map(Optional.java:265) ~[?:?]
              at org.apache.isis.core.metamodel.context.MetaModelContext.loadObject(MetaModelContext.java:129) ~[isis-core-metamodel-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at jdk.internal.reflect.GeneratedMethodAccessor266.invoke(Unknown Source) ~[?:?]
              at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
              at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
              at org.apache.wicket.proxy.jdk.JdkProxyFactory$JdkHandler.invoke(JdkProxyFactory.java:172) ~[wicket-ioc-9.10.0.jar!/:9.10.0]
              at com.sun.proxy.$Proxy160.loadObject(Unknown Source) ~[?:?]
              at org.apache.isis.viewer.wicket.model.models.interaction.BookmarkedObjectWkt.loadDirect(BookmarkedObjectWkt.java:161) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.model.models.interaction.BookmarkedObjectWkt.lambda$load$2(BookmarkedObjectWkt.java:155) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at java.util.Optional.orElseGet(Optional.java:369) ~[?:?]
              at org.apache.isis.viewer.wicket.model.models.interaction.BookmarkedObjectWkt.load(BookmarkedObjectWkt.java:155) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.model.models.interaction.BookmarkedObjectWkt.load(BookmarkedObjectWkt.java:42) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:128) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.isis.viewer.wicket.model.models.interaction.BookmarkedObjectWkt.getObjectAndRefetch(BookmarkedObjectWkt.java:147) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.model.models.interaction.HasBookmarkedOwnerAbstract.getBookmarkedOwner(HasBookmarkedOwnerAbstract.java:47) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.model.models.interaction.act.ActionInteractionWkt.load(ActionInteractionWkt.java:131) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.model.models.interaction.act.ActionInteractionWkt.load(ActionInteractionWkt.java:63) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:128) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.isis.viewer.wicket.model.models.interaction.act.ActionInteractionWkt.actionInteraction(ActionInteractionWkt.java:135) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.model.models.ActionModelImpl.getActionInteraction(ActionModelImpl.java:87) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.common.model.action.HasActionInteraction.getManagedAction(HasActionInteraction.java:35) ~[isis-viewer-common-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.model.links.LinkAndLabel.getManagedAction(LinkAndLabel.java:58) ~[isis-viewer-wicket-model-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.common.model.action.HasManagedAction.getAction(HasManagedAction.java:47) ~[isis-viewer-common-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.common.model.action.HasManagedAction.getFeatureIdentifier(HasManagedAction.java:89) ~[isis-viewer-common-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.ui.util.WktDecorators$ActionLink.decorateMenuItem(WktDecorators.java:232) ~[isis-viewer-wicket-ui-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.ui.components.actionmenu.serviceactions.ServiceActionUtil.addLeafItem(ServiceActionUtil.java:57) ~[isis-viewer-wicket-ui-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.ui.components.actionmenu.serviceactions.MenuActionPanel.addLeafItem(MenuActionPanel.java:83) ~[isis-viewer-wicket-ui-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.ui.components.actionmenu.serviceactions.MenuActionPanel.lambda$subMenuItemsView$3e242b4c$1(MenuActionPanel.java:61) ~[isis-viewer-wicket-ui-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.isis.viewer.wicket.ui.util.Wkt$17.populateItem(Wkt.java:768) ~[isis-viewer-wicket-ui-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
              at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.Component.beforeRender(Component.java:949) ~[wicket-core-9.10.0.jar!/:9.10.0]
              at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1759) ~[wicket-core-9.10.0.jar!/:9.10.0]
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hobrom Andi Huber
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment