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 2020/10/29 11:14:41 UTC

[Bug 64859] New: Assertion errros org.apache.catalina.mapper.Mapper.internalMap(Mapper.java:744)

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

            Bug ID: 64859
           Summary: Assertion errros
                    org.apache.catalina.mapper.Mapper.internalMap(Mapper.j
                    ava:744)
           Product: Tomcat 9
           Version: 9.0.34
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: marcin.borcz@asseco.pl
  Target Milestone: -----

Created attachment 37538
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37538&action=edit
Full stacktraces for mentioned log entries

We had observed the following assertion errors, total 356 cases.

"java.lang.AssertionError
   at org.apache.catalina.mapper.Mapper.internalMap(Mapper.java:744)"

Above errors were preceded by the two log info entries

"org.apache.catalina.connector.CoyoteAdapter.checkRecycled 
Encountered a non-recycled request and recycled it forcedly.
org.apache.catalina.connector.CoyoteAdapter$RecycleRequiredException"

"org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request
header
 Note: further occurrences of HTTP request parsing errors will be logged at
DEBUG level.
java.lang.IllegalStateException: Unexpected state: headers already parsed.
Buffer not recycled?"

Full log entries are in the attachment.

Assertion errors had occurred for 2 hours and then the problem disappeared.
After a few hours, we had noticed another two cases this time not preceded by
any connected log entries. After that, we restarted the problematic instance
and the situation has not repeated anymore.

Almost the same configuration and application are in use for weeks so it's
rather not an issue.

Application and installation:
Spring Boot 2.0 + Vaadin 8 
The application running in Kubernetes based on image
tomcat:9.0.34-jdk8-openjdk-slim

-- 
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 64859] Assertion errros org.apache.catalina.mapper.Mapper.internalMap(Mapper.java:744)

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

marcin borcz <ma...@asseco.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcin.borcz@asseco.pl

-- 
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 64859] Assertion errros org.apache.catalina.mapper.Mapper.internalMap(Mapper.java:744)

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

Mark Thomas <ma...@apache.org> changed:

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

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
This is typically caused by an application or library retaining a reference to
a request, response, InputStream, OutputStream etc. beyond the lifetime of the
original request (Tomcat recycles these objects and you end up with two threads
trying to use the same object).

The users list is usually the best place to debug issues such as these.

If you are sure a reference is not being retained and you are able to reproduce
this issue feel free to re-open this report and provide the necessary steps to
recreate the issue from a clean install of the latest release of a currently
supported Tomcat major version (e.g. 9.0.x).

-- 
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