You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/04/04 14:12:59 UTC

DO NOT REPLY [Bug 30551] - New version of JK Connector(1.2.6) does not seem to be working for POST requests.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30551>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30551


john.smart@caris.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Additional Comments From john.smart@caris.com  2005-04-04 14:12 -------
This bug is certainly happening, as originally described. I have repeated as
follows:
IIS box: WinXP SP1, IIS6, JK 1.2.8 or 1.2.10
Tomcat box: WinXP SP2, Tomcat 4.1.27 or 4.1.29
workers.properties and uriworkers.properties and URL as described by OP

Tomcat says:
4-Apr-2005 9:02:06 AM org.apache.jk.common.HandlerRequest invoke
SEVERE: Error decoding request
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
        at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:548)
        at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:486)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:652)
        at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:289)
        at
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:528)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:365)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
        at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
        at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
        at java.lang.Thread.run(Thread.java:534)
12 34 02 77 02 04 00 08 48 54 54 50 2f 31 2e 31  | .4.w....HTTP/1.1
00 00 20 2f 65 78 61 6d 70 6c 65 73 2f 73 65 72  | .. /examples/ser
76 6c 65 74 2f 53 65 73 73 69 6f 6e 45 78 61 6d  | vlet/SessionExam
70 6c 65 00 00 0e 31 39 32 2e 31 36 38 2e 32 30  | ple...192.168.20
30 2e 39 30 00 00 0e 31 39 32 2e 31 36 38 2e 32  | 0.90...192.168.2
30 30 2e 39 30 00 00 0c 6a 73 6d 61 72 74 74 65  | 00.90...jsmartte
73 74 78 70 00 00 50 00 00 0b a0 01 00 63 74 65  | stxp..P...?..cte
78 74 2f 78 6d 6c 2c 61 70 70 6c 69 63 61 74 69  | xt/xml,applicati
6f 6e 2f 78 6d 6c 2c 61 70 70 6c 69 63 61 74 69  | on/xml,applicati
6f 6e 2f 78 68 74 6d 6c 2b 78 6d 6c 2c 74 65 78  | on/xhtml+xml,tex
74 2f 68 74 6d 6c 3b 71 3d 30 2e 39 2c 74 65 78  | t/html;q=0.9,tex
74 2f 70 6c 61 69 6e 3b 71 3d 30 2e 38 2c 69 6d  | t/plain;q=0.8,im
61 67 65 2f 70 6e 67 2c 2a 2f 2a 3b 71 3d 30 2e  | age/png,*/*;q=0.
35 00 a0 06 00 0a 6b 65 65 70 2d 61 6c 69 76 65  | 5.?...keep-alive
00 a0 0b 00 0c 6a 73 6d 61 72 74 74 65 73 74 78  | .?...jsmarttestx
70 00 a0 0d 00 7e 68 74 74 70 3a 2f 2f 6a 73 6d  | p.?..~http://jsm
61 72 74 74 65 73 74 78 70 2f 65 78 61 6d 70 6c  | arttestxp/exampl
65 73 2f 73 65 72 76 6c 65 74 2f 53 65 73 73 69  | es/servlet/Sessi
6f 6e 45 78 61 6d 70 6c 65 3b 6a 73 65 73 73 69  | onExample;jsessi
6f 6e 69 64 3d 33 35 39 36 36 33 39 45 38 41 44  | onid=3596639E8AD
41 31 32 41 45 43 44 39 37 30 39 44 46 43 38 30  | A12AECD9709DFC80
31 42 36 30 44 3f 64 61 74 61 6e 61 6d 65 3d 65  | 1B60D?dataname=e
72 77 65 72 26 64 61 74 61 76 61 6c 75 65 3d 77  | rwer&datavalue=w
65 72 77 65 00 a0 0e 00 54 4d 6f 7a 69 6c 6c 61  | erwe.?..TMozilla
2f 35 2e 30 20 28 57 69 6e 64 6f 77 73 3b 20 55  | /5.0 (Windows; U
3b 20 57 69 6e 64 6f 77 73 20 4e 54 20 35 2e 31  | ; Windows NT 5.1
3b 20 65 6e 2d 55 53 3b 20 72 76 3a 31 2e 37 2e  | ; en-US; rv:1.7.
35 29 20 47 65 63 6b 6f 2f 32 30 30 34 31 31 30  | 5) Gecko/2004110
37 20 46 69 72 65 66 6f 78 2f 31 2e 30 00 a0 09  | 7 Firefox/1.0.?.
00 2b 4a 53 45 53 53 49 4f 4e 49 44 3d 33 35 39  | .+JSESSIONID=359
36 36 33 39 45 38 41 44 41 31 32 41 45 43 44 39  | 6639E8ADA12AECD9
37 30 39 44 46 43 38 30 31 42 36 30 44 00 a0 08  | 709DFC801B60D.?.
00 02 33 32 00 a0 07 00 21 61 70 70 6c 69 63 61  | ..32.?..!applica
74 69 6f 6e 2f 78 2d 77 77 77 2d 66 6f 72 6d 2d  | tion/x-www-form-
75 72 6c 65 6e 63 6f 64 65 64 00 a0 03 00 0c 67  | urlencoded.?...g
7a 69 70 2c 64 65 66 6c 61 74 65 00 a0 02 00 1e  | zip,deflate.?...
49 53 4f 2d 38 38 35 39 2d 31 2c 75 74 66 2d 38  | ISO-8859-1,utf-8
3b 71 3d 30 2e 37 2c 2a 3b 71 3d 30 2e 37 00 00  | ;q=0.7,*;q=0.7..
0a 6b 65 65 70 2d 61 6c 69 76 65 00 00 03 33 30  | .keep-alive...30
30 00 03 00 00 00 04 00 00 00 ff                 | 0.........?
4-Apr-2005 9:02:06 AM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2


I note that comment#2 has used W2K to try to repeat, but OP (and I) are
experiencing this on WinXP. I used a W2K setup last week at client site and did
not notice this problem. Could be that it does not happen on W2K.

JK_IIS.log seems to me just to be saying it's sending request but doesn't get
anything back. I shall include this anyhow:

[Mon Apr 04 09:01:40 2005] [0212:3740] [debug] HttpFilterProc::jk_isapi_plugin.c
(824): check if [/examples/servlet/SessionExample] is points to the web-inf
directory
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug] HttpFilterProc::jk_isapi_plugin.c
(842): [/examples/servlet/SessionExample] is a servlet url - should redirect to test
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug]
wc_get_worker_for_name::jk_worker.c (94): found a worker test
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug]
HttpExtensionProc::jk_isapi_plugin.c (974): got a worker for name test
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug] ajp_get_endpoint::jk_ajp_common.c
(2132): acquired connection cache slot=0
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug]
ajp_marshal_into_msgb::jk_ajp_common.c (551): ajp marshaling done
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug] ajp_service::jk_ajp_common.c
(1646): processing with 3 retries
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug] jk_open_socket::jk_connect.c
(317): socket TCP_NODELAY set to On
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug] jk_open_socket::jk_connect.c
(415): trying to connect socket 376 to 192.168.200.90:8009
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug] jk_open_socket::jk_connect.c
(441): socket 376 connected to 192.168.200.90:8009
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug]
ajp_connect_to_endpoint::jk_ajp_common.c (842): connected sd = 376 to
192.168.200.90:8009
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (898): sending to ajp13 pos=4
len=635 max=8192
[Mon Apr 04 09:01:40 2005] [0212:3740] [debug] ajp_send_request::jk_ajp_common.c
(1240): request body to send 32 - request body to resend 0
[Mon Apr 04 09:02:40 2005] [0212:3740] [error] read::jk_isapi_plugin.c (584):
ReadClient failed with 0000274c
[Mon Apr 04 09:02:40 2005] [0212:3740] [info] 
ajp_read_into_msg_buff::jk_ajp_common.c (1105): Error receiving data from client
failed. Connection aborted or network problems
[Mon Apr 04 09:02:40 2005] [0212:3740] [info]  ajp_service::jk_ajp_common.c
(1716): Sending request to tomcat failed, because of client error without
recovery in send loop 0
[Mon Apr 04 09:02:40 2005] [0212:3740] [debug]
HttpExtensionProc::jk_isapi_plugin.c (987): service() returned OK
[Mon Apr 04 09:02:40 2005] [0212:3740] [debug] ajp_done::jk_ajp_common.c (2046):
recycling connection cache slot=0 for worker test


Other: other aspects of IIS-Tomcat redirection seem to be working well. POST
does work when Tomcat accessed directly via port 8080. 

Using GET may not be an option for us, so it would be very helpful if JK would
work properly with POST. Thankyou.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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