Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1078

Request binding throws exception when using forwards

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.3
    • 1.5.4
    • Servlet-Module
    • None

    Description

      java.lang.IllegalStateException: There is already an instance bound to this thread.
      at org.apache.deltaspike.servlet.impl.produce.RequestResponseHolder.bind(RequestResponseHolder.java:62)
      at org.apache.deltaspike.servlet.impl.produce.RequestResponseHolderListener.requestInitialized(RequestResponseHolderListener.java:33)

      This occurs e.g. if Tomcat Form Auth is used because:

      1) visit someUrl.xhtml; Tomcat fires #requestInitialized
      2) user isn't logged id; Tomcat sends an forward to login.xhtml and fires #requestInitialized again
      3) DS throws the exception
      4) #requestDestroyed is called

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            tandraschko Thomas Andraschko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: