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/05/12 18:11:30 UTC

[Bug 64427] New: --enable-preview no error in log

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

            Bug ID: 64427
           Summary: --enable-preview no error in log
           Product: Tomcat 9
           Version: 9.0.x
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: manfred.quasten@t-online.de
  Target Milestone: -----

Created attachment 37236
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37236&action=edit
example stacktrace  in jetty

The war of a webapplication has been compiled with enable-preview (to be able
to use java 14 record). When I put the war into the webapp, tomcat deploys the
application. Calling the url nothing happens, not really nothing, I will get an
404 http error.  No error is written in the logs. 

When I set JAVA_OPTS=--enable-preview everything works fine.  I think it would
be nice to see the Error in the logs (especially deploying it the first time
using preview features with a new java version. Often jetty is used in the
development and so you will run into problems deploying it the first time in a
tomcat ...

Tomcat 10 its the same

-- 
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 64427] --enable-preview no error in log

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #8 from Mark Thomas <ma...@apache.org> ---
I've just tried a basic test and I see a 500 error when I try to access a
Servlet that uses a Record when --enable-preview is not enabled.

From the stack trace the application where this error was seen looks to be
doing something slightly more complex. Rather than try and reverse engineer
things from the stack trace, please can you provide the simplest web
application (with source code) that reproduces this error so we can track down
exactly what is getting swallowed where and work out the best way to fix it.

-- 
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 64427] --enable-preview no error in log

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

Michael Osipov <mi...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michaelo@apache.org

--- Comment #2 from Michael Osipov <mi...@apache.org> ---
What happens when you enable debug logging? The background processor thread
should pick up the WAR file.

-- 
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 64427] --enable-preview no error in log

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

--- Comment #3 from Manfred Quasten <ma...@t-online.de> ---
Using loglevel ALL the stackstrace is in the lock

-- 
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 64427] --enable-preview no error in log

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEEDINFO                    |RESOLVED

--- Comment #10 from Mark Thomas <ma...@apache.org> ---
Unable to reproduce and no response for getting on for 3 months.

-- 
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 64427] --enable-preview no error in log

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

Manfred Quasten <ma...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
                 OS|                            |All
           Priority|P2                          |P3

-- 
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 64427] --enable-preview no error in log

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

--- Comment #4 from Manfred Quasten <ma...@t-online.de> ---
Created attachment 37247
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37247&action=edit
log with loglevel All

-- 
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 64427] --enable-preview no error in log

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

--- Comment #5 from mgrigorov <mg...@apache.org> ---
The problem is in
https://github.com/apache/tomcat/blob/84d864def79863324456f4ce0fa1039c2a899206/java/org/apache/tomcat/util/ExceptionUtils.java#L32
IMO this method should re-throw any kind of java.lang.Error

-- 
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 64427] --enable-preview no error in log

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

--- Comment #9 from Mark Thomas <ma...@apache.org> ---
It has been more than a month without the requested reproducible test case
being provided. In not test case is provided this issue will eventually be
resolved as WORKSFORME.

-- 
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 64427] --enable-preview no error in log

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

--- Comment #7 from mgrigorov <mg...@apache.org> ---
This method looks a lot like Scala's NonFatal extractor:
https://github.com/scala/scala/blob/2.13.x/src/library/scala/util/control/NonFatal.scala#L35

I guess there are reasons the list of re-thrown throwables to be this short!
But LinkageError is a pretty serious one. IMO it should be re-thrown.

Probably the method should start with whitelisted Errors, like
StackOverflowError, and then re-throw any other kind of Error. But maybe it is
too late to make this change.

-- 
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 64427] --enable-preview no error in log

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

--- Comment #6 from Mark Thomas <ma...@apache.org> ---
I'm not so sure. The Throwables re-thrown by that method are deliberately very
limited. I'd look at the calling code in the first instance. Where is that?

-- 
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 64427] --enable-preview no error in log

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

--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
So you get nothing in ANY log? Just silently get 404 responses from requests to
the context path? Swallowing errors isn't common... :(

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