Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6151

DebugBar/PageSizeDebugPanel throws NullPointerException (need wrapper exception with more detail)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.2.0
    • 7.3.0, 8.0.0-M1
    • wicket-devutils
    • None
    • Tomcat 7, JDK 8, Linux Mint 17.3 64bit, Spring 4.2.5

    Description

      Probably due to unserializable model somewhere... in which case Wicket should give an explanation error.

      org.apache.wicket.WicketRuntimeException
      Exception in rendering component: [Component id = data]
      at org.apache.wicket.Component.internalRenderComponent(Component.java:2589)
      at org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:60)
      at org.apache.wicket.Component.internalRender(Component.java:2380)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1524)
      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1734)
      at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1657)
      at org.apache.wicket.markup.html.link.AbstractLink.onComponentTagBody(AbstractLink.java:82)
      at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
      at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1698)
      at org.apache.wicket.Component.internalRender(Component.java:2380)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1524)
      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1734)
      at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:797)
      at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
      at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
      at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1698)
      at org.apache.wicket.Component.internalRender(Component.java:2380)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1524)
      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1734)
      at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1657)
      at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
      at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1698)
      at org.apache.wicket.Component.internalRender(Component.java:2380)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java:584)
      at org.apache.wicket.markup.html.list.ListView.renderChild(ListView.java:573)
      at org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:102)
      at org.apache.wicket.Component.internalRender(Component.java:2380)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1524)
      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1734)
      at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1657)
      at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
      at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1698)
      at org.apache.wicket.Component.internalRender(Component.java:2380)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1524)
      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1734)
      at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:797)
      at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
      at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
      at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1698)
      at org.apache.wicket.Component.internalRender(Component.java:2380)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1524)
      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1734)
      at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1657)
      at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
      at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1698)
      at org.apache.wicket.Component.internalRender(Component.java:2380)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1524)
      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1759)
      at org.apache.wicket.Page.onRender(Page.java:879)
      at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:141)
      at org.apache.wicket.Component.internalRender(Component.java:2380)
      at org.apache.wicket.Component.render(Component.java:2308)
      at org.apache.wicket.Page.renderPage(Page.java:1018)
      at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:124)
      at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:236)
      at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
      java.lang.RuntimeException
      An error occurred while getting the model object for Component: [Component id = data, page = id.co.bippo.cart.web.pub.ProductCartViewPage, path = 32:dev:content:contributors:3:contrib:link:data.Label, isVisible = true, isVersioned = true, markup = [markup = jar:file:/home/anton/space_spring/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/id.co.bippo.springapp/WEB-INF/lib/wicket-devutils-7.2.0.jar!/org/apache/wicket/devutils/debugbar/StandardDebugPanel.html <span wicket:id="data"></span>, index = 0, current = '<span wicket:id="data">' (line 0, column 0)]]
      at org.apache.wicket.Component.getDefaultModelObject(Component.java:1631)
      at org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1654)
      at org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:115)
      at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
      at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)Caused by: 
      java.lang.NullPointerException
      at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106)
      at org.apache.wicket.serialize.java.JavaSerializer.deserialize(JavaSerializer.java:105)
      at org.apache.wicket.core.util.lang.WicketObjects.cloneObject(WicketObjects.java:313)
      at org.apache.wicket.core.util.lang.WicketObjects.sizeof(WicketObjects.java:377)
      at org.apache.wicket.devutils.debugbar.PageSizeDebugPanel$2.getObject(PageSizeDebugPanel.java:96)
      at org.apache.wicket.devutils.debugbar.PageSizeDebugPanel$2.getObject(PageSizeDebugPanel.java:89)
      at org.apache.wicket.Component.getDefaultModelObject(Component.java:1626)
      

      Follow-up to WICKET-5807

      Original reporter: AntonKurniawan

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              ceefour Hendy Irawan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: