Re: [EXTERNAL] Re: Tomcat Connection Rest Error

2020-04-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Gary,

On 4/5/20 12:08, Hua, Gary - Saint Louis, MO - Contractor wrote:
> You are right this is INFO message and not an ERROR.
>
> We didn't find anything in the log that suggesting there is a
> successful connection.What those successful connection message
>  suppose to be?
I was just asking.

How about this part of my reply?

On 3/31/20 13:28, Christopher Schultz wrote:> Gary,
>
> Where does the server hang? On logins? Do you have a thread dump of
> a "hung" server?

- -chris

> -Original Message- From: Christopher Schultz
> [mailto:ch...@christopherschultz.net] Sent: Tuesday, March 31, 2020
> 12:28 PM To: users@tomcat.apache.org Subject: [EXTERNAL] Re: Tomcat
> Connection Rest Error
>
> Gary,
>
> On 3/31/20 13:20, Hua, Gary - Saint Louis, MO - Contractor wrote:
>> After we deploy our application to production in Tomcat server
>> 9.0.33, we got following error when multiple users login for some
>> time and the server hangs.
>
> Where does the server hang? On logins? Do you have a thread dump of
> a "hung" server?
>
>> When user click the "Login" button on the login form, it has a
>> security realm that connect to the LDAP as in the server.xml:
>
>> > connectionURL="ldaps://" />
>
>
>> 30-Mar-2020 12:47:29.218 INFO [https-jsse-nio-9443-exec-30]
>> org.apache.catalina.realm.JNDIRealm.authenticate Exception
>> performing authentication. Retrying...
>
>> javax.naming.CommunicationException: Connection reset [Root
>> exception is java.net.SocketException: Connection reset];
>> remaining name "XXX"
>
>> at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:2002) [snip]
>
>> Caused by: java.net.SocketException: Connection reset
>
>> at java.net.SocketInputStream.read(SocketInputStream.java:210)
>> [snip]
>
> This often happens because a firewall terminates a long-lived
> connection. When encountering an error like this, Tomcat should
> retry its connection and work-around any such termination. You can
> see that this is an INFO message and not an ERROR. Does Tomcat
> eventually log anything suggesting that there is a successful
> connection?
>
> -chris
>
> -
>
>
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: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6LeqcACgkQHPApP6U8
pFjhOhAAlWEmo6xSp1wWnbXIaygoAEqLenKz/m+izI942TfwZAYEUEh3khFmlh8H
vptydoLDKsqrW7EemOyW6dhA6aWZT3TCQXRCGD0MaR6XynemOEoQ3qg3U3N2kSgR
1eQius6e5iJ4/RQEYnBytcIxkGazCfUoctvw89+HFFEd0tvOotcf9vMLsC8Wy+SA
x7v8vkVG44UAH5KFFaEj0wcxLQxZf2ko0yqqI0Z3cpmlLUaVjkiGJ1iUX4yrpVgW
SnierAggxUAOGJsNPFocE47NHSB724OQ6Uwe7W8Cgxn7LP5QG/9afATM1cQnaFNB
e1ne+w4BJwiyBPFvXhv4KmqQSFFS9675t/eW/zU8JMBbiVpmN4P9m47xT3OIsxWz
jqXzjGaeRF2RiOJFvfZq/gpW2wdzJVIHHYaxmxsubuhvzaI012rca333YBgKLD1Q
qjIVTycrmgKpi0UNJB8bQyK+k4iZkb2MHREk90F5q7gXDEOw3iYOgzZ45KPstPRF
GHcy9Zh9a284yBp2dejRiPDaKQoRaKgOq07tkWNuKh2oQ47oSP/le8iWGJ6RTqIw
ylqOzvdII9g+e2fNddrCuL9GPXuw79QMBuYqHkDMhQLrPxxOwc2tAVts3M1G3tbb
o7rSa1jR9kv8sb5SCuFScd4tXlf2cNBHHCp/wnxL3PvQMv4t5Y0=
=q1eV
-END PGP SIGNATURE-

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



RE: [EXTERNAL] Re: Tomcat Connection Rest Error

2020-04-05 Thread Hua, Gary - Saint Louis, MO - Contractor
Chris:

You are right this is INFO message and not an ERROR.

We didn't find anything in the log that suggesting there is a 
successful connection.What those successful connection message suppose to 
be?


Thanks
Gary

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Tuesday, March 31, 2020 12:28 PM
To: users@tomcat.apache.org
Subject: [EXTERNAL] Re: Tomcat Connection Rest Error

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Gary,

On 3/31/20 13:20, Hua, Gary - Saint Louis, MO - Contractor wrote:
> After we deploy our application to production in Tomcat server 9.0.33,  
> we got following error when multiple users login for some time and the 
> server hangs.

Where does the server hang? On logins? Do you have a thread dump of a "hung" 
server?

> When user click the "Login" button on the login form, it has a 
> security realm that connect to the LDAP as in the server.xml:
>
>  connectionURL="ldaps://" />
>
>
> 30-Mar-2020 12:47:29.218 INFO [https-jsse-nio-9443-exec-30] 
> org.apache.catalina.realm.JNDIRealm.authenticate Exception performing 
> authentication. Retrying...
>
> javax.naming.CommunicationException: Connection reset [Root exception 
> is java.net.SocketException: Connection reset]; remaining name "XXX"
>
> at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:2002) [snip]
>
> Caused by: java.net.SocketException: Connection reset
>
> at java.net.SocketInputStream.read(SocketInputStream.java:210)
> [snip]

This often happens because a firewall terminates a long-lived connection. When 
encountering an error like this, Tomcat should retry its connection and 
work-around any such termination. You can see that this is an INFO message and 
not an ERROR. Does Tomcat eventually log anything suggesting that there is a 
successful connection?

- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6DfaUACgkQHPApP6U8
pFgWcg/7BufYygaJeerkpwGuCXafQ9f/xTFTPevvgfL2PSD9/iZiYm7vOTWXqwrP
7xn8XRUEmycNROq31pfFyfDP8IJqlrRwampEoRRzVbQDXwBdeNDHlFILL7+BVrvP
0q9Wgb9WdWlPuVv/ZYMM5GLRVxhoCX68p0tRlmxpOM/U4Uiaa9eDR809GCliNWa9
+QThei2UewGfOsIQovpSU76qUuSnmcIf2iy6UJ2DkKH7mLmbyX58WW3JAX4Y1kPY
CV1jUVQ58KRcqD3bgHrEarMkAWI6AhgrXFf6MaqC8z0NPykPmeiwfAl4JY3kkUsU
LmxzJqfQoztv+NJdcsBwjV+hA81zeeAP/6NfV/q1kTocHYYea5wKSJXRFFbGUeh/
STAu2pw5yA43tZvW9Nthn2SJS1lC7XMs/izi95J+srxjxedMg3i/NfkBiaf78i42
GXnjxNIi8GBPTQZ4hEL83p8Jn1r0jd/13zCUSAcpiV8svTBlWhqPelVXti4fuL41
ssqpAmhe4A0lUDnnpiGZHld57oA5K3FJ46c6PRhjR5hu9/nQig3d3cZuqFlimnwK
79PeLquSewFTNDOVbJhhYsQzPgMOFNejo50E88AVQWIWMDqAtEzFZ87LFlLjq3cI
Hek1jV4PMpDjnaJNERJdzRMSAhXdyu5JIjkia3+s/d8B8Q+htR4=
=c9iM
-END PGP SIGNATURE-

-
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