Uploaded image for project: 'Immutant'
  1. Immutant
  2. IMMUTANT-311

Immutant web loses track of registered handlers after (require ... :reload-all)

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Done
    • 1.0.0.Beta2, 1.0.0.cr1
    • 1.0.0
    • None
    • Hide

      (web/start "/" some-handler)
      (require '[namespace-with-ref-to-immutant.web] :reload-all)
      (web/stop "/") ;; log message: WARN [immutant.web.internal] (MSC service thread 1-5) Attempted to deregister request handler at sub-context path: /* , but none found
      (web/start "/" another-handler) ;; exception: IllegalArgumentException JBWEB000250: Child container with name immutant.ring.this-app./* already exists org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java:794)

      ;; the (require ... :reload-all) replaces the contents of immutant.web.internal/servlet-info with an empty map.

      Show
      (web/start "/" some-handler) (require ' [namespace-with-ref-to-immutant.web] :reload-all) (web/stop "/") ;; log message: WARN [immutant.web.internal] (MSC service thread 1-5) Attempted to deregister request handler at sub-context path: /* , but none found (web/start "/" another-handler) ;; exception: IllegalArgumentException JBWEB000250: Child container with name immutant.ring.this-app./* already exists org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java:794) ;; the (require ... :reload-all) replaces the contents of immutant.web.internal/servlet-info with an empty map.

    Description

      Using a (require ... :reload-all) on a namespace that refers to immutant.web can get immutant into a state where it can't unregister ring handlers. It forgets about all registered handlers, says they don't exist in calls to web/stop, but subsequent calls to web/start will throw an exception.

      Attachments

        Activity

          People

            tcrawley Toby Crawley (Inactive)
            mgaare_jira Michael Gaare (Inactive)
            Archiver:
            ranumula@redhat.com Raju Anumula

            Dates

              Created:
              Updated:
              Resolved:
              Archived: