You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ankita Agarwal (Jira)" <ji...@apache.org> on 2021/07/13 10:19:00 UTC
[jira] [Comment Edited] (SLING-10580) While receiving commands,
SocketException is not handled in readline()
[ https://issues.apache.org/jira/browse/SLING-10580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17379803#comment-17379803 ]
Ankita Agarwal edited comment on SLING-10580 at 7/13/21, 10:18 AM:
-------------------------------------------------------------------
[~rombert] We get the below error in stderr.log when nmap command {color:#00875a}{{nmap -sT -p <controlPort> 127.0.0.1}}{color}{color:#57d9a3} {color}is executed.
{code:java}
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control Listener@/127.0.0.1:63000] Failure reading from client
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control Listener@/127.0.0.1:63000] java.net.SocketException: Connection reset
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control Listener@/127.0.0.1:63000] at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control Listener@/127.0.0.1:63000] at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
{code}
It directly hits the line [https://github.com/apache/sling-org-apache-sling-launchpad-base/blob/master/src/main/java/org/apache/sling/launchpad/app/ControlListener.java#L286] and deletes the controlport config in the conf folder and then AEM shutdowns
was (Author: ankitaagar):
[~rombert] We get the below error in stderr.log when nmap command {color:#00875a}{{nmap -sT -p <controlPort> 127.0.0.1}}{color}{color:#57d9a3} {color}is executed.
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control Listener@/127.0.0.1:63000] Failure reading from client
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control Listener@/127.0.0.1:63000] java.net.SocketException: Connection reset
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control Listener@/127.0.0.1:63000] at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control Listener@/127.0.0.1:63000] at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
It directly hits the line [https://github.com/apache/sling-org-apache-sling-launchpad-base/blob/master/src/main/java/org/apache/sling/launchpad/app/ControlListener.java#L286] and deletes the controlport config in the conf folder and then AEM shutdowns
> While receiving commands, SocketException is not handled in readline()
> -----------------------------------------------------------------------
>
> Key: SLING-10580
> URL: https://issues.apache.org/jira/browse/SLING-10580
> Project: Sling
> Issue Type: Bug
> Components: Launchpad
> Affects Versions: Launchpad Base 2.7.0
> Reporter: Ankita Agarwal
> Priority: Major
> Fix For: Launchpad Base 2.7.2
>
>
> run a nmap command:
> {{nmap -sT -p <controlPort> 127.0.0.1}}
> SocketException is thrown but it's not handled in the readline()
> https://github.com/apache/sling-org-apache-sling-launchpad-base/blob/master/src/main/java/org/apache/sling/launchpad/app/ControlListener.java#L217
--
This message was sent by Atlassian Jira
(v8.3.4#803005)