[
https://issues.apache.org/jira/browse/KNOX-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dilli Arumugam updated KNOX-158:
--------------------------------
Description:
Hitting EmptyStackException while getting webhcat job queue in secure cluster
Using curl command
curl -v -k -i -u guest:guest-password -X GET
https://localhost:8443/gateway/sandbox/templeton/v1/queue
Snippet from gateway console
13/09/25 07:21:06 DEBUG http.headers: >> GET /templeton/v1/queue?doAs=guest
HTTP/1.1
13/09/25 07:21:06 DEBUG http.headers: >> Host: localhost:8443
13/09/25 07:21:06 DEBUG http.headers: >> Accept: */*
13/09/25 07:21:06 DEBUG http.headers: >> User-Agent: curl/7.24.0
(x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
13/09/25 07:21:06 DEBUG http.headers: >> Cookie:
hadoop.auth="u=knox&p=knox/[email protected]&t=kerberos&e=1380154736701&s=IlZuv3ShpnomJ7S5F0ho6BEb9gQ="
13/09/25 07:21:06 DEBUG http.headers: >> Connection: Keep-Alive
13/09/25 07:21:26 DEBUG http.wire: << "HTTP/1.1 200 OK[\r][\n]"
13/09/25 07:21:26 DEBUG http.wire: << "Content-Type: application/json[\r][\n]"
13/09/25 07:21:26 DEBUG http.wire: << "Transfer-Encoding: chunked[\r][\n]"
13/09/25 07:21:26 DEBUG http.wire: << "Server: Jetty(7.6.0.v20120127)[\r][\n]"
13/09/25 07:21:26 DEBUG http.wire: << "[\r][\n]"
13/09/25 07:21:26 DEBUG conn.DefaultClientConnection: Receiving response:
HTTP/1.1 200 OK
13/09/25 07:21:26 DEBUG http.headers: << HTTP/1.1 200 OK
13/09/25 07:21:26 DEBUG http.headers: << Content-Type: application/json
13/09/25 07:21:26 DEBUG http.headers: << Transfer-Encoding: chunked
13/09/25 07:21:26 DEBUG http.headers: << Server: Jetty(7.6.0.v20120127)
13/09/25 07:21:26 DEBUG client.DefaultHttpClient: Connection can be kept alive
indefinitely
13/09/25 07:21:26 INFO hadoop.gateway: Dispatch response status: 200
13/09/25 07:21:26 DEBUG http.wire: << "1A[\r][\n]"
13/09/25 07:21:26 DEBUG http.wire: << "["job_1380115296973_0001"]"
13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
java.util.EmptyStackException
13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
javax.servlet.ServletException: java.util.EmptyStackException
13/09/25 07:21:26 DEBUG servlet.AdviceFilter: Filter execution resulted in an
unexpected Exception (not IOException or ServletException as the Filter API
recommends). Wrapping in ServletException and propagating.
13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException:
java.security.PrivilegedActionException: javax.servlet.ServletException:
java.util.EmptyStackException
13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException:
java.security.PrivilegedActionException: javax.servlet.ServletException:
java.util.EmptyStackException
13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException:
java.security.PrivilegedActionException: javax.servlet.ServletException:
java.util.EmptyStackException
This snippet indicates webhcat responded with 200 ok but Knox runs into
EmptyStackException.
> EmptyStackException while getting webhcat job queue in secure cluster
> ---------------------------------------------------------------------
>
> Key: KNOX-158
> URL: https://issues.apache.org/jira/browse/KNOX-158
> Project: Apache Knox
> Issue Type: Bug
> Environment: Hitting EmptyStackException while getting webhcat job
> queue in secure cluster
> Using curl command
> curl -v -k -i -u guest:guest-password -X GET
> https://localhost:8443/gateway/sandbox/templeton/v1/queue
> Snippet from gateway console
> 13/09/25 07:21:06 DEBUG http.headers: >> GET /templeton/v1/queue?doAs=guest
> HTTP/1.1
> 13/09/25 07:21:06 DEBUG http.headers: >> Host: localhost:8443
> 13/09/25 07:21:06 DEBUG http.headers: >> Accept: */*
> 13/09/25 07:21:06 DEBUG http.headers: >> User-Agent: curl/7.24.0
> (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
> 13/09/25 07:21:06 DEBUG http.headers: >> Cookie:
> hadoop.auth="u=knox&p=knox/[email protected]&t=kerberos&e=1380154736701&s=IlZuv3ShpnomJ7S5F0ho6BEb9gQ="
> 13/09/25 07:21:06 DEBUG http.headers: >> Connection: Keep-Alive
> 13/09/25 07:21:26 DEBUG http.wire: << "HTTP/1.1 200 OK[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "Content-Type: application/json[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "Transfer-Encoding: chunked[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "Server: Jetty(7.6.0.v20120127)[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "[\r][\n]"
> 13/09/25 07:21:26 DEBUG conn.DefaultClientConnection: Receiving response:
> HTTP/1.1 200 OK
> 13/09/25 07:21:26 DEBUG http.headers: << HTTP/1.1 200 OK
> 13/09/25 07:21:26 DEBUG http.headers: << Content-Type: application/json
> 13/09/25 07:21:26 DEBUG http.headers: << Transfer-Encoding: chunked
> 13/09/25 07:21:26 DEBUG http.headers: << Server: Jetty(7.6.0.v20120127)
> 13/09/25 07:21:26 DEBUG client.DefaultHttpClient: Connection can be kept
> alive indefinitely
> 13/09/25 07:21:26 INFO hadoop.gateway: Dispatch response status: 200
> 13/09/25 07:21:26 DEBUG http.wire: << "1A[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "["job_1380115296973_0001"]"
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> java.util.EmptyStackException
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> javax.servlet.ServletException: java.util.EmptyStackException
> 13/09/25 07:21:26 DEBUG servlet.AdviceFilter: Filter execution resulted in an
> unexpected Exception (not IOException or ServletException as the Filter API
> recommends). Wrapping in ServletException and propagating.
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException:
> java.security.PrivilegedActionException: javax.servlet.ServletException:
> java.util.EmptyStackException
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException:
> java.security.PrivilegedActionException: javax.servlet.ServletException:
> java.util.EmptyStackException
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException:
> java.security.PrivilegedActionException: javax.servlet.ServletException:
> java.util.EmptyStackException
> This snippet indicates webhcat responded with 200 ok but Knox runs into
> EmptyStackException.
> Reporter: Dilli Arumugam
> Priority: Critical
>
> Hitting EmptyStackException while getting webhcat job queue in secure cluster
> Using curl command
> curl -v -k -i -u guest:guest-password -X GET
> https://localhost:8443/gateway/sandbox/templeton/v1/queue
> Snippet from gateway console
> 13/09/25 07:21:06 DEBUG http.headers: >> GET /templeton/v1/queue?doAs=guest
> HTTP/1.1
> 13/09/25 07:21:06 DEBUG http.headers: >> Host: localhost:8443
> 13/09/25 07:21:06 DEBUG http.headers: >> Accept: */*
> 13/09/25 07:21:06 DEBUG http.headers: >> User-Agent: curl/7.24.0
> (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
> 13/09/25 07:21:06 DEBUG http.headers: >> Cookie:
> hadoop.auth="u=knox&p=knox/[email protected]&t=kerberos&e=1380154736701&s=IlZuv3ShpnomJ7S5F0ho6BEb9gQ="
> 13/09/25 07:21:06 DEBUG http.headers: >> Connection: Keep-Alive
> 13/09/25 07:21:26 DEBUG http.wire: << "HTTP/1.1 200 OK[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "Content-Type: application/json[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "Transfer-Encoding: chunked[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "Server: Jetty(7.6.0.v20120127)[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "[\r][\n]"
> 13/09/25 07:21:26 DEBUG conn.DefaultClientConnection: Receiving response:
> HTTP/1.1 200 OK
> 13/09/25 07:21:26 DEBUG http.headers: << HTTP/1.1 200 OK
> 13/09/25 07:21:26 DEBUG http.headers: << Content-Type: application/json
> 13/09/25 07:21:26 DEBUG http.headers: << Transfer-Encoding: chunked
> 13/09/25 07:21:26 DEBUG http.headers: << Server: Jetty(7.6.0.v20120127)
> 13/09/25 07:21:26 DEBUG client.DefaultHttpClient: Connection can be kept
> alive indefinitely
> 13/09/25 07:21:26 INFO hadoop.gateway: Dispatch response status: 200
> 13/09/25 07:21:26 DEBUG http.wire: << "1A[\r][\n]"
> 13/09/25 07:21:26 DEBUG http.wire: << "["job_1380115296973_0001"]"
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> java.util.EmptyStackException
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> javax.servlet.ServletException: java.util.EmptyStackException
> 13/09/25 07:21:26 DEBUG servlet.AdviceFilter: Filter execution resulted in an
> unexpected Exception (not IOException or ServletException as the Filter API
> recommends). Wrapping in ServletException and propagating.
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException:
> java.security.PrivilegedActionException: javax.servlet.ServletException:
> java.util.EmptyStackException
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException:
> java.security.PrivilegedActionException: javax.servlet.ServletException:
> java.util.EmptyStackException
> 13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter:
> javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException:
> java.security.PrivilegedActionException: javax.servlet.ServletException:
> java.util.EmptyStackException
> This snippet indicates webhcat responded with 200 ok but Knox runs into
> EmptyStackException.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira