用eclipse的时候,遇到一个问题,每次debug的时候,都会第一个弹出这个exception
把ClassNotFoundException:caught and uncaught前面的勾去掉就OK了。
reference:
I just hit a really annoying (sort of) bug in Eclipse. I could not debug any of my projects because they immediately stopped with a call stack like the following:
terrain.TerrainApp at localhost:49827
Thread [main] (Suspended (exception ClassNotFoundException))
ClassLoader.findBootstrapClass(String) line: not available [native method]
Launcher$ExtClassLoader(ClassLoader).findBootstrapClass0(String) line: not available
Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader.loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: not availableI found people with similar issues on various message boards, but no solutions.
Then I figured out that if I kept hitting continue (to go past the breakpoint) it would eventually reach my actual application. Along the way though, java was triggering ClassNotFoundExceptions for every single class referenced in my code, which was causing Eclipse to break. It turns out that these ClassNotFoundExceptions are normal behavior C they are supposed to happen for every new class, but having eclipse set a breakpoint for each one is definitely not!
To solve the problem, I had to open up the breakpoint window and disable the breakpoint “ClassNotFoundException: caught and uncaught” ― I have no idea how this breakpoint got set in the first place, I certainly didn’t do it!
So now I can finally debug my programs without relying on tons of print statements… that should help my progress.
今天在做项目的时候,发现项目在
Run as --> Run on server 的时候能正常运行 而在
Debug as -->Debug on server 的时候却不能正在运行 出现类似以上的异常
但是项目的部署 没有错误 而报出异常ClassNotFoundException,
本来使得正常跑 在断点处查看问题,结果一连串的异常处理
解决的办法是:
在 Window -->show view --> Breakpoints 里面
ClassNotFoundException:caught and uncaught前面的勾去掉就OK了
之后 debug模式 正常运行 运行 停止在断点处..
分享到:
相关推荐
In addition, it should print out the information about all of the corrupted blocks, using the macro #define PRINTERROR(int errorcode, char *filename, int linenumber), with errorcode equal to the ...
IAR for stm8 debugger-support-files 解决问题===> An error occurred while retrieving GDI features: gdi-error [40201]: Can't access configuration database
软件调试:Software Debugging软件调试:Software Debugging软件调试:Software Debugging软件调试:Software Debugging
Debugging Pentaho 2.0 with Eclipse
ADVANCED WINDOWS DEBUGGING Author: Mario Hewardt; Daniel Pravat
Debugging with gdb The gnu Source-Level Debugger Tenth Edition, for gdb version 7.5-1.0.53
本文是http://blog.csdn.net/anzhsoft/article/details/18762915用到的例子。下载后先unzip,在tar xf
請下載本文用到的coredump: Linux Debugging: coredump 分析入門的材料Program received signal SIGSE
本文是http://blog.csdn.net/anzhsoft/article/details/18762915用到的例子。
The Art of Debugging illustrates the use of three of the most popular debugging tools on Linux/Unix platforms: GDB, DDD, and Eclipse. In addition to offering specific advice for debugging with each ...
Advanced Apple Debugging & Reverse Engineering, Second Edition ISBN: Learn the powerful secrets of Apple’s software debugger, LLDB, that can get more information out of any program than you ever ...
ftputil python
Learn software engineering and coding best practices to write Python code right and error free. In this book you’ll see how to properly debug, organize, test, and maintain your code, all of which ...
讲解线程和进程之间的关系, 线程的处理方式 ,线程模式, 通信模式
It allows you to display all the Java sources during your debugging process, even if you do not have them all. Installation Download JD-Eclipse ZIP file, Launch Eclipse, Click on "Help > Install New ...
Linux调试技术和性能调优手段,chm格式
Advanced Apple Debugging & Reverse Engineering, Second Edition ISBN: Learn the powerful secrets of Apple’s software debugger, LLDB, that can get more information out of any program than you ever ...
Debugging with GDB,The gnu Source-Level Debugger 10th Edition, for gdb version 7.3.1.20111010 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free ...
这个程序利用Winpcap库来捕获IP数据包。在调试时注意:1:务必将“Include”文件夹下的所有头文件拷贝到VC安装目录下的库文件夹中,如"D:\Program Files\Microsoft Visual Studio\... In debugging Note: 1: Be sure to