Re: Problem with Transfer-Encoding: chunked (and AJP?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On 06/23/2014 04:27 PM, Christopher Schultz wrote: Björn, On 6/23/14, 7:52 AM, Björn Höfling wrote: Hi Mark, On 06/20/2014 02:07 PM, Mark Thomas wrote: On 20/06/2014 11:58, Björn Höfling wrote: Hello, summary of my Problem: When a client POSTs with Tranfer-Encoding:chunked, my server is not processing the request. Full details: I have an Apache 2.2.10 connected via AJP to a Tomcat 8.0.3 (Java 1.7.x) or Tomcat 6.0.18 (Java 1.6.x) (I change the AJP worker port to switch between the two Tomcats). Try with the latest 8.0.x. Thanks for the hint. Should have thought of it before asking the list! Updating takes some time, I will provide feedback when all is done. $ tar xzf /path/to/tomcat-...tar.gz $ $CATALINA_HOME/bin/catalina.sh stop $ export CATALINA_BASE=/path/to/new-tomcat $ $CATALINA_HOME/bin/catalina.sh start It shouldn't take very long. Local standard installation is quick, yes. But when the server is part of a bigger company with several instances, special installation scripts, own libraries and outsourced testers to verify, other tasks gaining more priority, ... You know. To keep it short: I updated Tomcat to newest version 8.0.9 (which is also the first official stable release, nice) and the problem is solved now: I can access the server with chunked encoding. Thanks for your ongoing support, Björn -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlOtJ4cACgkQvyhstlk+X/32WACfaBCLRjrY7Wa8+lglZ6hbOFc3 vSYAoLcBm35T8MvFg+zMLwPf456nSjBN =zrvZ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Transfer-Encoding: chunked (and AJP?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Björn, On 6/27/14, 4:12 AM, Björn Höfling wrote: Hi, On 06/23/2014 04:27 PM, Christopher Schultz wrote: Björn, On 6/23/14, 7:52 AM, Björn Höfling wrote: Hi Mark, On 06/20/2014 02:07 PM, Mark Thomas wrote: On 20/06/2014 11:58, Björn Höfling wrote: Hello, summary of my Problem: When a client POSTs with Tranfer-Encoding:chunked, my server is not processing the request. Full details: I have an Apache 2.2.10 connected via AJP to a Tomcat 8.0.3 (Java 1.7.x) or Tomcat 6.0.18 (Java 1.6.x) (I change the AJP worker port to switch between the two Tomcats). Try with the latest 8.0.x. Thanks for the hint. Should have thought of it before asking the list! Updating takes some time, I will provide feedback when all is done. $ tar xzf /path/to/tomcat-...tar.gz $ $CATALINA_HOME/bin/catalina.sh stop $ export CATALINA_BASE=/path/to/new-tomcat $ $CATALINA_HOME/bin/catalina.sh start It shouldn't take very long. Local standard installation is quick, yes. But when the server is part of a bigger company with several instances, special installation scripts, own libraries and outsourced testers to verify, other tasks gaining more priority, ... You know. Umm... you did testing in production and not in a controlled lab where it's easy to make modifications? Yipes. TIP is the best ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTrbz2AAoJEBzwKT+lPKRYAuIP/AmqdBshYzWLbaCde9f4OaKO X9DOsc997yIbB30U9P8pzVHt8nppSW8nMGbrCHcmW0GZYNqi1cQcI/IeqHaX8ulI XIOlAUUx9debEVfXTmWwOG/KPJzV4m3qU4z8akwUUzQxFW0EoRUG92h5gAaQaCFa j5gWprHk3MMCWPPewdxOYL1rgcg38IbVDuGAnPWsZBdzQttA0JTB+cPU8wQ7UwuT RNNRExmtpj7hBfr9PIFFbudlM/VfS3GMDKwJo0Rh66CCE3Gl1JHuLba5dnlqo9g9 8V2Z39m8wCLRGttdSazGSRceCdzYt+W1V8ucUldXmZ+U0ER9s4sOP5l3/AOXvy0p Q7qS4yQ6x18EZUgfntbAR5yviS7bD7JrKB60gkkU03uv/1wxFxEKLeCdIY1UkTeg /IfyBpFeN5jnlYaApGGBvKmTfLDzSBMCoKrUzgpi/WkPtg248zz/r0SKLdx1uSs3 vRkMIH6LAftQ1MMl9GbAaj2pce+auK+0UjHvZGXn1gSl6g5M5wr9DB2PyGYcXd8z LxSgKDgNcZPDpf7Jhdjj2mjyq737SkyP2y0yF/0zPpRwzqtRL+9b7UIoQbG3TsEn uDtsgwLRNvI12C5XqRQFSt0kysrzaWRFNaxZgdNX8Jk4wj5t6umkt0W6/4xf9Gqj qJVCmrjH9AfWlOd70nsX =tn8b -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Transfer-Encoding: chunked (and AJP?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Mark, On 06/20/2014 02:07 PM, Mark Thomas wrote: On 20/06/2014 11:58, Björn Höfling wrote: Hello, summary of my Problem: When a client POSTs with Tranfer-Encoding:chunked, my server is not processing the request. Full details: I have an Apache 2.2.10 connected via AJP to a Tomcat 8.0.3 (Java 1.7.x) or Tomcat 6.0.18 (Java 1.6.x) (I change the AJP worker port to switch between the two Tomcats). Try with the latest 8.0.x. Thanks for the hint. Should have thought of it before asking the list! Updating takes some time, I will provide feedback when all is done. Björn -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlOoFQwACgkQvyhstlk+X/2SggCfaA6acXpwWc9RZcrMtL7+l7Dz NnMAoJTo5meqjA4zR25f1Io2WUCKmuRa =iExm -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Transfer-Encoding: chunked (and AJP?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Björn, On 6/23/14, 7:52 AM, Björn Höfling wrote: Hi Mark, On 06/20/2014 02:07 PM, Mark Thomas wrote: On 20/06/2014 11:58, Björn Höfling wrote: Hello, summary of my Problem: When a client POSTs with Tranfer-Encoding:chunked, my server is not processing the request. Full details: I have an Apache 2.2.10 connected via AJP to a Tomcat 8.0.3 (Java 1.7.x) or Tomcat 6.0.18 (Java 1.6.x) (I change the AJP worker port to switch between the two Tomcats). Try with the latest 8.0.x. Thanks for the hint. Should have thought of it before asking the list! Updating takes some time, I will provide feedback when all is done. $ tar xzf /path/to/tomcat-...tar.gz $ $CATALINA_HOME/bin/catalina.sh stop $ export CATALINA_BASE=/path/to/new-tomcat $ $CATALINA_HOME/bin/catalina.sh start It shouldn't take very long. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTqDlmAAoJEBzwKT+lPKRYetAP/jU1jbB04Bsv4ahKYeLd5OM0 79+WWwi5dMJ/VwGBG9zd5CbVyV00uqBrQ5vMa1C8cu1r5u6NHE+MDYakDBhzxNlQ 2d5O06RQtBEN7mMuiAGXb6tevgu44dEbUI4jRJMcNNrcPv2eIkkP5PPYmEOHlq8N hOtjyGwfUPeRtmreNemizBpIi0+jtFVkR4wdKVAdxzBvPOGt7zZ7F3iuWv+W8zsy croJSC4g1edG/lK+cJHtCN3yyCSUmcyqfsUBfhx543IkNgMwlcSfn7meFZmfJIuP ujMPlmlkq3M5M1WmDmxOPrHT8+GM+QmYom4yNuytMPOCmCXRLH8ecjAsY1ME0PGx rzZBNfrU0PKTTv9pN0V7S9u3CSwh6vYCTNRK0rROiyd2QRD6+yR5tXkyzCiBTBmb dl63S3V+c8qf9gVcsvYuSAML39SH9XvbNH3y2RniVGrIUd2k9tusdesTDRSlnzw8 Q6nb74anM0W6SBzpABAqROaPMQb68eupK6m/3wISqTB+jJvYtGpCb9PM8C1c8d63 SHHpCBnJoEhK2yyQhhTiC/sqkTmQDXzZ/rBKjhm8HqX5yLvGK3ByYF9P8lWONa6X R1fMZoJ9q5AHf3PkauynLP+RzNmpRxBVNCWrOSZwGgVTxLwf0HvzGGZQOt2BtLfb FdYpgO2qiSTmkDplpmGq =Xv8R -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Transfer-Encoding: chunked (and AJP?)
2014-06-23 18:27 GMT+04:00 Christopher Schultz ch...@christopherschultz.net: Thanks for the hint. Should have thought of it before asking the list! Updating takes some time, I will provide feedback when all is done. $ tar xzf /path/to/tomcat-...tar.gz $ $CATALINA_HOME/bin/catalina.sh stop $ export CATALINA_BASE=/path/to/new-tomcat 1) The above export command should be CATALINA_HOME, not CATALINA_BASE. 2) rm -rf $CATALINA_BASE/work/* $ $CATALINA_HOME/bin/catalina.sh start It shouldn't take very long. The official documentation is here: http://tomcat.apache.org/migration.html Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Problem with Transfer-Encoding: chunked (and AJP?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, summary of my Problem: When a client POSTs with Tranfer-Encoding:chunked, my server is not processing the request. Full details: I have an Apache 2.2.10 connected via AJP to a Tomcat 8.0.3 (Java 1.7.x) or Tomcat 6.0.18 (Java 1.6.x) (I change the AJP worker port to switch between the two Tomcats). Then I send the following request: telnet myapache 80 Trying a.b.c.d ... Connected to myapache Escape character is '^]'. POST /my/webservice HTTP/1.1 Authorization: Basic xyz= Content-Type: text/xml; charset=utf-8 Transfer-Encoding: chunked User-Agent: telnet/abc Host: myapache Accept: text/html, image/gif, image/jpeg, */*; q=.2 4 0 With the Tomcat 6, I see the follwing response, which is quite correct, because I did sent garbage and no valid xml to the Server: HTTP/1.1 500 Internal Server Error Date: Fri, 20 Jun 2014 09:22:37 GMT Server: Apache Content-Length: 472 Connection: close Content-Type: text/xml;charset=utf-8 ?xml version='1.0' encoding='UTF-8'?S:Envelope xmlns:S=http://schemas.xmlsoap.org/soap/envelope/;S:BodyS:Fault xmlns:ns4=http://www.w3.org/2003/05/soap-envelope;faultcodeS:Client/faultcodefaultstringCouldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'x' (code 120) in prolog; expected 'lt;' at [row,col {unknown-source}]: [1,1]/faultstring/S:Fault/S:Body/S:EnvelopeConnection to myapache closed by foreign host. AJP is in both instances configured via Connector port=xxx redirectPort=yyy enableLookups=false protocol=AJP/1.3 ... /Connector changing Protocol to org.apache.coyote.ajp.AjpProtocol did not change anything. When I try the same with Tomcat 8 connected, I don't get anything back from the Server. Instead, it waits indefinitely (expecting me to send something?). When I sent the request with a Conten-Length: header instead of Transfer-Encoding:chunked, I get a proper server-response. As I use the same Apache frontend and just change the Tomcat backend, I suspect the problem there. Though I'm not sure if this is a Tomcat error or a configuration problem, or a Java-version problem. I have little experience with the HTTP protocol, until now, it just worked and I didn't care :-) I searched the Internet for similar problems but could only find either ones where fixed had been introduced into Tomcat 7.x and/or where the problem was with server _response_. Do you have any ideas what's wrong here, where the error might be or how I can better understand it? Thanks for your help, Björn -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlOkE9EACgkQvyhstlk+X/1ZiQCbB/mCxoL3Ypo+Ter1ZJF951da EmYAn1V4KoC7/EEZ08M4xUjIOJj2/Lkc =u92T -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Transfer-Encoding: chunked (and AJP?)
Hi Björn, I think, the problem is the content-type, you're using. It is set to text/xml, but you don't send correct XML. The error messages seems also to be sent by some SOAP framework. Try sending some correct XML data. Best regards, Markus Am 20.06.2014 12:58, schrieb Björn Höfling: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, summary of my Problem: When a client POSTs with Tranfer-Encoding:chunked, my server is not processing the request. Full details: I have an Apache 2.2.10 connected via AJP to a Tomcat 8.0.3 (Java 1.7.x) or Tomcat 6.0.18 (Java 1.6.x) (I change the AJP worker port to switch between the two Tomcats). Then I send the following request: telnet myapache 80 Trying a.b.c.d ... Connected to myapache Escape character is '^]'. POST /my/webservice HTTP/1.1 Authorization: Basic xyz= Content-Type: text/xml; charset=utf-8 Transfer-Encoding: chunked User-Agent: telnet/abc Host: myapache Accept: text/html, image/gif, image/jpeg, */*; q=.2 4 0 With the Tomcat 6, I see the follwing response, which is quite correct, because I did sent garbage and no valid xml to the Server: HTTP/1.1 500 Internal Server Error Date: Fri, 20 Jun 2014 09:22:37 GMT Server: Apache Content-Length: 472 Connection: close Content-Type: text/xml;charset=utf-8 ?xml version='1.0' encoding='UTF-8'?S:Envelope xmlns:S=http://schemas.xmlsoap.org/soap/envelope/;S:BodyS:Fault xmlns:ns4=http://www.w3.org/2003/05/soap-envelope;faultcodeS:Client/faultcodefaultstringCouldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'x' (code 120) in prolog; expected 'lt;' at [row,col {unknown-source}]: [1,1]/faultstring/S:Fault/S:Body/S:EnvelopeConnection to myapache closed by foreign host. AJP is in both instances configured via Connector port=xxx redirectPort=yyy enableLookups=false protocol=AJP/1.3 ... /Connector changing Protocol to org.apache.coyote.ajp.AjpProtocol did not change anything. When I try the same with Tomcat 8 connected, I don't get anything back from the Server. Instead, it waits indefinitely (expecting me to send something?). When I sent the request with a Conten-Length: header instead of Transfer-Encoding:chunked, I get a proper server-response. As I use the same Apache frontend and just change the Tomcat backend, I suspect the problem there. Though I'm not sure if this is a Tomcat error or a configuration problem, or a Java-version problem. I have little experience with the HTTP protocol, until now, it just worked and I didn't care :-) I searched the Internet for similar problems but could only find either ones where fixed had been introduced into Tomcat 7.x and/or where the problem was with server _response_. Do you have any ideas what's wrong here, where the error might be or how I can better understand it? Thanks for your help, Björn -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlOkE9EACgkQvyhstlk+X/1ZiQCbB/mCxoL3Ypo+Ter1ZJF951da EmYAn1V4KoC7/EEZ08M4xUjIOJj2/Lkc =u92T -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Mit freundlichen Grüßen Markus Dörschmidt Software-Entwickler Markus Dörschmidt, m...@agnitas.de Fon: 089/552908-49, Fax: -69, http://www.agnitas.de *AGNITAS AG - e-mail marketing automation* Werner-Eckert-Straße 6, 81829 München *www.agnitas.de* http://www.agnitas.de Vorstand: Martin Aschoff, Helmut Kunkel, Robert Pietsch Vorsitzender des Aufsichtsrats: Dr. Reinhard Gaertner Registergericht München, HRB-Nummer 126 104, USt-IdNr. DE 201 88 33 28 http://www.agnitas.de/email - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Transfer-Encoding: chunked (and AJP?)
On 20/06/2014 11:58, Björn Höfling wrote: Hello, summary of my Problem: When a client POSTs with Tranfer-Encoding:chunked, my server is not processing the request. Full details: I have an Apache 2.2.10 connected via AJP to a Tomcat 8.0.3 (Java 1.7.x) or Tomcat 6.0.18 (Java 1.6.x) (I change the AJP worker port to switch between the two Tomcats). Try with the latest 8.0.x. Mark Then I send the following request: telnet myapache 80 Trying a.b.c.d ... Connected to myapache Escape character is '^]'. POST /my/webservice HTTP/1.1 Authorization: Basic xyz= Content-Type: text/xml; charset=utf-8 Transfer-Encoding: chunked User-Agent: telnet/abc Host: myapache Accept: text/html, image/gif, image/jpeg, */*; q=.2 4 0 With the Tomcat 6, I see the follwing response, which is quite correct, because I did sent garbage and no valid xml to the Server: HTTP/1.1 500 Internal Server Error Date: Fri, 20 Jun 2014 09:22:37 GMT Server: Apache Content-Length: 472 Connection: close Content-Type: text/xml;charset=utf-8 ?xml version='1.0' encoding='UTF-8'?S:Envelope xmlns:S=http://schemas.xmlsoap.org/soap/envelope/;S:BodyS:Fault xmlns:ns4=http://www.w3.org/2003/05/soap-envelope;faultcodeS:Client/faultcodefaultstringCouldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'x' (code 120) in prolog; expected 'lt;' at [row,col {unknown-source}]: [1,1]/faultstring/S:Fault/S:Body/S:EnvelopeConnection to myapache closed by foreign host. AJP is in both instances configured via Connector port=xxx redirectPort=yyy enableLookups=false protocol=AJP/1.3 ... /Connector changing Protocol to org.apache.coyote.ajp.AjpProtocol did not change anything. When I try the same with Tomcat 8 connected, I don't get anything back from the Server. Instead, it waits indefinitely (expecting me to send something?). When I sent the request with a Conten-Length: header instead of Transfer-Encoding:chunked, I get a proper server-response. As I use the same Apache frontend and just change the Tomcat backend, I suspect the problem there. Though I'm not sure if this is a Tomcat error or a configuration problem, or a Java-version problem. I have little experience with the HTTP protocol, until now, it just worked and I didn't care :-) I searched the Internet for similar problems but could only find either ones where fixed had been introduced into Tomcat 7.x and/or where the problem was with server _response_. Do you have any ideas what's wrong here, where the error might be or how I can better understand it? Thanks for your help, Björn - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Transfer-Encoding: chunked (and AJP?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Markus, On 6/20/14, 7:30 AM, Markus Dörschmidt wrote: Hi Björn, I think, the problem is the content-type, you're using. It is set to text/xml, but you don't send correct XML. The error messages seems also to be sent by some SOAP framework. Try sending some correct XML data. - -1 Tomcat and whatever SOAP framework should be responding appropriately. Anything else would represent a DOS vulnerability. If you read the OP, you'd know that the same SOAP framework works under Tomcat 6. That indicates a problem with Tomcat (which is likely solved: see markt's response). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTpEnUAAoJEBzwKT+lPKRYXHwP/R+UbMc0Ao3hA7yFGVE/4uGG 0mnde5UUQMrJH5Q0OelZzkGp3FAnRiZV1odlxUk+Pj+HxmZ2fQPKzYtrhihnF2l8 yTbfgymnXUy6Z5pn/gF4hQqwI0ImKWntHlvky8/Bx5SRPm75h8/yXXeCixTqxjvK N6tWGwUptVxTO9w+sEWjVE7zoBFUi+q8HktL3iyQ+STDWYCQvdhZmUYpLyQjY7TE M1lfeVl8GQ+g7ZKlwfbk3u9cDglpiclNXtFc0BN1Zn30qUfu6D+brqM4aJ2PiR/R pYQ6xZYeAtLDap5GWMA1a83VEF17ZvF0LlC3QFSNIsgnlrNfKKopAI5VAVecH9yp T0mz6WHsdvAvnq3SVNUrIY4zYFojUdZnVFqAGkOHZ4imucKUFMkkoO0sk/UKmhGx cTa+r+7TMixnCGQKpxiXUCoFI/7COirGIysBEWSfu/3Tha3ggHA9fKvpdFrNew0e Oo8hnXT7IUNMqB7Pu1lTB28LVx/vfNffPDRU3tqBe+2fQmipP2i1eXGYR6FSWv0X P/5HhOhHCP2/utyDZMTHhECKDLCUmK9ieSq9ZACbZmgnRjfVqNrpsy8AefvS+12H UDXZLcQQXgd8q/P2JbXLU1BPK0c5rVYhIjIVeEn2LcFw1LKZdNkSZXBoL/D9aG04 62NOd5mZKkFlWPzKGRED =Xh6L -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org