Hi

I use jave 1.6.020
I use log4j 1.2.14
i have a main() method
and in every class i use code like:
 final static Logger log = Logger.getLogger(MyClass.class);
to create a class-spezific logger.

when i debug into the main method, the JVM suspends for every class-spezific 
logger i create:

Thread [main] (Suspended (exception FileNotFoundException))     
        URLClassPath$JarLoader.getJarFile(URL) line: 644        
        URLClassPath$JarLoader.access$600(URLClassPath$JarLoader, URL) line: 
540        
        URLClassPath$JarLoader$1.run() line: 607        
        AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not 
available [native method]       
        URLClassPath$JarLoader.ensureOpen() line: 599   
        URLClassPath$JarLoader.<init>(URL, URLStreamHandler, 
HashMap<String,Loader>) 
line: 583       
        URLClassPath$JarLoader$3.run() line: 810        
        AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not 
available [native method]       
        URLClassPath$JarLoader.getResource(String, boolean, Set<String>) line: 
806      
        URLClassPath$JarLoader.getResource(String, boolean) line: 765   
        URLClassPath$JarLoader.findResource(String, boolean) line: 735  
        URLClassPath.findResource(String, boolean) line: 146    
        URLClassLoader$2.run() line: 385        
        AccessController.doPrivileged(PrivilegedAction<T>, 
AccessControlContext) 
line: not available [native method]     
        Launcher$AppClassLoader(URLClassLoader).findResource(String) line: 382  
        Launcher$AppClassLoader(ClassLoader).getResource(String) line: 1003     
        Launcher$AppClassLoader(ClassLoader).getResourceAsStream(String) line: 
1193     
        SecuritySupport$4.run() line: 96        
        AccessController.doPrivileged(PrivilegedAction<T>) line: not available 
[native method] 
        SecuritySupport.getResourceAsStream(ClassLoader, String) line: 89       
        FactoryFinder.findJarServiceProvider(String) line: 250  
        FactoryFinder.find(String, String) line: 223    
        DocumentBuilderFactory.newInstance() line: 123  
        DOMConfigurator.doConfigure(DOMConfigurator$ParseAction, 
LoggerRepository) line: 
694     
        DOMConfigurator.doConfigure(URL, LoggerRepository) line: 618    
        OptionConverter.selectAndConfigure(URL, String, LoggerRepository) line: 
470     
        LogManager.<clinit>() line: 122 
        Logger.getLogger(Class) line: 117       
        SetupBean.<clinit>() line: 31   

SetupBean:31 is         
private final static Logger log = Logger.getLogger(SetupBean.class);

Since i use about 20 classes with their loggers, it's 20 suspends before the 
debugging starts and the main mehtod is entered. this suspending doesn't 
happen when the prpjekt is debugged on tomcat (it's actually a JSF project). 
neither do i get the problem when i debug into junit test. but since i 
introduced the main and debug into it i get the suspensions.

any ideas? 

thanks  a lot in advance

Steve Tzeggai

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

Reply via email to