English 中文(简体)
• 如何减少例外。
原标题:how to debug ExceptionInInitializationError?

在非常简单的研究申请中,我感到有例外,因此,我期望这一问题在我的项目设置中,但我不知道如何欺骗......。

“ExceptionInitializationError”这一例外情况的背景是什么?

文件在哪里? A. 搜索器指南

在Eclipse Debugger中发现了几处痕迹,有: select-和;右lick——和;拷贝。

Thread [<3> main] (Suspended (exception ExceptionInInitializerError))   
    Class.newInstance() line: 1479  
    Instrumentation.newActivity(ClassLoader, String, Intent) line: 1021 
    ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2367  
    ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2470   
    ActivityThread.access$2200(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 119 
    ActivityThread$H.handleMessage(Message) line: 1821  
    ActivityThread$H(Handler).dispatchMessage(Message) line: 99 
    Looper.loop() line: 123 
    ActivityThread.main(String[]) line: 4310    
    Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]  
    Method.invoke(Object, Object...) line: 521  
    ZygoteInit$MethodAndArgsCaller.run() line: 860  
    ZygoteInit.main(String[]) line: 618 
    NativeStart.main(String[]) line: not available [native method]  

标识:

I/ActivityManager(   52): Starting activity: Intent { flg=0x10000000 cmp=com.androidcode.study_wikinotes/.WikiNotes }
D/AndroidRuntime(  198): Shutting down VM
D/dalvikvm(  198): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm(  198): DestroyJavaVM shutting VM down
D/dalvikvm(  198): HeapWorker thread shutting down
D/dalvikvm(  198): HeapWorker thread has shut down
D/jdwp    (  198): JDWP shutting down net...
I/jdwp    (  198): adbd disconnected
D/dalvikvm(  198): VM cleaning up
E/AndroidRuntime(  198): ERROR: thread attach failed
I/ActivityManager(   52): Start proc com.androidcode.study_wikinotes for activity com.androidcode.study_wikinotes/.WikiNotes: pid=219 uid=10023 gids={}
D/dalvikvm(  198): LinearAlloc 0x0 used 634508 of 5242880 (12%)
D/ddm-heap(  155): Got feature list request
D/ddm-heap(  169): Got feature list request
D/ddm-heap(  183): Got feature list request
D/ddm-heap(  206): Got feature list request
D/ddm-heap(  219): Got feature list request
W/ActivityThread(  219): Application com.androidcode.study_wikinotes is waiting for the debugger on port 8100...
I/System.out(  219): Sending WAIT chunk
I/dalvikvm(  219): Debugger is active
I/System.out(  219): Debugger has connected
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): waiting for debugger to settle...
I/System.out(  219): debugger has settled (1382)
W/dalvikvm(  219): Exception Ljava/util/regex/PatternSyntaxException; thrown during Lcom/androidcode/study_wikinotes/WikiNotes;.<clinit>
W/dalvikvm(  219): Class init failed in newInstance call (Lcom/androidcode/study_wikinotes/WikiNotes;)

Ahh. ......我在WikiNotes的班级不完整。 你们是否说答案是“启动标识”? 得到帮助。 今后,加上你的答复,我将接受。

最佳回答

是安乐斯脱硫时首当其冲的,首先在洛卡特。

问题回答

暂无回答




相关问题
handling exceptions IN Action Filters

Is there a better way to handle exceptions that occur inside an Action Filter itself in ASP .NET MVC? There re 2 ways I can think of at the moment. Using a try catch and setting the HTTP Status ...

既可捕获,又可举出例外。

我有一种办法,可以进入亚洲开发银行,因此,我国的亚行在多瑙河航道中的所有 st子都位于一个试捕区。 它正在追捕Kexception

Cross compiler exception handling - Can it be done safely?

I am doing some maintenance on a C++ windows dll library that is required to work with different VC++ compilers (as I don’t want to address different mangling schemes). I have already eliminated any ...

File Handling Issue

I am developing a tool in c#, at one instance I start writing into a xml file continuously using my tool,when i suddenly restart my machine the particular xml file gets corrupted, what is the reason ...

Watch a memory location/install data breakpoint from code?

We have a memory overwrite problem. At some point, during the course of our program, a memory location is being overwritten and causing our program to crash. the problem happens only in release mode. ...

Unit Test for Exceptions Message

Is there a simple (Attribute-driven) way to have the following test fail on the message of the exception. [TestMethod()] [ExpectedException(typeof(ArgumentException))] public void ExceptionTestTest() ...

热门标签