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

deprecated properties are not resolved

    Details

      Description

      After changes for MCR-858 Closed got applied it show, that our deprecated.properties just produce a warning but fail to resolve the right property. See log in external link for full info:

      12:03:45,356 [tp2052249870-17] WARN  common.config.MCRConfiguration - DEPRECATED: Developer should rename property MCR.URN.SubNamespace.UBL.NISSBuilder to MCR.URN.SubNamespace.Default.NISSBuilder
      12:03:45,356 [tp2052249870-17] ERROR servlets.MCRStartEditorServlet - Error while executing method saddnbn
      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.mycore.frontend.servlets.MCRStartEditorServlet.doGetPost(MCRStartEditorServlet.java:306)
      	at org.mycore.frontend.servlets.MCRServlet.doGet(MCRServlet.java:193)
      	at org.mycore.frontend.servlets.MCRServlet.render(MCRServlet.java:443)
      	at org.mycore.frontend.servlets.MCRServlet.processRenderingPhase(MCRServlet.java:405)
      	at org.mycore.frontend.servlets.MCRServlet.doGetPost(MCRServlet.java:309)
      	at org.mycore.frontend.servlets.MCRServlet.doGet(MCRServlet.java:166)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:751)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1666)
      	at org.mycore.frontend.filter.MCRWebAppBaseFilter.doFilter(MCRWebAppBaseFilter.java:46)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1645)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:564)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:554)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199)
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98)
      	at org.eclipse.jetty.server.Server.handle(Server.java:461)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
      	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.mycore.common.config.MCRConfigurationException: Configuration property MCR.URN.SubNamespace.UBL.NISSBuilder is not set
      	at org.mycore.common.config.MCRConfiguration.getString(MCRConfiguration.java:608)
      	at org.mycore.common.config.MCRConfiguration.getSingleInstanceOf(MCRConfiguration.java:566)
      	at org.mycore.common.config.MCRConfiguration.getSingleInstanceOf(MCRConfiguration.java:592)
      	at org.mycore.urn.services.MCRURNManager.buildURN(MCRURNManager.java:196)
      	at org.mycore.frontend.servlets.MCRStartEditorServlet.saddnbn(MCRStartEditorServlet.java:372)
      	... 35 more
      

      We need to check this functionality JUnit and provide a fix.

        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: