Uploaded image for project: '{RETIRED} XWiki Enterprise Manager'
  1. {RETIRED} XWiki Enterprise Manager
  2. XEM-76

NullPointerException when accessing the first time to a virtual wiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.0 M2
    • Wiki management
    • None
    • XEM 1.0_M2
      JDK 1.5.0_14
      MySQL Server 5.0.45
      Driver JDBC Connector/J 5.1.5
      Tomcat 5.5.25

    Description

      After creating a virtual wiki, the first time you access it there is the following exception :

      javax.servlet.ServletException
      org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)

      cause mère

      java.lang.NullPointerException
      com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.updateApplicationsTranslation(ApplicationManager.java:326)
      com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify(ApplicationManager.java:126)
      com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46)
      com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:112)
      com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960)
      com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935)
      com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.checkClassTemplateDocument(AbstractSuperClass.java:530)
      com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.check(AbstractSuperClass.java:370)
      com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplicationClass.getInstance(XWikiApplicationClass.java:223)
      com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify(ApplicationManager.java:119)
      com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46)
      com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:112)
      com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960)
      com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935)
      com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.checkClassSheetDocument(AbstractSuperClass.java:477)
      com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.check(AbstractSuperClass.java:369)
      com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplicationClass.getInstance(XWikiApplicationClass.java:223)
      com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify(ApplicationManager.java:119)
      com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46)
      com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:112)
      com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960)
      com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935)
      com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.checkClassDocument(AbstractSuperClass.java:404)
      com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.check(AbstractSuperClass.java:368)
      com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplicationClass.getInstance(XWikiApplicationClass.java:223)
      com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify(ApplicationManager.java:119)
      com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46)
      com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:112)
      com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960)
      com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935)
      com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2391)
      com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:365)
      com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:344)
      com.xpn.xwiki.XWiki.getXWiki(XWiki.java:460)
      com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)

      But the second time is fine. There is no more exception and everything works perfectly.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              agoncal Antonio Goncalves
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: