java.lang.ExceptionInInitializerError while reading yml file


Last Updated:

  1. Anish

    Anish New Member This Topic's Starter

    Joined:
    Jun 16, 2009
    Messages:
    1
    Likes Received:
    0
    Hi All,

    I am getting java.lang.ExceptionInInitializerError while reading
    yml file.The code that i am using for reading yml file is
    InputStream inputdatfile=Myclass.this.getResources().openRawResource
    (R.raw.datafile);
    Map<String, List<Map>> data = (Map<String, List<Map>>)Yaml.load
    (inputdatfile);
    I am getting the error in the second line.My yml file is in res\raw
    folder. the external jar file i am using here to read yml file is
    jyaml1.3.jar. i tried to add <uses-library android:name="org.ho.yml" /
    > in manifest file that time i am not able to install the app in
    android SDK getting Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY].I
    am not getting what i am missing in this. Please help me to solve this
    issue. error log is


    W/dalvikvm(24378): VFY: unable to find class referenced in signature
    (Ljava/beans/PropertyDescriptor;)
    E/dalvikvm(24378): Could not find method
    java.beans.PropertyDescriptor.getWriteMethod, referenced from method
    org.h
    o.yaml.YamlConfig.isPropertyAccessibleForDecoding
    W/dalvikvm(24378): VFY: unable to resolve virtual method 88: Ljava/
    beans/PropertyDescriptor;.getWriteMethod ()Ljava
    /lang/reflect/Method;
    W/dalvikvm(24378): VFY: rejecting opcode 0x6e at 0x0000
    W/dalvikvm(24378): VFY: rejected Lorg/ho/yaml/
    YamlConfig;.isPropertyAccessibleForDecoding (Ljava/beans/PropertyDes
    criptor;)Z
    W/dalvikvm(24378): Verifier rejected class Lorg/ho/yaml/YamlConfig;
    W/dalvikvm(24378): Exception Ljava/lang/VerifyError; thrown during
    Lorg/ho/yaml/Yaml;.<clinit>
    D/AndroidRuntime(24378): Shutting down VM
    W/dalvikvm(24378): threadid=3: thread exiting with uncaught exception
    (group=0x4000fe70)
    E/AndroidRuntime(24378): Uncaught handler: thread main exiting due to
    uncaught exception
    E/AndroidRuntime(24378): java.lang.ExceptionInInitializerError
    E/AndroidRuntime(24378): at com.abc.Myclass.YamlDataSet
    (Myclass.java:320)

    E/AndroidRuntime(24378): at com.abc.draw(Myclass.java:
    110)
    E/AndroidRuntime(24378): at android.view.View.draw(View.java:
    5838)
    E/AndroidRuntime(24378): at android.view.ViewGroup.drawChild
    (ViewGroup.java:1486)
    E/AndroidRuntime(24378): at android.view.ViewGroup.dispatchDraw
    (ViewGroup.java:1228)
    E/AndroidRuntime(24378): at android.view.ViewGroup.drawChild
    (ViewGroup.java:1484)
    E/AndroidRuntime(24378): at android.view.ViewGroup.dispatchDraw
    (ViewGroup.java:1228)
    E/AndroidRuntime(24378): at android.view.View.draw(View.java:
    5841)
    E/AndroidRuntime(24378): at android.widget.FrameLayout.draw
    (FrameLayout.java:352)
    E/AndroidRuntime(24378): at android.view.ViewGroup.drawChild
    (ViewGroup.java:1486)
    E/AndroidRuntime(24378): at android.view.ViewGroup.dispatchDraw
    (ViewGroup.java:1228)
    E/AndroidRuntime(24378): at android.view.ViewGroup.drawChild
    (ViewGroup.java:1484)
    E/AndroidRuntime(24378): at android.view.ViewGroup.dispatchDraw
    (ViewGroup.java:1228)
    E/AndroidRuntime(24378): at android.view.View.draw(View.java:
    5841)
    E/AndroidRuntime(24378): at android.widget.FrameLayout.draw
    (FrameLayout.java:352)
    E/AndroidRuntime(24378): at
    com.android.internal.policy.impl.PhoneWindow$DecorView.draw
    (PhoneWindow.java:184
    7)
    E/AndroidRuntime(24378): at android.view.ViewRoot.draw
    (ViewRoot.java:1217)
    E/AndroidRuntime(24378): at
    android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
    E/AndroidRuntime(24378): at android.view.ViewRoot.handleMessage
    (ViewRoot.java:1482)
    E/AndroidRuntime(24378): at android.os.Handler.dispatchMessage
    (Handler.java:99)
    E/AndroidRuntime(24378): at android.os.Looper.loop(Looper.java:
    123)
    E/AndroidRuntime(24378): at android.app.ActivityThread.main
    (ActivityThread.java:3948)
    E/AndroidRuntime(24378): at
    java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime(24378): at java.lang.reflect.Method.invoke
    (Method.java:521)
    E/AndroidRuntime(24378): at com.android.internal.os.ZygoteInit
    $MethodAndArgsCaller.run(ZygoteInit.java:782)
    E/AndroidRuntime(24378): at
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
    E/AndroidRuntime(24378): at dalvik.system.NativeStart.main
    (Native Method)
    E/AndroidRuntime(24378): Caused by: java.lang.VerifyError:
    org.ho.yaml.YamlConfig
    E/AndroidRuntime(24378): at org.ho.yaml.Yaml.<clinit>(Unknown
    Source)
    E/AndroidRuntime(24378): ... 29 more


    Thank you ,
    Ani
     

    Advertisement

Share This Page

Loading...