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

Better diagnostics on NPE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.10.0
    • 1.11.0
    • Core
    • None

    Description

      • java.lang.NullPointerException
        -
      • org.apache.isis.core.runtime.system.persistence.PersistenceSession#ensurePojoAdapterMapConsistent(PersistenceSession.java:1413)
      • org.apache.isis.core.runtime.system.persistence.PersistenceSession#ensureMapsConsistent(PersistenceSession.java:1388)
      • org.apache.isis.core.runtime.system.persistence.PersistenceSession#createCollectionAdapter(PersistenceSession.java:1652)
      • org.apache.isis.core.runtime.system.persistence.PersistenceSession#adapterFor(PersistenceSession.java:1630)

      full stack trace:

      • org.apache.wicket.WicketRuntimeException
      • Error attaching this container for rendering: [Item [Component id = 8]]
      • org.apache.wicket.MarkupContainer#onBeforeRenderChildren(MarkupContainer.java:1696)
      • org.apache.wicket.Component#onBeforeRender(Component.java:3833)
      • org.apache.wicket.Component#internalBeforeRender(Component.java:949)
      • org.apache.wicket.Component#beforeRender(Component.java:1017)
      • org.apache.wicket.MarkupContainer#onBeforeRenderChildren(MarkupContainer.java:1684)
      • org.apache.wicket.Component#onBeforeRender(Component.java:3833)
      • org.apache.wicket.markup.repeater.AbstractRepeater#onBeforeRender(AbstractRepeater.java:143)
      • org.apache.wicket.Component#internalBeforeRender(Component.java:949)
        ...
      • org.apache.wicket.Component#beforeRender(Component.java:1017)
      • org.apache.wicket.Component#internalPrepareForRender(Component.java:2201)
      • org.apache.wicket.Page#internalPrepareForRender(Page.java:240)
      • org.apache.wicket.Component#render(Component.java:2290)
      • org.apache.wicket.Page#renderPage(Page.java:1024)
      • org.apache.wicket.request.handler.render.WebPageRenderer#renderPage(WebPageRenderer.java:139)
      • org.apache.wicket.request.handler.render.WebPageRenderer#respond(WebPageRenderer.java:229)
      • org.apache.wicket.core.request.handler.RenderPageRequestHandler#respond(RenderPageRequestHandler.java:175)
      • org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor#respond(RequestCycle.java:890)
      • org.apache.wicket.request.RequestHandlerStack#execute(RequestHandlerStack.java:64)
      • org.apache.wicket.request.cycle.RequestCycle#execute(RequestCycle.java:261)
      • org.apache.wicket.request.cycle.RequestCycle#processRequest(RequestCycle.java:218)
      • org.apache.wicket.request.cycle.RequestCycle#processRequestAndDetach(RequestCycle.java:289)
      • org.apache.wicket.protocol.http.WicketFilter#processRequestCycle(WicketFilter.java:259)
      • org.apache.wicket.protocol.http.WicketFilter#processRequest(WicketFilter.java:201)
      • org.apache.wicket.protocol.http.WicketFilter#doFilter(WicketFilter.java:282)
      • org.eclipse.jetty.servlet.ServletHandler$CachedChain#doFilter(ServletHandler.java:1667)
      • org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter#doFilter(IsisLogOnExceptionFilter.java:52)
      • org.eclipse.jetty.servlet.ServletHandler$CachedChain#doFilter(ServletHandler.java:1667)
      • org.apache.shiro.web.servlet.AbstractShiroFilter#executeChain(AbstractShiroFilter.java:449)
      • org.apache.shiro.web.servlet.AbstractShiroFilter$1#call(AbstractShiroFilter.java:365)
      • org.apache.shiro.subject.support.SubjectCallable#doCall(SubjectCallable.java:90)
      • org.apache.shiro.subject.support.SubjectCallable#call(SubjectCallable.java:83)
      • org.apache.shiro.subject.support.DelegatingSubject#execute(DelegatingSubject.java:383)
      • org.apache.shiro.web.servlet.AbstractShiroFilter#doFilterInternal(AbstractShiroFilter.java:362)
      • org.apache.shiro.web.servlet.OncePerRequestFilter#doFilter(OncePerRequestFilter.java:125)
      • org.eclipse.jetty.servlet.ServletHandler$CachedChain#doFilter(ServletHandler.java:1667)
      • org.eclipse.jetty.servlet.ServletHandler#doHandle(ServletHandler.java:581)
      • org.eclipse.jetty.server.handler.ScopedHandler#handle(ScopedHandler.java:143)
      • org.eclipse.jetty.security.SecurityHandler#handle(SecurityHandler.java:548)
      • org.eclipse.jetty.server.session.SessionHandler#doHandle(SessionHandler.java:226)
      • org.eclipse.jetty.server.handler.ContextHandler#doHandle(ContextHandler.java:1114)
      • org.eclipse.jetty.servlet.ServletHandler#doScope(ServletHandler.java:511)
      • org.eclipse.jetty.server.session.SessionHandler#doScope(SessionHandler.java:185)
      • org.eclipse.jetty.server.handler.ContextHandler#doScope(ContextHandler.java:1048)
      • org.eclipse.jetty.server.handler.ScopedHandler#handle(ScopedHandler.java:141)
      • org.eclipse.jetty.server.handler.ContextHandlerCollection#handle(ContextHandlerCollection.java:213)
      • org.eclipse.jetty.server.handler.HandlerCollection#handle(HandlerCollection.java:109)
      • org.eclipse.jetty.server.handler.HandlerWrapper#handle(HandlerWrapper.java:119)
      • org.eclipse.jetty.server.Server#handle(Server.java:517)
      • org.eclipse.jetty.server.HttpChannel#handle(HttpChannel.java:302)
      • org.eclipse.jetty.server.HttpConnection#onFillable(HttpConnection.java:242)
      • org.eclipse.jetty.io.AbstractConnection$ReadCallback#succeeded(AbstractConnection.java:245)
      • org.eclipse.jetty.io.FillInterest#fillable(FillInterest.java:95)
      • org.eclipse.jetty.io.SelectChannelEndPoint$2#run(SelectChannelEndPoint.java:75)
      • org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume#produceAndRun(ExecuteProduceConsume.java:213)
      • org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume#run(ExecuteProduceConsume.java:147)
      • org.eclipse.jetty.util.thread.QueuedThreadPool#runJob(QueuedThreadPool.java:654)
      • org.eclipse.jetty.util.thread.QueuedThreadPool$3#run(QueuedThreadPool.java:572)
      • java.lang.Thread#run(Thread.java:745)
        -
      • Caused by:
        -
      • java.lang.NullPointerException
        -
      • org.apache.isis.core.runtime.system.persistence.PersistenceSession#ensurePojoAdapterMapConsistent(PersistenceSession.java:1413)
      • org.apache.isis.core.runtime.system.persistence.PersistenceSession#ensureMapsConsistent(PersistenceSession.java:1388)
      • org.apache.isis.core.runtime.system.persistence.PersistenceSession#createCollectionAdapter(PersistenceSession.java:1652)
      • org.apache.isis.core.runtime.system.persistence.PersistenceSession#adapterFor(PersistenceSession.java:1630)
      • org.apache.isis.core.runtime.persistence.internal.RuntimeContextFromSession$2#adapterFor(RuntimeContextFromSession.java:106)
      • org.apache.isis.core.metamodel.specloader.specimpl.OneToManyAssociationDefault#get(OneToManyAssociationDefault.java:166)
      • org.apache.isis.core.runtime.memento.Memento#createAssociationData(Memento.java:130)
      • org.apache.isis.core.runtime.memento.Memento#createObjectData(Memento.java:122)
      • org.apache.isis.core.runtime.memento.Memento#createData(Memento.java:91)
      • org.apache.isis.core.runtime.memento.Memento#<init>(Memento.java:76)
      • org.apache.isis.viewer.wicket.model.mementos.ObjectAdapterMemento#init(ObjectAdapterMemento.java:255)
      • org.apache.isis.viewer.wicket.model.mementos.ObjectAdapterMemento#<init>(ObjectAdapterMemento.java:238)
      • org.apache.isis.viewer.wicket.model.mementos.ObjectAdapterMemento#createOrNull(ObjectAdapterMemento.java:57)
      • org.apache.isis.viewer.wicket.model.models.EntityModel#<init>(EntityModel.java:160)
      • org.apache.isis.viewer.wicket.ui.components.scalars.reference.ReferencePanel#syncWithInput(ReferencePanel.java:237)
      • org.apache.isis.viewer.wicket.ui.components.scalars.reference.ReferencePanel#onBeforeRenderWhenViewMode(ReferencePanel.java:209)
      • org.apache.isis.viewer.wicket.ui.components.scalars.ScalarPanelAbstract#onBeforeRender(ScalarPanelAbstract.java:198)
      • org.apache.wicket.Component#internalBeforeRender(Component.java:949)
      • org.apache.wicket.Component#beforeRender(Component.java:1017)
        ...
      • org.apache.wicket.Component#onBeforeRender(Component.java:3833)
      • org.apache.wicket.Page#onBeforeRender(Page.java:809)
      • org.apache.wicket.Component#internalBeforeRender(Component.java:949)
      • org.apache.wicket.Component#beforeRender(Component.java:1017)
      • org.apache.wicket.Component#internalPrepareForRender(Component.java:2201)
      • org.apache.wicket.Page#internalPrepareForRender(Page.java:240)
      • org.apache.wicket.Component#render(Component.java:2290)
      • org.apache.wicket.Page#renderPage(Page.java:1024)
      • org.apache.wicket.request.handler.render.WebPageRenderer#renderPage(WebPageRenderer.java:139)
      • org.apache.wicket.request.handler.render.WebPageRenderer#respond(WebPageRenderer.java:229)
      • org.apache.wicket.core.request.handler.RenderPageRequestHandler#respond(RenderPageRequestHandler.java:175)
      • org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor#respond(RequestCycle.java:890)
      • org.apache.wicket.request.RequestHandlerStack#execute(RequestHandlerStack.java:64)
      • org.apache.wicket.request.cycle.RequestCycle#execute(RequestCycle.java:261)
      • org.apache.wicket.request.cycle.RequestCycle#processRequest(RequestCycle.java:218)
      • org.apache.wicket.request.cycle.RequestCycle#processRequestAndDetach(RequestCycle.java:289)
      • org.apache.wicket.protocol.http.WicketFilter#processRequestCycle(WicketFilter.java:259)
      • org.apache.wicket.protocol.http.WicketFilter#processRequest(WicketFilter.java:201)
      • org.apache.wicket.protocol.http.WicketFilter#doFilter(WicketFilter.java:282)
      • org.eclipse.jetty.servlet.ServletHandler$CachedChain#doFilter(ServletHandler.java:1667)
      • org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter#doFilter(IsisLogOnExceptionFilter.java:52)
      • org.eclipse.jetty.servlet.ServletHandler$CachedChain#doFilter(ServletHandler.java:1667)
      • org.apache.shiro.web.servlet.AbstractShiroFilter#executeChain(AbstractShiroFilter.java:449)
      • org.apache.shiro.web.servlet.AbstractShiroFilter$1#call(AbstractShiroFilter.java:365)
      • org.apache.shiro.subject.support.SubjectCallable#doCall(SubjectCallable.java:90)
      • org.apache.shiro.subject.support.SubjectCallable#call(SubjectCallable.java:83)
      • org.apache.shiro.subject.support.DelegatingSubject#execute(DelegatingSubject.java:383)
      • org.apache.shiro.web.servlet.AbstractShiroFilter#doFilterInternal(AbstractShiroFilter.java:362)
      • org.apache.shiro.web.servlet.OncePerRequestFilter#doFilter(OncePerRequestFilter.java:125)
      • org.eclipse.jetty.servlet.ServletHandler$CachedChain#doFilter(ServletHandler.java:1667)
      • org.eclipse.jetty.servlet.ServletHandler#doHandle(ServletHandler.java:581)
      • org.eclipse.jetty.server.handler.ScopedHandler#handle(ScopedHandler.java:143)
      • org.eclipse.jetty.security.SecurityHandler#handle(SecurityHandler.java:548)
      • org.eclipse.jetty.server.session.SessionHandler#doHandle(SessionHandler.java:226)
      • org.eclipse.jetty.server.handler.ContextHandler#doHandle(ContextHandler.java:1114)
      • org.eclipse.jetty.servlet.ServletHandler#doScope(ServletHandler.java:511)
      • org.eclipse.jetty.server.session.SessionHandler#doScope(SessionHandler.java:185)
      • org.eclipse.jetty.server.handler.ContextHandler#doScope(ContextHandler.java:1048)
      • org.eclipse.jetty.server.handler.ScopedHandler#handle(ScopedHandler.java:141)
      • org.eclipse.jetty.server.handler.ContextHandlerCollection#handle(ContextHandlerCollection.java:213)
      • org.eclipse.jetty.server.handler.HandlerCollection#handle(HandlerCollection.java:109)
      • org.eclipse.jetty.server.handler.HandlerWrapper#handle(HandlerWrapper.java:119)
      • org.eclipse.jetty.server.Server#handle(Server.java:517)
      • org.eclipse.jetty.server.HttpChannel#handle(HttpChannel.java:302)
      • org.eclipse.jetty.server.HttpConnection#onFillable(HttpConnection.java:242)
      • org.eclipse.jetty.io.AbstractConnection$ReadCallback#succeeded(AbstractConnection.java:245)
      • org.eclipse.jetty.io.FillInterest#fillable(FillInterest.java:95)
      • org.eclipse.jetty.io.SelectChannelEndPoint$2#run(SelectChannelEndPoint.java:75)
      • org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume#produceAndRun(ExecuteProduceConsume.java:213)
      • org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume#run(ExecuteProduceConsume.java:147)
      • org.eclipse.jetty.util.thread.QueuedThreadPool#runJob(QueuedThreadPool.java:654)
      • org.eclipse.jetty.util.thread.QueuedThreadPool$3#run(QueuedThreadPool.java:572)
      • java.lang.Thread#run(Thread.java:745)

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: