pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [pdfbox-jbig2] Zardoz89 opened a new pull request #3: Fix pdfbox 4671
Date Mon, 21 Oct 2019 08:00:04 GMT
Zardoz89 opened a new pull request #3: Fix pdfbox 4671
URL: https://github.com/apache/pdfbox-jbig2/pull/3
 
 
   Fixes https://issues.apache.org/jira/browse/PDFBOX-4671
   
   Keeps being necessary to use [TwelveMomkeys Listener](https://github.com/haraldk/TwelveMonkeys#deploying-the-plugins-in-a-web-app),
but removes the random NoClassDefFoundError when the plugin it's running inside of a servlet
container.
   
   Why was this happening ?
   
   Because the java service registry is "VM global", it doesn't by default work well with
servlet contexts. Servlet contexts dynamically loads and unloads classes (using a new class
loader per context). If you restart your application, old classes will by default remain in
memory forever. If a read is attempted using one of the remaining "old" Logger or Cache, weird
exceptions (like NullPointerExceptions when accessing static final initialized fields or NoClassDefFoundErrors
for uninitialized inner classes) may occur.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message