Hi there,

I have been playing around with pdfbox to do some PDF processing. If I am 
running pdfbox from a standalone Java application, it runs fine. However, if I 
used it from within Tomcat, I get these logs:


2011-01-25 12:22:41.485 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x15d200f40 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking
2011-01-25 12:22:41.507 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x10063ca70 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking
2011-01-25 12:22:41.547 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x100666830 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking
2011-01-25 12:22:41.557 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x10063e5c0 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking
2011-01-25 12:22:41.602 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x100167b20 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking
2011-01-25 12:22:41.617 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x10011fb60 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking
2011-01-25 12:22:41.760 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x100677310 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking
2011-01-25 12:22:41.765 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x15d24e690 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking
2011-01-25 12:22:41.879 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x100644500 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking
2011-01-25 12:22:41.887 java[33334:60f] *** __NSAutoreleaseNoPool(): Object 
0x10063ebe0 of class NSConcreteMapTableValueEnumerator autoreleased with no 
pool in place - just leaking


I figured it was because pdfbox needed to be run in headless mode, so I tried 
setting my environment to have: 


CATALINA_OPTS=-Djava.awt.headless=true



Unfortunately, that didn't seem to help much either.


Here's my OS X java --version, if you are interested (it's the latest update 
for Snow Leopard):


java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)



Any thoughts on this?




Cheers,
Alex


Reply via email to