You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2019/10/11 12:29:55 UTC

[Bug 63837] New: 7.0.97: TestAbstractAjpProcessor hangs when run with Java 13.0 and NIO.

https://bz.apache.org/bugzilla/show_bug.cgi?id=63837

            Bug ID: 63837
           Summary: 7.0.97: TestAbstractAjpProcessor hangs when run with
                    Java 13.0 and NIO.
           Product: Tomcat 7
           Version: trunk
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: knst.kolinko@gmail.com
  Target Milestone: ---

Testing a release candidate for 7.0.97:

The test TestAbstractAjpProcessor hangs when I run it with Java 13 (13u0 64-bit
from Oracle, running on Windows 10) and it uses a NIO connector.

If I kill the hung JVM, it completes normally for other connectors (APR, BIO).

Note: The code was previously run with Java 6 and Java 7 and the tests were
compiled by those runs. I am not sure that the code can be compiled with Java
13 as is (I remember seeing failures, not investigated).


1. I see the following error in the stdout/stderr output of Apache Ant:

    [junit] Oct. 11, 2019 3:08:56 AM org.apache.coyote.AbstractProtocol init
    [junit] SEVERE: Failed to initialize end point associated with
ProtocolHandler ["ajp-nio-127.0.0.1-auto-6-58537"]
    [junit] java.lang.IllegalArgumentException: timeout < 0
    [junit]     at
java.base/sun.nio.ch.ServerSocketAdaptor.setSoTimeout(ServerSocketAdaptor.java:153)
    [junit]     at
org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:477)
    [junit]     at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:750)
    [junit]     at
org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:467)
    [junit]     at
org.apache.catalina.connector.Connector.initInternal(Connector.java:951)
    [junit]     at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
    [junit]     at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
    [junit]     at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
    [junit]     at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:826)
    [junit]     at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
    [junit]     at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
    [junit]     at org.apache.catalina.startup.Tomcat.start(Tomcat.java:456)
    [junit]     at
org.apache.catalina.startup.TomcatBaseTest$TomcatWithFastSessionIDs.start(TomcatBaseTest.java:808)

I guess that is the root cause.

2. If I use jstack.exe to get a stacktrace from hanging JVM, I see a single
client thread reading from a connection, and no Tomcat instance running.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63837] 7.0.97: TestAbstractAjpProcessor hangs when run with Java 13.0 and NIO.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63837

Remy Maucherat <re...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Remy Maucherat <re...@apache.org> ---
Rainer had reported it before.

*** This bug has been marked as a duplicate of bug 63814 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63837] 7.0.97: TestAbstractAjpProcessor hangs when run with Java 13.0 and NIO.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63837

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #3 from Konstantin Kolinko <kn...@gmail.com> ---
To reproduce the issue for smoke testing, the AJP connector must be explicitly
configured to use the Nio implementation with

protocol="org.apache.coyote.ajp.AjpNioProtocol"

It is not the default implementation of the connector in Tomcat 7.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63837] 7.0.97: TestAbstractAjpProcessor hangs when run with Java 13.0 and NIO.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63837

--- Comment #2 from Konstantin Kolinko <kn...@gmail.com> ---
Created attachment 36822
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36822&action=edit
6852_stack.txt

Stacktrace from a hanging JVM. It was created with the following command:

jstack.exe -l -e 6852 >6852_stack.txt

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63837] 7.0.97: TestAbstractAjpProcessor hangs when run with Java 13.0 and NIO.

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63837

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
Created attachment 36821
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36821&action=edit
ant_test.log

stdout/stderr output of Apache Ant.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org