Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2124

infinispan-gridfs-webdav example NPE because InitServlet is not started as first servlet

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.2.0.ALPHA2
    • 5.1.5.FINAL
    • Demos and Tutorials
    • None

      I get NPE in my Tomcat 6.0.35 when I try to access the servlet.
      (GridStore Line 56)

      Both (CacheManagerHolder.cacheContainer and CacheManagerHolder.dataCacheName) are null, because the InitServlet wasn't started or the init(..) wasn't processed.

      I'd suggest to rewrite the InitServlet as ServletContextListener to use the
      contextInit(..) and contextDestroyed(..) for these CacheManagerHolder init and shutdown stuff.

            tfromm_jira Thomas Fromm (Inactive)
            tfromm_jira Thomas Fromm (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: