JIRA and CAS

C

cyber1boy

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
 
D

domianx

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




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
 
L

Lew

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

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


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.
 
C

cyber1boy

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



cyber1boy

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




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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top