https://bz.apache.org/bugzilla/show_bug.cgi?id=57674

--- Comment #12 from Christopher Schultz <ch...@christopherschultz.net> ---
Running the example JSP I posted on my Mac gives me no output at all: the
server returns "Content-Length: 0" (probably httpd adding that, since there is
no Content-Length header sent by the JSP or Tomcat).

Requesting the JSP resource via the BIO HTTP connector yields the expected
output.

Here's the [debug] output from mod_jk when I get zero bytes back:

[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
map_uri_to_worker_ext::jk_uri_worker_map.c (1179): Attempting to map URI
'/examples/test.jsp' from 2 maps
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
find_match::jk_uri_worker_map.c (978): Attempting to map context URI
'/examples/*=broken' source 'JkMount'
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
find_match::jk_uri_worker_map.c (991): Found a wildchar match
'/examples/*=broken'
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
jk_handler::mod_jk.c (2823): Into handler jakarta-servlet worker=broken
r->proxyreq=0
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
wc_get_worker_for_name::jk_worker.c (119): found a worker broken
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
wc_maintain::jk_worker.c (348): Maintaining worker myworker
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
wc_maintain::jk_worker.c (348): Maintaining worker lb
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
maintain_workers::jk_lb_worker.c (760): decay with 2^2
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
wc_maintain::jk_worker.c (348): Maintaining worker test-worker
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
wc_maintain::jk_worker.c (348): Maintaining worker broken
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
wc_get_name_for_type::jk_worker.c (303): Found worker type 'ajp13'
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
init_ws_service::mod_jk.c (1196): Service protocol=HTTP/1.1 method=GET
ssl=false host=(null) addr=::1 name=localhost port=80 auth=(null) user=(null)
laddr=::1 raddr=::1 uaddr=::1 uri=/examples/test.jsp
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
ajp_get_endpoint::jk_ajp_common.c (3351): (broken) acquired connection pool
slot=0 after 0 retries
[Tue Mar 10 12:46:06.517 2015] [1213:140735223407360] [debug]
ajp_marshal_into_msgb::jk_ajp_common.c (684): (broken) ajp marshaling done
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_service::jk_ajp_common.c (2586): processing broken with 2 retries
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_send_request::jk_ajp_common.c (1722): (broken) no usable connection found,
will create a new one.
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
jk_open_socket::jk_connect.c (675): socket TCP_NODELAY set to On
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
jk_open_socket::jk_connect.c (799): trying to connect socket 23 to ::1:8009
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
jk_open_socket::jk_connect.c (825): socket 23 [::1c1e:1f49:0:0:53443 ->
::e6f0:1e50:40d2:f2:8009] connected
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): sending to ajp13 pos=4
len=185 max=8192
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0000    12 34 00 B5 02
02 00 08 48 54 54 50 2F 31 2E 31  - .4......HTTP/1.1
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0010    00 00 12 2F 65
78 61 6D 70 6C 65 73 2F 74 65 73  - .../examples/tes
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0020    74 2E 6A 73 70
00 00 03 3A 3A 31 00 FF FF 00 09  - t.jsp...::1.....
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0030    6C 6F 63 61 6C
68 6F 73 74 00 00 50 00 00 04 A0  - localhost..P....
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0040    0E 00 0B 63 75
72 6C 2F 37 2E 33 37 2E 31 00 A0  - ...curl/7.37.1..
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0050    0B 00 09 6C 6F
63 61 6C 68 6F 73 74 00 A0 01 00  - ...localhost....
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0060    03 2A 2F 2A 00
A0 08 00 01 30 00 0A 00 0F 41 4A  - .*/*.....0....AJ
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0070    50 5F 52 45 4D
4F 54 45 5F 50 4F 52 54 00 00 05  - P_REMOTE_PORT...
[Tue Mar 10 12:46:06.518 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0080    35 33 34 34 32
00 0A 00 0E 41 4A 50 5F 4C 4F 43  - 53442....AJP_LOC
[Tue Mar 10 12:46:06.519 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 0090    41 4C 5F 41 44
44 52 00 00 03 3A 3A 31 00 0A 00  - AL_ADDR...::1...
[Tue Mar 10 12:46:06.519 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 00a0    10 4A 4B 5F 4C
42 5F 41 43 54 49 56 41 54 49 4F  - .JK_LB_ACTIVATIO
[Tue Mar 10 12:46:06.519 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1267): 00b0    4E 00 00 03 41
43 54 00 FF 00 00 00 00 00 00 00  - N...ACT.........
[Tue Mar 10 12:46:06.519 2015] [1213:140735223407360] [debug]
ajp_send_request::jk_ajp_common.c (1782): (broken) request body to send 0 -
request body to resend 0
[Tue Mar 10 12:46:06.529 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1462): received from ajp13
pos=0 len=61 max=8192
[Tue Mar 10 12:46:06.529 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1462): 0000    04 00 C8 00 02
4F 4B 00 00 02 00 07 52 75 6E 6E  - .....OK.....Runn
[Tue Mar 10 12:46:06.529 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1462): 0010    69 6E 67 00 00
04 74 72 75 65 00 A0 01 00 1D 74  - ing...true.....t
[Tue Mar 10 12:46:06.529 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1462): 0020    65 78 74 2F 70
6C 61 69 6E 3B 63 68 61 72 73 65  - ext/plain;charse
[Tue Mar 10 12:46:06.529 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1462): 0030    74 3D 49 53 4F
2D 38 38 35 39 2D 31 00 00 00 00  - t=ISO-8859-1....
[Tue Mar 10 12:46:06.529 2015] [1213:140735223407360] [debug]
ajp_unmarshal_response::jk_ajp_common.c (739): (broken) status = 200
[Tue Mar 10 12:46:06.529 2015] [1213:140735223407360] [debug]
ajp_unmarshal_response::jk_ajp_common.c (746): Number of headers is = 2
[Tue Mar 10 12:46:06.529 2015] [1213:140735223407360] [debug]
ajp_unmarshal_response::jk_ajp_common.c (802): (broken) Header[0] [Running] =
[true]
[Tue Mar 10 12:46:06.529 2015] [1213:140735223407360] [debug]
ajp_unmarshal_response::jk_ajp_common.c (802): (broken) Header[1]
[Content-Type] = [text/plain;charset=ISO-8859-1]
[Tue Mar 10 12:46:06.530 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1462): received from ajp13
pos=0 len=2 max=8192
[Tue Mar 10 12:46:06.530 2015] [1213:140735223407360] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1462): 0000    05 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00  - ................
[Tue Mar 10 12:46:06.530 2015] [1213:140735223407360] [warn]
ajp_process_callback::jk_ajp_common.c (2121): (broken) AJP13 protocol: Reuse is
set to false
[Tue Mar 10 12:46:06.530 2015] [1213:140735223407360] [debug]
ajp_reset_endpoint::jk_ajp_common.c (851): (broken) resetting endpoint with
socket 23 (socket shutdown)
[Tue Mar 10 12:46:06.530 2015] [1213:140735223407360] [debug]
ajp_abort_endpoint::jk_ajp_common.c (821): (broken) aborting endpoint with
socket 23
[Tue Mar 10 12:46:06.531 2015] [1213:140735223407360] [debug]
jk_shutdown_socket::jk_connect.c (932): About to shutdown socket 23
[::1c1e:1f49:0:0:53443 -> ::e6f0:1e50:40d2:f2:8009]
[Tue Mar 10 12:46:06.534 2015] [1213:140735223407360] [debug]
jk_is_input_event::jk_connect.c (1406): error event during poll on socket 23
[errno=22] (event=16)
[Tue Mar 10 12:46:06.534 2015] [1213:140735223407360] [debug]
jk_shutdown_socket::jk_connect.c (1016): Shutdown socket 23
[::1c1e:1f49:0:0:53443 -> ::e6f0:1e50:40d2:f2:8009] and read 0 lingering bytes
in 0 sec.
[Tue Mar 10 12:46:06.534 2015] [1213:140735223407360] [debug]
ajp_done::jk_ajp_common.c (3282): recycling connection pool for worker broken
and socket -1
[Tue Mar 10 12:46:06.534 2015] [1213:140735223407360] [debug]
jk_handler::mod_jk.c (2975): Service finished with status=200 for worker=broken

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to