java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

Stack Overflow | Alina | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    App crashes while creating table in Xamarin Forms

    Stack Overflow | 6 months ago | Alina
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. android.runtime.JavaProxyThrowable

      System.TypeInitializationException: The type initializer for 'MyApp.App' threw an exception. ---> System.TypeInitializationException: The type initializer for '<StartupCode$MyApp>.$MyApp' threw an exception. ---> System.Exception: Table has no (public) columns at SQLite.Net.SQLiteConnection.CreateTable (System.Type ty, CreateFlags createFlags) <0xafa2c488 + 0x00830> in <filename unknown>:0 at SQLite.Net.SQLiteConnection.CreateTable[T] (CreateFlags createFlags) <0xafa2c358 + 0x0002b> in <filename unknown>:0 at MyApp.Database.createTables () <0xafa2be88 + 0x00043> in <filename unknown>:0 at MyApp.Database..ctor () <0xafa2be10 + 0x00017> in <filename unknown>:0 at <StartupCode$MyApp>.$MyApp..cctor () <0xafa27c08 + 0x00037> in <filename unknown>:0 --- End of inner exception stack trace --- at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr) at MyApp.App..cctor () <0xafa27a88 + 0x00023> in <filename unknown>:0 --- End of inner exception stack trace --- at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr) at MyApp.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) <0xb3687f90 + 0x00087> in <filename unknown>:0 at Android.Support.V4.App.FragmentActivity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) <0xb3687ca0 + 0x0005b> in <filename unknown>:0 at (wrapper dynamic-method) System.Object:d7e14740-21a3-442d-9288-1607ab31d531 (intptr,intptr,intptr)

      at md5378e1f518696797756e862e1d3503a1c.MainActivity.n_onCreate()
    2. md5378e1f518696797756e862e1d3503a1c
      MainActivity.onCreate
      1. md5378e1f518696797756e862e1d3503a1c.MainActivity.n_onCreate(Native Method)
      2. md5378e1f518696797756e862e1d3503a1c.MainActivity.onCreate(MainActivity.java:32)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6289)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767)
      5. android.app.ActivityThread.access$900(ActivityThread.java:177)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:145)
      9. android.app.ActivityThread.main(ActivityThread.java:5951)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
      2 frames