Re: Tomcat JDBC Connection Pool - Stand Alone Logging
On 16 February 2017 17:26:18 GMT+00:00, Chris Keilitzwrote: >I've implemented Tomcat JDBC connection pool stand-alone, outside of >Tomcat >or any app server or container and cannot get the Juli logging working >- >console or file. The connection pool works great, but I cannot get >the >logging going. I've added CATALINA_HOME to the local directory and >have >added logging.properties file to the local lib and .conf directories, >but >still cannot get it to work. > >I know I'm missing somethinghoping one of you can me understand >what >I'm doing wrong, could try. Have you set the custom LogManager? Set the Tomcat startup scripts for examples. Without the custom LogManager the properties file needs to use the standard java.util.logging format rather than Tomcat custom extensions. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat JDBC Connection Pool - Stand Alone Logging
I will look into both suggestions, conflicting property files and the debug version. I am connecting to MS SQL Server 2008 R2 (SP1), using the sqljdbc41.jar file. The access to SQL Server works great, insert, updates, queries, stored procedures...no issues. I am just trying to activate the logging for the connection pool. On Thu, Feb 16, 2017 at 3:16 PM, Aurélien Terrestriswrote: > What database are you connecting to ? Oracle ? MySQL ? If Oracle, then > you're probably using its specific driver, and there is a debug version > (the "_g" version) that logs. > > According to you, what kind of log the Tomcat driver should write ? > > 2017-02-16 19:08 GMT+01:00 Chris Keilitz : > > > I'm assuming, once configured properly, the Tomcat JDBC connection pool > > would output log messages. Unfortunately, I currently get no console or > > file output...even after trying numerous logging.properties changes. > > > > I'm hoping for a little help to understand the proper way to configure a > > stand alone usage of Tomcat JDBC. > > > > On Thu, Feb 16, 2017 at 12:58 PM, Christopher Schultz < > > ch...@christopherschultz.net> wrote: > > > > > -BEGIN PGP SIGNED MESSAGE- > > > Hash: SHA256 > > > > > > Chris, > > > > > > On 2/16/17 12:26 PM, Chris Keilitz wrote: > > > > I've implemented Tomcat JDBC connection pool stand-alone, outside > > > > of Tomcat or any app server or container and cannot get the Juli > > > > logging working - console or file. The connection pool works > > > > great, but I cannot get the logging going. I've added > > > > CATALINA_HOME to the local directory and have added > > > > logging.properties file to the local lib and .conf directories, > > > > but still cannot get it to work. > > > > > > > > I know I'm missing somethinghoping one of you can me understand > > > > what I'm doing wrong, could try. > > > > > > When you say that the logging doesn't work, what exactly do you mean? > > > > > > "Adding CATALINA_HOME to the local directory" doesn't clarify anything. > > > > > > - -chris > > > -BEGIN PGP SIGNATURE- > > > Comment: GPGTools - http://gpgtools.org > > > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > > > > > iQIcBAEBCAAGBQJYpehVAAoJEBzwKT+lPKRYRIIQAL252B1PA+RdmD0kvxi4XGQw > > > 1nkfbUpLy3qnZlejj4AMxNZCmNsgxzSVKsuseZXSltiCvsidbuS1VJb+aZ6qI/mC > > > FaDdrORqA5MJ5JQxCBKF0KHNvm4/P8+7XLW7S0m+CCSUsJ6S4yUfq8soV+giM6vD > > > I3tEMfQscMnkj3wTzWqKKwY4rs6YJ+ILerwclGmMB1rtpO9lwGFBTj2p2M0NwPav > > > 9P7LESiUtZGaJMxlS+QFJW+u8xPqQTkQV2xf5ZVbeMZfKqtD14FWrgMzrlRyo27P > > > 0IhK1qs2I1EdWzPT7O2xEWpcKC9b6P2+su5YIjS4xwDOF9dsSBZfBLgKXhrm8gDf > > > JI+d0xgC80PzDZfQwv/Spo0J9U4sGPUp9+tTRjI4Ub8M8z4xG/gssNw7eG8RCOfU > > > NYIK/POB9QPTukUKyEPMXr/DYC7W3b0RP0yjH/yk+hcp3H3Iok/4GVoey8ydhYlT > > > fI5P7oq1FNXFVoupMEv77eqlzCc6V7CU0idMhjnSjM5Zoio9r+kbONg5oHDBlSDA > > > yXbPcDPORr+qux6hf73HK8kNH5ae059aF9T8lGC+uW5EyY4YAgQfrhle/3xk+Jub > > > sGeM8gpVt9eozlNFyZ4LqTXXNtBHzpw5LCTQa1TWS8UQm703+/0DxZmf0EgZwEn5 > > > pN0ov1UkJ4tcT7DA7E0w > > > =Xqes > > > -END PGP SIGNATURE- > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > > > >
Re: Tomcat JDBC Connection Pool - Stand Alone Logging
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 2/16/17 1:08 PM, Chris Keilitz wrote: > I'm assuming, once configured properly, the Tomcat JDBC connection > pool would output log messages. Unfortunately, I currently get no > console or file output...even after trying numerous > logging.properties changes. Specifically? Would you mind sharing your configuration? Also, where is your logging.properties file located, and what is the search path of your class loader? > I'm hoping for a little help to understand the proper way to > configure a stand alone usage of Tomcat JDBC. Having the tomcat-juli.jar library around plus a logging.properties file should be sufficient. You may have conflicting logging.properties files available to the classloader. - -chris > On Thu, Feb 16, 2017 at 12:58 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > Chris, > > On 2/16/17 12:26 PM, Chris Keilitz wrote: I've implemented Tomcat JDBC connection pool stand-alone, outside of Tomcat or any app server or container and cannot get the Juli logging working - console or file. The connection pool works great, but I cannot get the logging going. I've added CATALINA_HOME to the local directory and have added logging.properties file to the local lib and .conf directories, but still cannot get it to work. I know I'm missing somethinghoping one of you can me understand what I'm doing wrong, could try. > > When you say that the logging doesn't work, what exactly do you > mean? > > "Adding CATALINA_HOME to the local directory" doesn't clarify > anything. > > -chris >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYpgnxAAoJEBzwKT+lPKRY25kP/3OAnsBtLbqEEvLS7w5g500I i/t/BemhQHtlbU/ZGOg03zY5fxz0W9UqOcHMH5fwzZhq+eZZGf2pyCrGUkbdUCvf Xgxl9A5rXPE6paSIbCZh1tkttRhxeHvMun1rp+WRMvN9FOsdJ483ehEKRdjD4u4x iGsEqXC4g3u6Hu1TWppKlag/rWT1WTXot7hpwFaOsNFNI8LChIKBnuWlc75S5AKU xIcTWF1jRSX08L3SIFcLpCaOZ0O3F8128Dt1O4PwicOFe4oGg8vRI5qOE+38/Tj+ VjbXKsTAampybHbdrNd9aaSqt7/5d1xVtEeOgdvqpNMDepJchptobBBF6zDpD1TF 4ZEB61ZPAyG7tw9CwzMdvCylWhDXI/poeQf6M/h52n6DGqC4rShm9SR4u3W7VGWt Pez+2NG+KWenLn26R8abjj/WBJbYWsKIhgpxWRK3nQbT6D4P4tuDdHgZN3qO5I+s va5LXwhEoersiRFD72rekatPdtBOkprWPPZUDU4NqbthBTfbzH5oQVlczyHT+OAg GD/fw4m6aDw1nvHwVLM5HZAOpaSDByqdU9lajXyeARch8/+NXVokGZHmho2hyAOQ klRP1xrY/p07I4POLkf9DdO5QB1aJyOtRecTQd1971hXO+dR4/CV3UT5SjzwA7Db WCCdYHuGam5tWyQkqAdV =fEZ+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat JDBC Connection Pool - Stand Alone Logging
What database are you connecting to ? Oracle ? MySQL ? If Oracle, then you're probably using its specific driver, and there is a debug version (the "_g" version) that logs. According to you, what kind of log the Tomcat driver should write ? 2017-02-16 19:08 GMT+01:00 Chris Keilitz: > I'm assuming, once configured properly, the Tomcat JDBC connection pool > would output log messages. Unfortunately, I currently get no console or > file output...even after trying numerous logging.properties changes. > > I'm hoping for a little help to understand the proper way to configure a > stand alone usage of Tomcat JDBC. > > On Thu, Feb 16, 2017 at 12:58 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > Chris, > > > > On 2/16/17 12:26 PM, Chris Keilitz wrote: > > > I've implemented Tomcat JDBC connection pool stand-alone, outside > > > of Tomcat or any app server or container and cannot get the Juli > > > logging working - console or file. The connection pool works > > > great, but I cannot get the logging going. I've added > > > CATALINA_HOME to the local directory and have added > > > logging.properties file to the local lib and .conf directories, > > > but still cannot get it to work. > > > > > > I know I'm missing somethinghoping one of you can me understand > > > what I'm doing wrong, could try. > > > > When you say that the logging doesn't work, what exactly do you mean? > > > > "Adding CATALINA_HOME to the local directory" doesn't clarify anything. > > > > - -chris > > -BEGIN PGP SIGNATURE- > > Comment: GPGTools - http://gpgtools.org > > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > > > iQIcBAEBCAAGBQJYpehVAAoJEBzwKT+lPKRYRIIQAL252B1PA+RdmD0kvxi4XGQw > > 1nkfbUpLy3qnZlejj4AMxNZCmNsgxzSVKsuseZXSltiCvsidbuS1VJb+aZ6qI/mC > > FaDdrORqA5MJ5JQxCBKF0KHNvm4/P8+7XLW7S0m+CCSUsJ6S4yUfq8soV+giM6vD > > I3tEMfQscMnkj3wTzWqKKwY4rs6YJ+ILerwclGmMB1rtpO9lwGFBTj2p2M0NwPav > > 9P7LESiUtZGaJMxlS+QFJW+u8xPqQTkQV2xf5ZVbeMZfKqtD14FWrgMzrlRyo27P > > 0IhK1qs2I1EdWzPT7O2xEWpcKC9b6P2+su5YIjS4xwDOF9dsSBZfBLgKXhrm8gDf > > JI+d0xgC80PzDZfQwv/Spo0J9U4sGPUp9+tTRjI4Ub8M8z4xG/gssNw7eG8RCOfU > > NYIK/POB9QPTukUKyEPMXr/DYC7W3b0RP0yjH/yk+hcp3H3Iok/4GVoey8ydhYlT > > fI5P7oq1FNXFVoupMEv77eqlzCc6V7CU0idMhjnSjM5Zoio9r+kbONg5oHDBlSDA > > yXbPcDPORr+qux6hf73HK8kNH5ae059aF9T8lGC+uW5EyY4YAgQfrhle/3xk+Jub > > sGeM8gpVt9eozlNFyZ4LqTXXNtBHzpw5LCTQa1TWS8UQm703+/0DxZmf0EgZwEn5 > > pN0ov1UkJ4tcT7DA7E0w > > =Xqes > > -END PGP SIGNATURE- > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > >
Re: Tomcat JDBC Connection Pool - Stand Alone Logging
I'm assuming, once configured properly, the Tomcat JDBC connection pool would output log messages. Unfortunately, I currently get no console or file output...even after trying numerous logging.properties changes. I'm hoping for a little help to understand the proper way to configure a stand alone usage of Tomcat JDBC. On Thu, Feb 16, 2017 at 12:58 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 2/16/17 12:26 PM, Chris Keilitz wrote: > > I've implemented Tomcat JDBC connection pool stand-alone, outside > > of Tomcat or any app server or container and cannot get the Juli > > logging working - console or file. The connection pool works > > great, but I cannot get the logging going. I've added > > CATALINA_HOME to the local directory and have added > > logging.properties file to the local lib and .conf directories, > > but still cannot get it to work. > > > > I know I'm missing somethinghoping one of you can me understand > > what I'm doing wrong, could try. > > When you say that the logging doesn't work, what exactly do you mean? > > "Adding CATALINA_HOME to the local directory" doesn't clarify anything. > > - -chris > -BEGIN PGP SIGNATURE- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJYpehVAAoJEBzwKT+lPKRYRIIQAL252B1PA+RdmD0kvxi4XGQw > 1nkfbUpLy3qnZlejj4AMxNZCmNsgxzSVKsuseZXSltiCvsidbuS1VJb+aZ6qI/mC > FaDdrORqA5MJ5JQxCBKF0KHNvm4/P8+7XLW7S0m+CCSUsJ6S4yUfq8soV+giM6vD > I3tEMfQscMnkj3wTzWqKKwY4rs6YJ+ILerwclGmMB1rtpO9lwGFBTj2p2M0NwPav > 9P7LESiUtZGaJMxlS+QFJW+u8xPqQTkQV2xf5ZVbeMZfKqtD14FWrgMzrlRyo27P > 0IhK1qs2I1EdWzPT7O2xEWpcKC9b6P2+su5YIjS4xwDOF9dsSBZfBLgKXhrm8gDf > JI+d0xgC80PzDZfQwv/Spo0J9U4sGPUp9+tTRjI4Ub8M8z4xG/gssNw7eG8RCOfU > NYIK/POB9QPTukUKyEPMXr/DYC7W3b0RP0yjH/yk+hcp3H3Iok/4GVoey8ydhYlT > fI5P7oq1FNXFVoupMEv77eqlzCc6V7CU0idMhjnSjM5Zoio9r+kbONg5oHDBlSDA > yXbPcDPORr+qux6hf73HK8kNH5ae059aF9T8lGC+uW5EyY4YAgQfrhle/3xk+Jub > sGeM8gpVt9eozlNFyZ4LqTXXNtBHzpw5LCTQa1TWS8UQm703+/0DxZmf0EgZwEn5 > pN0ov1UkJ4tcT7DA7E0w > =Xqes > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Tomcat JDBC Connection Pool - Stand Alone Logging
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 2/16/17 12:26 PM, Chris Keilitz wrote: > I've implemented Tomcat JDBC connection pool stand-alone, outside > of Tomcat or any app server or container and cannot get the Juli > logging working - console or file. The connection pool works > great, but I cannot get the logging going. I've added > CATALINA_HOME to the local directory and have added > logging.properties file to the local lib and .conf directories, > but still cannot get it to work. > > I know I'm missing somethinghoping one of you can me understand > what I'm doing wrong, could try. When you say that the logging doesn't work, what exactly do you mean? "Adding CATALINA_HOME to the local directory" doesn't clarify anything. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYpehVAAoJEBzwKT+lPKRYRIIQAL252B1PA+RdmD0kvxi4XGQw 1nkfbUpLy3qnZlejj4AMxNZCmNsgxzSVKsuseZXSltiCvsidbuS1VJb+aZ6qI/mC FaDdrORqA5MJ5JQxCBKF0KHNvm4/P8+7XLW7S0m+CCSUsJ6S4yUfq8soV+giM6vD I3tEMfQscMnkj3wTzWqKKwY4rs6YJ+ILerwclGmMB1rtpO9lwGFBTj2p2M0NwPav 9P7LESiUtZGaJMxlS+QFJW+u8xPqQTkQV2xf5ZVbeMZfKqtD14FWrgMzrlRyo27P 0IhK1qs2I1EdWzPT7O2xEWpcKC9b6P2+su5YIjS4xwDOF9dsSBZfBLgKXhrm8gDf JI+d0xgC80PzDZfQwv/Spo0J9U4sGPUp9+tTRjI4Ub8M8z4xG/gssNw7eG8RCOfU NYIK/POB9QPTukUKyEPMXr/DYC7W3b0RP0yjH/yk+hcp3H3Iok/4GVoey8ydhYlT fI5P7oq1FNXFVoupMEv77eqlzCc6V7CU0idMhjnSjM5Zoio9r+kbONg5oHDBlSDA yXbPcDPORr+qux6hf73HK8kNH5ae059aF9T8lGC+uW5EyY4YAgQfrhle/3xk+Jub sGeM8gpVt9eozlNFyZ4LqTXXNtBHzpw5LCTQa1TWS8UQm703+/0DxZmf0EgZwEn5 pN0ov1UkJ4tcT7DA7E0w =Xqes -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JIO Connector support in Tomcat 8.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Amit, On 2/13/17 8:19 PM, Amit Pande wrote: > Thanks for a quick reply. > > What does our custom connector do? > > Well, we have a server program which is listening on a port which > is mandatory to be open/accessible for the outside world. Outside > world only talks to this component which in turn hands off (dup > system call) the socket to the other processes. Tomcat being one > such process. > > Our custom connector accepts the handed-off socket and then > resumes the normal processing done by Tomcat. Why not use a more traditional reverse-proxy, which already knows how to handle these kinds of protocols? > Now for NIO connector, seems we need to have a custom > implementation of the SocketChannel but not sure how it might > work. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYpeXnAAoJEBzwKT+lPKRY7bQQAKCiCfsy0HZLqRn3qY42IU3E Ab49WJTzbblJJAUF+ryn9jrjEOP/3m/a69r+2qotL2bv5L9qY1TBqNjyNgAzQ3b/ v/WAlDmzV51UUc6vG/1GcHgExgUMAHTLwQ0tvUIBAdcrMiX6EPE3J4/G0Q9T0eSb n6ap/WyL0AAPHrx13/xWQeVd1BByrqLiv6DA3+5VbbqewxBbGLUgL1gy/6DNSnCs lyTlTOqAnW8vN6vEpHW+7lDYgO1vgRwcfN2aZUzWFf8CSgHKhaG+zVOGWv67pbUy sZVmGpgc/v3Xny/sCrKxPTN2LeRIJRbkxffcgSThAmfCCKqswcpKK0XDAhwgVq5+ EXuz0DQ7LC5e85iIo38wZD7OSft5lf0Gp5UViLzys5WVBkaxdI7Gx/0HPPMJA4d3 681FilJm3hbd7ngXLX7is5ptnfIKgXgSrWotYjzZMTDHaWX6jvn8ygptXzOXHnJk Dz29gSUJ7Ciuxv39IS8vWNaZYmNx73nc3bCO+xRjoBzOzylznAw1wtzdH+kXvayY VINusuGur5NlyHERm4/NMQy+T0JSLYvMysEB5UWsUJR4LiAYAMPkNbgiG2sAW7MX EJwHQSPCySukb9ileiBI39HzX16cGpIn3RUpiCKzdBpRzKUtmXge5/48WeqCY5UG M7WwfZGBqtPeJUqfOybg =eMgR -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat JDBC Connection Pool - Stand Alone Logging
I've implemented Tomcat JDBC connection pool stand-alone, outside of Tomcat or any app server or container and cannot get the Juli logging working - console or file. The connection pool works great, but I cannot get the logging going. I've added CATALINA_HOME to the local directory and have added logging.properties file to the local lib and .conf directories, but still cannot get it to work. I know I'm missing somethinghoping one of you can me understand what I'm doing wrong, could try.
Re: AW: logging to syslog
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Karsten, On 2/15/17 1:02 AM, Schöke, Karsten wrote: > Many thx for you hint. > > Where is the right place for this configuration, to log all > messages from catalina.out to syslog. > > (I use Debian) catalina.out is where stdout is redirected. If you don't want anything to end up there, you need to make sure your applications aren't logging anything to System.out or System.err. Tomcat can redirect system.out/system.err from an application if you set swallowOutput="true" on the , but it's best not to use system.out/system.err if you can avoid it. The standard logging configuration also directs some (properly-logged) output to the console. Since you are specifying your own log4j configuration, simply do not configure any appenders that write to the console. If you still have log messages going to catalina.out, please give us a sample and let us know how you have configured things. - -chris > -Ursprüngliche Nachricht- Von: Chandrashekar H.S > [mailto:schan...@kodiakptt.com] Gesendet: Mittwoch, 15. Februar > 2017 04:38 An: Tomcat Users List Betreff: RE: logging to syslog > > Yes, Its possible, using the below log4j configuration. version="1.0" encoding="UTF-8"?> SYSTEM "log4j.dtd"> xmlns:log4j="http://jakarta.apache.org/log4j/;> name="CATALINA" class="org.apache.log4j.net.SyslogAppender"> name="Facility" value="auth"/> value="127.0.0.1\:1517"/> class="org.apache.log4j.TTCCLayout"> value="true"/> >class="org.apache.log4j.net.SyslogAppender"> value="auth"/> > name="ContextPrinting" value="true"/> value="ISO8601"/>name="org.apache.catalina.core.ContainerBase.[Catalina].[localhost]"> > > > value="INFO"/> > > > --Chandra > > -Original Message- From: Schöke, Karsten > [mailto:karsten.scho...@geobasis-bb.de] Sent: Tuesday, February 14, > 2017 7:21 PM To: users@tomcat.apache.org Subject: logging to > syslog > > Hello, > > it' possible that all messages in catalina.out also log to syslog? > I use tomcat7 under Debian Jessie. > > Thx Karsten > > > - > > 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 > -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYpbztAAoJEBzwKT+lPKRY+rcQAILCDmotq+A8GarkCPUV2v4r IH7xLqNOSU5gEM2RCZvk9Afm75cpDdCGKOuE02y51L/2mHe8Q0aHSNYE5pTo+DP2 AmWOINK2Q2AR1qQL6JAhsS5RF/ra2If+E3qumGHfWr9tDsjUWHWL8VetmGU6rIrD AjOhuyQ7XBlMkSMkuCraYuHBDHiSh/EwNxej0UgLCDMPXLECiUcDli+O1mjwdV1t u8aMVE4fBsOtwF29fU3TrqDzvNofleW72h9jzoRVRhxzuxpnmvdr1vlSczQrBYvq fmZJeQfYtj46XSJiPUGvtaPUVmJsmsppTD5Ft24FHRmYtFOHZ1HC8wpdsPnwh/oZ MVuzZCx/28h+e6ytp3V/HXH+G/M4a0IKJgB4hO0QLvloe5PxfpxgWQQplSvmqlKk cmpCiZMmhPkMZa0hKoYkh+fxTm5R/Wv/RFnkLU14xuRz4ON213rR1LtoxVBGxL6Q nAuVjEN9g5qVFUQTBRW9x4BU9GsQwpeP5IJlUEjW2R5nNvCYf3vAGL2rQwfnNYLb 8zc7Muzfxn798xefcLahyKDwqOzp8vx31urpfxh/mNkwk5Sp+7hYcyzcdRvp+v9U fD3ACN2775G9lRLaQ1/bWpq67T+ggeG/pq0h7SvD2hoBVcg3clu877I2K1jlIE62 uqvvmTakvfmllhBghEFq =m4H0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ArrayIndexOutOfBoundsException in ServletInputStream.readLine
Hi Violeta, Thank you for your reponse. I found the following setting in my server.xml. Does this answer your question? 2017-02-16 17:07 GMT+09:00 Violeta Georgieva: > Hi, > > 2017-02-16 5:10 GMT+02:00 水野謙 : >> >> Dear Sirs, >> >> I'm using Apache Tomcat/6.0.48 on Linux and I sometimes see the >> following exception. >> >> java.lang.ArrayIndexOutOfBoundsException: 8192 >> at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:391) >> at > org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:318) >> at > org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105) >> at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:94) >> at > org.apache.catalina.connector.CoyoteInputStream.readLine(CoyoteInputStream.java:199) >> at > jp.co.interfactory.framework.MultiPartParser.retrieveParts(MultiPartParser.java:79) > > Can you post here the Connectors configuration? > > Regards, > Violeta > >> >> "MultiPartParser.retrieveParts" is my application and calls readLine >> method as follows: >> (The actual program is more complicated and I extracted the code >> related to the input stream) >> >> byte[] buf = new byte[8 * 1024]; >> ServletInputStream istream = request.getInputStream(); >> while ((ret = istream.readLine(buf, 0, buf.length)) > -1) { >> // ... >> } >> >> I cannot reproduce this exception but I observe it every couple of >> months in our production servers. >> I saw the similar exception when I used Apache Tomcat/6.0.44 and the >> stacktrace was as follows: >> >> java.lang.ArrayIndexOutOfBoundsException: 8192 >> at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:391) >> at > org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:317) >> at > org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105) >> at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:94) >> at > org.apache.catalina.connector.CoyoteInputStream.readLine(CoyoteInputStream.java:199) >> at > jp.co.interfactory.framework.MultiPartParser.retrieveParts(MultiPartParser.java:79) >> >> >> Best Regards >> >> Ken Mizuno >> mizuno@interfactory.co.jp >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> -- 株式会社インターファクトリー 水野 謙 mizuno@interfactory.co.jp 〒102-0071 東京都千代田区富士見2-10-2 飯田橋グラン・ブルーム4階 TEL:03-5211-0056 / FAX:03-5211-0059 http://www.interfactory.co.jp - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ArrayIndexOutOfBoundsException in ServletInputStream.readLine
Hi, 2017-02-16 5:10 GMT+02:00 水野謙: > > Dear Sirs, > > I'm using Apache Tomcat/6.0.48 on Linux and I sometimes see the > following exception. > > java.lang.ArrayIndexOutOfBoundsException: 8192 > at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:391) > at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:318) > at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105) > at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:94) > at org.apache.catalina.connector.CoyoteInputStream.readLine(CoyoteInputStream.java:199) > at jp.co.interfactory.framework.MultiPartParser.retrieveParts(MultiPartParser.java:79) Can you post here the Connectors configuration? Regards, Violeta > > "MultiPartParser.retrieveParts" is my application and calls readLine > method as follows: > (The actual program is more complicated and I extracted the code > related to the input stream) > > byte[] buf = new byte[8 * 1024]; > ServletInputStream istream = request.getInputStream(); > while ((ret = istream.readLine(buf, 0, buf.length)) > -1) { > // ... > } > > I cannot reproduce this exception but I observe it every couple of > months in our production servers. > I saw the similar exception when I used Apache Tomcat/6.0.44 and the > stacktrace was as follows: > > java.lang.ArrayIndexOutOfBoundsException: 8192 > at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:391) > at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:317) > at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105) > at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:94) > at org.apache.catalina.connector.CoyoteInputStream.readLine(CoyoteInputStream.java:199) > at jp.co.interfactory.framework.MultiPartParser.retrieveParts(MultiPartParser.java:79) > > > Best Regards > > Ken Mizuno > mizuno@interfactory.co.jp > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >