Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3151

NPE if Tomcat temp directory is missing

    Details

    • Complexity:
      Low

      Description

      I deleted my Tomcat temp directory, and upon restarting Tomcat, when OpenMRS started up it threw this error while loading modules:

      java.lang.NullPointerException
      at org.openmrs.util.OpenmrsClassLoader.deleteOldLibCaches(OpenmrsClassLoader.java:579)
      at org.openmrs.util.OpenmrsClassLoader.getLibCacheFolder(OpenmrsClassLoader.java:529)
      at org.openmrs.module.ModuleClassLoader.getLibCacheFolderForModule(ModuleClassLoader.java:242)
      at org.openmrs.module.ModuleClassLoader.getUrls(ModuleClassLoader.java:160)
      at org.openmrs.module.ModuleClassLoader.<init>(ModuleClassLoader.java:120)
      at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:469)
      at org.openmrs.api.context.Daemon$1.run(Daemon.java:56)

        Attachments

          Activity

            People

            • Assignee:
              sunbiz Saptarshi Purkayastha
              Reporter:
              mseaton Mike Seaton
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h