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

Going to the Main.WebHome page on a wiki with an empty database generates a NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0 RC5
    • 1.0 RC3
    • {Unused} Core
    • None

    Description

      com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.CalendarEvent
      Wrapped Exception: Error number 13012 in 3: Exception while saving links
      Wrapped Exception: null
              at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:314)
              at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:100)
              at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:94)
              at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:895)
              at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(CalendarPlugin.java:84)
              at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java:293)
              at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:132)
              at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:71)
              at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:97)
              at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:710)
              at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:664)
              at com.xpn.xwiki.XWiki.<init>(XWiki.java:567)
              at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:282)
              at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
              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:118)
              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)
      
      
      Wrapped Exception:
      
      com.xpn.xwiki.XWikiException: Error number 13012 in 3: Exception while saving links
      Wrapped Exception: null
              at com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:1491)
              at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:305)
              at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:100)
              at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:94)
              at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:895)
              at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(CalendarPlugin.java:84)
              at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java:293)
              at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:132)
              at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:71)
              at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:97)
              at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:710)
              at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:664)
              at com.xpn.xwiki.XWiki.<init>(XWiki.java:567)
              at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:282)
              at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
              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:118)
              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)
      
      
      Wrapped Exception:
      
      java.lang.NullPointerException
              at java.util.Hashtable.put(Hashtable.java:396)
              at com.xpn.xwiki.XWikiContext.setDoc(XWikiContext.java:158)
              at com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:1470)
              at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:305)
              at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:100)
              at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:94)
              at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:895)
              at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(CalendarPlugin.java:84)
              at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java:293)
              at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:132)
              at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:71)
              at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:97)
              at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:710)
              at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:664)
              at com.xpn.xwiki.XWiki.<init>(XWiki.java:567)
              at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:282)
              at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
              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:118)
              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

        Activity

          People

            sdumitriu Sergiu Dumitriu
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: