Remote host closed connection during handshake

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
bondicoffee
Posts: 130
Joined: Tue Dec 03, 2013 10:19 pm

Remote host closed connection during handshake

Post by bondicoffee »

Hi,


While connecting to an incoming email, the server is throwing an exception -- 'Remote host closed connection during handshake' for outlook 365 email account.


On restarting awareIM, it starts working and throws this exception after some time.

Has anyone noticed this exception in AwareIM and is there any fix that can be applied?

Thanks!
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Remote host closed connection during handshake

Post by hpl123 »

bondicoffee wrote: Thu Sep 30, 2021 11:05 pm Hi,


While connecting to an incoming email, the server is throwing an exception -- 'Remote host closed connection during handshake' for outlook 365 email account.


On restarting awareIM, it starts working and throws this exception after some time.

Has anyone noticed this exception in AwareIM and is there any fix that can be applied?

Thanks!
Not sure what this is but I have had various issues and possibly also handshake issues when my host made changes to their email servers so one thing you can try is to change the ports used and always make sure you use SSL ports.
Henrik (V8 Developer Ed. - Windows)
bondicoffee
Posts: 130
Joined: Tue Dec 03, 2013 10:19 pm

Re: Remote host closed connection during handshake

Post by bondicoffee »

Hi,

Thank you for your reply.


We are using port 8443 as SSL port. Following is error received on tomcat logs:

NFO: Destroying ProtocolHandler ["https-jsse-nio-8443"]
Oct 02, 2021 9:43:13 AM org.apache.coyote.AbstractProtocol destroy
INFO: Failed to deregister MBean named [Catalina:type=ProtocolHandler,port=8443] from MBean server [com.sun.jmx.mbeanserver.JmxMBeanServer@3cd1f1c8]
Oct 02, 2021 9:43:13 AM org.apache.catalina.util.LifecycleMBeanBase unregister
WARNING: Failed to unregister MBean with name [Catalina:type=Connector,port=8443] during component destruction
javax.management.InstanceNotFoundException: Catalina:type=Connector,port=8443
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415)
at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546)
at org.apache.catalina.util.LifecycleMBeanBase.unregister(LifecycleMBeanBase.java:197)
at org.apache.catalina.util.LifecycleMBeanBase.destroyInternal(LifecycleMBeanBase.java:73)
at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1058)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:297)
at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:571)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:297)
at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:883)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:297)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:744)
at org.apache.catalina.startup.Catalina.start(Catalina.java:705)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)

Oct 02, 2021 9:43:13 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-nio-8009"]
Oct 02, 2021 9:43:13 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-nio-8009"]
joben
Posts: 221
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: Remote host closed connection during handshake

Post by joben »

Are you using LetsEncrypt certificates by any chance?

https://techcrunch.com/2021/09/21/lets- ... ot-expiry/
Regards, Joakim

Image
Post Reply