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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to