> -----Original Message-----
> From: Christopher Schultz <ch...@christopherschultz.net>
> Sent: Wednesday, March 17, 2021 3:13 PM
> To: users@tomcat.apache.org
> Subject: Re: Wait... NULL address in java.net.BindException: Address already
> in use (Bind failed) <null> ???
>
> Eric and Martin,
>
> On 3/17/21 15:35, Martin Grigorov wrote:
> > On Wed, Mar 17, 2021, 20:27 Eric Robinson <eric.robin...@psmnv.com>
> wrote:
> >
> >>> From: Martin Grigorov <mgrigo...@apache.org>
> >>> Sent: Wednesday, March 17, 2021 12:45 PM
> >>> To: Tomcat Users List <users@tomcat.apache.org>
> >>> Subject: Re: Wait... NULL address in java.net.BindException: Address
> >> already
> >>> in use (Bind failed) <null> ???
> >>>
> >>> Hi,
> >>>
> >>> On Wed, Mar 17, 2021, 19:34 Eric Robinson <eric.robin...@psmnv.com>
> >>> wrote:
> >>>
> >>>> Getting error:
> >>>>
> >>>> java.net.BindException: Address already in use (Bind failed)
> >>>> <null>:3787
> >>>>
> >>>
> >>> Please paste more lines of the exception.
> >>> Also please tell us which version of JDK/JRE you use.
> >>> This exception is very cryptic and does not usually tell which
> >>> address
> >> is in use.
> >>> I.e. 3787 is not the port, as you might think. Most probably it is a
> >> line in some
> >>> class.
> >>>
> >>
> >> Tomcat: Apache Tomcat/8.5.51
> >> JVM: 1.8.0_241-b08
> >>
> >> The following error appears in catalina.out under tomcat 8. It does
> >> not mention the null. We tried it under tomcat 7 as well, and that is
> >> where it mentions the null.
> >>
> >> 17-Mar-2021 11:12:54.039 INFO [main]
> >> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> >> ["http-nio-3787"]
> >> 17-Mar-2021 11:12:54.048 SEVERE [main]
> >> org.apache.catalina.core.StandardService.initInternal Failed to
> >> initialize connector [Connector[HTTP/1.1-3787]]
> >>
> >
> > This line says that 3787 is the port indeed.
> > Are you sure it is not bound?
>
> Also, please post your <Connector>s from conf/server.xml.
>
> You mentioned "<null>:3787" in your error message but I don't see that in
> the exception. Are you sure you are posting everything?
>

Hi Chris --

I mentioned in the email that the null reference appears in the catalina log 
when we use tomcat 7. It does not appear when we use tomcat 8. Although it 
fails to bind either way.

Here's the connector.

    <Connector port="3787" protocol="HTTP/1.1"
                connectionTimeout="20000"
                redirectPort="8443"
                maxKeepAliveRequests="-1"
                enableLookups="false"
                maxThreads="150"
                acceptCount="100"
                compression="on"
                compressionMinSize="2048"
                server=" "
                relaxedQueryChars="^{}[]|&quot;&lt;&gt;"
                
compressableMimeType="text/xml,text/javascript,text/html,text/css,text/plain,application/javascript,application/xml,application/json"
 -->

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

Disclaimer : This email and any files transmitted with it are confidential and 
intended solely for intended recipients. If you are not the named addressee you 
should not disseminate, distribute, copy or alter this email. Any views or 
opinions presented in this email are solely those of the author and might not 
represent those of Physician Select Management. Warning: Although Physician 
Select Management has taken reasonable precautions to ensure no viruses are 
present in this email, the company cannot accept responsibility for any loss or 
damage arising from the use of this email or attachments.

Reply via email to