Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2012

NPE when editing a blog post when database is Oracle

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 RC3
    • Fix Version/s: 1.2
    • Component/s: {Unused} Core
    • Labels:
      None
    • Similar issues:

      Description

      For some reason, going to http://localhost:8080/xwiki/bin/inline/Blog/WikiLaunch leads to the following error in the console:

      java.lang.NullPointerException
              at com.xpn.xwiki.objects.classes.DBListClass.makeList(DBListClass.java:75)
              at com.xpn.xwiki.objects.classes.DBListClass.getDBList(DBListClass.java:102)
              at com.xpn.xwiki.objects.classes.DBListClass.getList(DBListClass.java:118)
              at com.xpn.xwiki.objects.classes.ListClass.displaySelectEdit(ListClass.java:544)
              at com.xpn.xwiki.objects.classes.DBListClass.displayEdit(DBListClass.java:416)
              at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1345)
              at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1318)
              at com.xpn.xwiki.api.Document.display(Document.java:894)
              at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:251)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:176)
              at com.xpn.xwiki.XWiki.include(XWiki.java:3206)
              at com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:1409)
              at com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:1375)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:251)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:176)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:145)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:134)
              at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:407)
              at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335)
              at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607)
              at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335)
              at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:105)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:158)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
              at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
              at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
              at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
              at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
              at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
              at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
              at org.mortbay.http.HttpServer.service(HttpServer.java:954)
              at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
              at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
              at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
              at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
              at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
              at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      java.lang.NullPointerException
              at com.xpn.xwiki.objects.classes.DBListClass.makeList(DBListClass.java:75)
              at com.xpn.xwiki.objects.classes.DBListClass.getDBList(DBListClass.java:102)
              at com.xpn.xwiki.objects.classes.DBListClass.getMap(DBListClass.java:128)
              at com.xpn.xwiki.objects.classes.ListClass.displaySelectEdit(ListClass.java:545)
              at com.xpn.xwiki.objects.classes.DBListClass.displayEdit(DBListClass.java:416)
              at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1345)
              at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1318)
              at com.xpn.xwiki.api.Document.display(Document.java:894)
              at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:251)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:176)
              at com.xpn.xwiki.XWiki.include(XWiki.java:3206)
              at com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:1409)
              at com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:1375)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:251)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:176)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:145)
              at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:134)
              at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:407)
              at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335)
              at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607)
              at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
              at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335)
              at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:105)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:158)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
              at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
              at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
              at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
              at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
              at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
              at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
              at org.mortbay.http.HttpServer.service(HttpServer.java:954)
              at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
              at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
              at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
              at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
              at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
              at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: