Uploaded image for project: 'MyCoRe'
  1. MCR-1158

MCRLanguageFactory may fail to initialize if database is not (yet) ready

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2015.11
    • Fix Version/s: 2016.02
    • Component/s: mycore-base
    • Labels:
      None

      Description

      SCHWERWIEGEND: Servlet.service() for servlet [MCRStaticXEditorFileServlet] in context with path [/mir] threw exception [Servlet execution threw an exception] with root cause
      java.lang.NullPointerException
      	at org.mycore.backend.hibernate.MCRHIBConnection.getSession(MCRHIBConnection.java:102)
      	at org.mycore.datamodel.classifications2.impl.MCRCategoryDAOImpl.getCategory(MCRCategoryDAOImpl.java:194)
      	at org.mycore.datamodel.language.MCRLanguageFactory.buildLanguagesFromClassification(MCRLanguageFactory.java:244)
      	at org.mycore.datamodel.language.MCRLanguageFactory.readLanguageClassification(MCRLanguageFactory.java:232)
      	at org.mycore.datamodel.language.MCRLanguageFactory.initLanguages(MCRLanguageFactory.java:164)
      	at org.mycore.datamodel.language.MCRLanguageFactory.getLanguage(MCRLanguageFactory.java:113)
      	at org.mycore.datamodel.language.MCRLanguageFactory.<clinit>(MCRLanguageFactory.java:101)
      	at org.mycore.services.i18n.MCRCombinedResourceBundleControl.<init>(MCRCombinedResourceBundleControl.java:50)
      	at org.mycore.services.i18n.MCRTranslation.<clinit>(MCRTranslation.java:71)
      	at org.mycore.frontend.servlets.MCRServlet.getSession(MCRServlet.java:235)
      	at org.mycore.frontend.servlets.MCRServlet.doGetPost(MCRServlet.java:302)
      	at org.mycore.frontend.servlets.MCRServlet.doGet(MCRServlet.java:150)
      

        Attachments

          Activity

            People

            • Assignee:
              yagee Thomas Scheffler
              Reporter:
              yagee Thomas Scheffler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: