tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53871] java.lang.StackOverflowError on deploying a web application
Date Fri, 01 Feb 2013 20:34:03 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53871

--- Comment #12 from Mark Thomas <markt@apache.org> ---
The point here is that if you ship an application that does this:

<quote>
Due to dependency management problems I deployed a WAR file containing two JAR
files containing different versions of a library, where version 1 contained a
class A which inherited from B and another version 2 which contained a class B
inheriting from A.
The classes were loaded in such an order that A and B cyclically inherited from
each other which leads to a stack overflow in populateSCIsForCacheEntry because
it does not detect cycles in the inheritance tree.
</quote>

Then the application is going to fall over as soon as it hits those classes.
That is an application bug, not a Tomcat bug.

You might be lucky and not use those classes at all in your application. In
which case you wouldn't see this until Tomcat was updated to scan classes for
annotations as intended by the Servlet 3.0 EG. Hence it might look like a
Tomcat problem.

If you have a valid set of JARs that can trigger a stack overflow then that
would be a new bug and one that would get fairly prompt attention.

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


Mime
View raw message