JIRA and CAS

Discussion in 'Java' started by cyber1boy, Feb 19, 2008.

  1. cyber1boy

    cyber1boy Guest

    Hi,

    I installed JIRA and Central Authentification Service.
    Everythink work fine, but I have one problem during first starting
    application.

    When I call JIRA than I got exception :
    java.lang.IllegalStateException: Cannot create a session after the response
    has been committed

    Details :
    System Error
    A system error has occurred.

    If this problem persists - please notify your JIRA administrator of this
    problem.

    If you are an administrator, please try submitting this problem via the
    Support Request Page

    Else, please create a support issue on our support system at
    http://support.atlassian.com with the following information:

    1.. a description of your problem
    2.. cut & paste the error and system information found below
    3.. attach the application server log file (
    C:\WINDOWS\system32\atlassian-jira.log )

    Cause:
    java.lang.IllegalStateException: Cannot create a session after the response
    has been committed

    Stack Trace: [hide]

    java.lang.IllegalStateException: Cannot create a session after the response
    has been committed
    at org.apache.catalina.connector.Request.doGetSession(Request.java:2195)
    at org.apache.catalina.connector.Request.getSession(Request.java:2017)
    at
    org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:822)
    at
    org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
    at
    org.soulwing.cas.filter.AbstractValidationFilter.redirectToLogin(AbstractValidationFilter.java:345)
    at
    org.soulwing.cas.filter.AbstractValidationFilter.redirectOnNoTicket(AbstractValidationFilter.java:290)
    at
    org.soulwing.cas.filter.AbstractValidationFilter.doHttpFilter(AbstractValidationFilter.java:209)
    at
    org.soulwing.cas.filter.AbstractValidationFilter.doFilter(AbstractValidationFilter.java:174)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at
    org.soulwing.cas.filter.SimpleBypassFilter.doHttpFilter(SimpleBypassFilter.java:116)
    at
    org.soulwing.cas.filter.SimpleBypassFilter.doFilter(SimpleBypassFilter.java:95)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.soulwing.cas.filter.LogoutFilter.doHttpFilter(LogoutFilter.java:298)
    at
    org.soulwing.cas.filter.SessionBypassFilter.doHttpFilter(SessionBypassFilter.java:119)
    at
    org.soulwing.cas.filter.SessionBypassFilter.doFilter(SessionBypassFilter.java:97)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Unknown Source)

    Any idea ?

    cyber1boy
     
    cyber1boy, Feb 19, 2008
    #1
    1. Advertising

  2. cyber1boy

    Guest

    I've got exactly the same problem... any solutions yet ?




    On 19 Feb., 13:29, "cyber1boy" <> wrote:
    > Hi,
    >
    > I installed JIRA and Central Authentification Service.
    > Everythink work fine, but I have one problem during first starting
    > application.
    >
    > When I call JIRA than I got exception :
    >  java.lang.IllegalStateException: Cannot create a session after the response
    > has been committed
    >
    > Details :
    > System Error
    > A system error has occurred.
    >
    > If this problem persists - please notify your JIRA administrator of this
    > problem.
    >
    > If you are an administrator, please try submitting this problem via the
    > Support Request Page
    >
    > Else, please create a support issue on our support system athttp://support..atlassian.comwith the following information:
    >
    >   1.. a description of your problem
    >   2.. cut & paste the error and system information found below
    >   3.. attach the application server log file (
    > C:\WINDOWS\system32\atlassian-jira.log )
    >
    > Cause:
    > java.lang.IllegalStateException: Cannot create a session after the response
    > has been committed
    >
    > Stack Trace: [hide]
    >
    > java.lang.IllegalStateException: Cannot create a session after the response
    > has been committed
    >         at org.apache.catalina.connector.Request.doGetSession(Request.java:2195)
    >         at org.apache.catalina.connector.Request.getSession(Request.java:2017)
    >         at
    > org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:8­22)
    >         at
    > org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:8­33)
    >         at
    > org.soulwing.cas.filter.AbstractValidationFilter.redirectToLogin(AbstractVa­lidationFilter.java:345)
    >         at
    > org.soulwing.cas.filter.AbstractValidationFilter.redirectOnNoTicket(Abstrac­tValidationFilter.java:290)
    >         at
    > org.soulwing.cas.filter.AbstractValidationFilter.doHttpFilter(AbstractValid­ationFilter.java:209)
    >         at
    > org.soulwing.cas.filter.AbstractValidationFilter.doFilter(AbstractValidatio­nFilter.java:174)
    >         at
    > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­nFilterChain.java:202)
    >         at
    > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­hain.java:173)
    >         at
    > org.soulwing.cas.filter.SimpleBypassFilter.doHttpFilter(SimpleBypassFilter..­java:116)
    >         at
    > org.soulwing.cas.filter.SimpleBypassFilter.doFilter(SimpleBypassFilter.java­:95)
    >         at
    > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­nFilterChain.java:202)
    >         at
    > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­hain.java:173)
    >         at org.soulwing.cas.filter.LogoutFilter.doHttpFilter(LogoutFilter.java:298)
    >         at
    > org.soulwing.cas.filter.SessionBypassFilter.doHttpFilter(SessionBypassFilte­r.java:119)
    >         at
    > org.soulwing.cas.filter.SessionBypassFilter.doFilter(SessionBypassFilter.ja­va:97)
    >         at
    > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­nFilterChain.java:202)
    >         at
    > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­hain.java:173)
    >         at
    > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­ava:213)
    >         at
    > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­ava:178)
    >         at
    > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12­6)
    >         at
    > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10­5)
    >         at
    > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­a:107)
    >         at
    > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    >         at
    > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    >         at
    > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn­ection(Http11Protocol.java:744)
    >         at
    > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja­va:527)
    >         at
    > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW­orkerThread.java:80)
    >         at
    > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja­va:684)
    >         at java.lang.Thread.run(Unknown Source)
    >
    > Any idea ?
    >
    > cyber1boy
     
    , Feb 21, 2008
    #2
    1. Advertising

  3. cyber1boy

    Lew Guest

    wrote:
    > I've got exactly the same problem... any solutions yet ?


    Please do not top-post. Use trim-and-inline posting.

    "cyber1boy" wrote:
    >> When I call JIRA than I got exception :
    >> java.lang.IllegalStateException: Cannot create a session after the response
    >> has been committed


    I'm not familiar with the specific products, and absent the relevant code I
    cannot tell precisely what caused the problem, but generally the message
    refers to an attempt to create a session or otherwise modify the response
    after the first part of the response has been sent back to the client.

    Something is trying to re-open the output stream after it was already written to.

    Is there a servlet filter involved that might be writing to the response
    instead of merely forwarding to the next request processor?

    Googling around for the error message (always a good thing to do in such
    cases, BTW) indicates that this can happen if certain frameworks (Struts,
    Spring) attempt to post an error message into the response after dealing with
    another error that broke the request-handling flow, perhaps without cleanly
    exiting the logic that got interrupted.

    I see other messages relating to JIRA and this error in my search results.
    However, they were in the minority - there were reports of this message from
    the use of all kinds of frameworks.

    The problem often happens when custome code makes a framework call that takes
    the response object and writes to it under the hood, then itself tries to
    'getSession()' or otherwise perform processing that has to happen strictly
    within the request-processing phase. It also happens when one writes to the
    response, then issues a RequestDispatcher forward() call.

    GIYF.

    --
    Lew
     
    Lew, Feb 21, 2008
    #3
  4. cyber1boy

    cyber1boy Guest

    I didn't solve this problem.
    I don't know what is the problem. The version of JIRA is 3.10.2.



    cyber1boy

    <> wrote in message
    news:...
    I've got exactly the same problem... any solutions yet ?




    On 19 Feb., 13:29, "cyber1boy" <> wrote:
    > Hi,
    >
    > I installed JIRA and Central Authentification Service.
    > Everythink work fine, but I have one problem during first starting
    > application.
    >
    > When I call JIRA than I got exception :
    > java.lang.IllegalStateException: Cannot create a session after the
    > response
    > has been committed
    >
    > Details :
    > System Error
    > A system error has occurred.
    >
    > If this problem persists - please notify your JIRA administrator of this
    > problem.
    >
    > If you are an administrator, please try submitting this problem via the
    > Support Request Page
    >
    > Else, please create a support issue on our support system
    > athttp://support.atlassian.comwith the following information:
    >
    > 1.. a description of your problem
    > 2.. cut & paste the error and system information found below
    > 3.. attach the application server log file (
    > C:\WINDOWS\system32\atlassian-jira.log )
    >
    > Cause:
    > java.lang.IllegalStateException: Cannot create a session after the
    > response
    > has been committed
    >
    > Stack Trace: [hide]
    >
    > java.lang.IllegalStateException: Cannot create a session after the
    > response
    > has been committed
    > at org.apache.catalina.connector.Request.doGetSession(Request.java:2195)
    > at org.apache.catalina.connector.Request.getSession(Request.java:2017)
    > at
    > org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:8­22)
    > at
    > org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:8­33)
    > at
    > org.soulwing.cas.filter.AbstractValidationFilter.redirectToLogin(AbstractVa­lidationFilter.java:345)
    > at
    > org.soulwing.cas.filter.AbstractValidationFilter.redirectOnNoTicket(Abstrac­tValidationFilter.java:290)
    > at
    > org.soulwing.cas.filter.AbstractValidationFilter.doHttpFilter(AbstractValid­ationFilter.java:209)
    > at
    > org.soulwing.cas.filter.AbstractValidationFilter.doFilter(AbstractValidatio­nFilter.java:174)
    > at
    > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­nFilterChain.java:202)
    > at
    > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­hain.java:173)
    > at
    > org.soulwing.cas.filter.SimpleBypassFilter.doHttpFilter(SimpleBypassFilter.­java:116)
    > at
    > org.soulwing.cas.filter.SimpleBypassFilter.doFilter(SimpleBypassFilter.java­:95)
    > at
    > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­nFilterChain.java:202)
    > at
    > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­hain.java:173)
    > at
    > org.soulwing.cas.filter.LogoutFilter.doHttpFilter(LogoutFilter.java:298)
    > at
    > org.soulwing.cas.filter.SessionBypassFilter.doHttpFilter(SessionBypassFilte­r.java:119)
    > at
    > org.soulwing.cas.filter.SessionBypassFilter.doFilter(SessionBypassFilter.ja­va:97)
    > at
    > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­nFilterChain.java:202)
    > at
    > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­hain.java:173)
    > at
    > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­ava:213)
    > at
    > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­ava:178)
    > at
    > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12­6)
    > at
    > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10­5)
    > at
    > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­a:107)
    > at
    > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    > at
    > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    > at
    > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn­ection(Http11Protocol.java:744)
    > at
    > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja­va:527)
    > at
    > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW­orkerThread.java:80)
    > at
    > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja­va:684)
    > at java.lang.Thread.run(Unknown Source)
    >
    > Any idea ?
    >
    > cyber1boy
     
    cyber1boy, Feb 25, 2008
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cas in python

    , Jul 5, 2006, in forum: Python
    Replies:
    2
    Views:
    379
  2. Elaine
    Replies:
    0
    Views:
    358
    Elaine
    Nov 27, 2007
  3. aminer
    Replies:
    1
    Views:
    332
    aminer
    Aug 26, 2012
  4. aminer
    Replies:
    1
    Views:
    323
    aminer
    Sep 14, 2012
  5. Lew
    Replies:
    9
    Views:
    327
    Kevin McMurtrie
    Sep 14, 2012
Loading...

Share This Page