java.lang.ExceptionInInitializerError
2012-02-24 16:34
531 查看
问题描述 :编译Swiing客户端java代码的时候一直报错,错误日志,
java.lang.ExceptionInInitializerError
* To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class LGTopoPanel implements IGroupSubnetTopo { static final String[] _lang_select = { "Pointer Tool", "路径选择工具" }; static final String[] _lang_pan = { "Hand Tool", "抓手工具" }; static final String[] _lang_zoomIn = { "Zoom In", "放大视图" }; static final String[] _lang_zoomOut = { "Zoom Out", "缩小视图" }; static final String[] _lang_zoomBak = { "Zoom Back", "撤销缩放" }; static final String[] _lang_zoomReset = { "Reset Zoom", "初始化视图" }; static final String[] _lang_fitCont = { "View all NEs", "观看所有节点" }; static final String[] _lang_zoomView = { "Zoom out a Region", "视图区间放大" }; JPanel m_panel = new JPanel(new BorderLayout()); JPanel networkArea = new JPanel(new BorderLayout()); JPanel treeArea = new JPanel(new BorderLayout()); JSplitPane rightSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, treeArea, networkArea); private LGTopoWindow _parentWin; private IlpNetwork networkComponent; private IlogTree treeComponent; public static final URL configurationNet = LGTopoPanel.class.getResource("topo.css"); public static final String[] configurationTree = new String[] { LGTopoPanel.class.getResource("tree.css").toString()};
public static final String[] configurationTree =new String[] { LGTopoPanel.class.getResource("tree.css").toString()};
但是当我把static注释掉后,编译通过,没有任何问题。然后我又重新uncheckout,程序运行正常。
比较诡异的问题发生了,把static设置一下就可以重新让程序运行。
这个是不是static 的东西一直还在内存当中呢?还是什么情况发生了?
class.getResource 这个方法是获得资源的?
遗留问题?
慢慢看吧。
相关文章推荐
- android java.lang.ExceptionInInitializerError
- java.lang.ExceptionInInitializerError
- java.lang.ExceptionInInitializerError异常的的解决方法
- Android错误:java.lang.ExceptionInInitializerError,java.lang.UnsatisfiedLink
- SSM + junit, java.lang.ExceptionInInitializerError异常的的解决方法
- java.lang.ExceptionInInitializerError解决办法
- 解决Eclipse启动JBoss7.1异常的问题(Exception in thread "main" java.lang.ExceptionInInitializerError)
- 造成java.lang.ExceptionInInitializerError的原因
- Exception in thread "main" java.lang.ExceptionInInitializerError
- java.lang.ExceptionInInitializerError
- java.lang.ExceptionInInitializerError 错误 解决方案
- 使用spring+junit4时_java.lang.ExceptionInInitializerError
- java.lang.ExceptionInInitializerError hibernate 错误解决
- Android studio报: java.lang.ExceptionInInitializerError 错误
- 在工厂模式中使用Properties配置文件出现java.lang.ExceptionInInitializerError的问题
- java.lang.ExceptionInInitializerError Library amapv3 not found解决办法
- java.lang.ExceptionInInitializerError
- dubbo发布服务报错:nested exception is java.lang.ExceptionInInitializerError
- java.lang.ExceptionInInitializerError的原因
- Java java.lang.ExceptionInInitializerError 错误解决方案