when I use:

curl -c /tmp/cookiefile.txt -X POST -H "Authorization: Basic ADMIN" -H
'Content-Type: application/json'
http://localhost:7070/kylin/api/user/authentication

the command returns exception:

<html><head><title>Apache Tomcat/7.0.59 - Error report</title> </head><body>
HTTP Status 500 - Cannot create a session after the response has been
committed
<HR size="1" noshade="noshade"><p>*type* Exception report</p><p>*message*
<u>Cannot create a session after the response has been
committed</u></p><p>*description* <u>The server encountered an internal
error that prevented it from fulfilling this request.</u></p><p>*exception*
<pre>java.lang.IllegalStateException: Cannot create a session after the
response has been committed
        org.apache.catalina.connector.Request.doGetSession(Request.java:3002)
        org.apache.catalina.connector.Request.getSession(Request.java:2378)

org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:897)

javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)

org.apache.kylin.rest.filter.KylinApiFilter.logRequest(KylinApiFilter.java:80)

org.apache.kylin.rest.filter.KylinApiFilter.doFilterInternal(KylinApiFilter.java:69)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:205)
        com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:266)
</pre></p><p>*note* <u>The full stack trace of the root cause is available
in the Apache Tomcat/7.0.59 logs.</u></p><HR size="1" noshade="noshade">
Apache Tomcat/7.0.59
</body></html>

--
View this message in context: 
http://apache-kylin.74782.x6.nabble.com/About-kylin-restful-tp4678.html
Sent from the Apache Kylin mailing list archive at Nabble.com.

Reply via email to