Debugger stops working when calling static function [message #171504] |
Mon, 18 September 2006 23:35 |
Eclipse User |
|
|
|
Originally posted by: siegfried.heintze.com
I'm running eclipse 3.1. I just downloaded a new copy of latest production
version of spring sunday.
I cannot single step thru the function setConfigFile. Why not? When I hit F5
to step into it, I get a stack trace with a lot of entries containing
URLClassPth$JarLoader.getJarFile(URL) line: not avialable
URLClassPath$JarLaoder.<init>(URL, URLStreamHandler, HashMap) line: not
available
....
I also get strange dialog boxes telling giving me the option to continue,
terminate, or restart. If I click restart enough times, I can eventually
execute the entire program as long as I don't step into the function
setConfigFile.
I don't believe anything is wrong with the function.
When I run without the debuger using CTRL+F11, it runs fine.
Is this a bug in eclipse?
Thanks,
Siegfried
------------------------------------------------------------ --------------
package ritzpix.removejusched;
import com.signitek.util.xml.SpringBeanFactory;
public class MainRemoveJUSched {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println("begin");
SpringBeanFactory.setConfigFile("config\\SpringJUSched.xml");
}
}
------------------------------------------------------------ --------------
package com.signitek.util.xml;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
public class SpringBeanFactory {
private static BeanFactory m_factory = null;
private static String m_sfnConfig;
private SpringBeanFactory(){
}
public static void setConfigFile(String sfn){
m_sfnConfig = sfn;
}
public static BeanFactory getInstance()throws Exception{
if(m_factory == null){
m_factory = new XmlBeanFactory(new
FileSystemResource(m_sfnConfig));
}
return m_factory;
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.13071 seconds