Unable to start activity ComponentInfo{} java.lang.IllegalStateException

菜鸟001 发布于 2014/05/31 21:10
阅读 1K+
收藏 0
大神帮忙看看那里出的问题啊?
05-31 12:50:46.562: E/AndroidRuntime(1065): FATAL EXCEPTION: main
05-31 12:50:46.562: E/AndroidRuntime(1065): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dancishenqi/com.example.dancishenqi.MainActivity}: java.lang.IllegalStateException: Could not construct instance of helper class class com.xu.DBoperator.DBOpenHelper
05-31 12:50:46.562: E/AndroidRuntime(1065): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1748)
05-31 12:50:46.562: E/AndroidRuntime(1065): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1764)
05-31 12:50:46.562: E/AndroidRuntime(1065): at android.app.ActivityThread.access$1500(ActivityThread.java:122)
05-31 12:50:46.562: E/AndroidRuntime(1065): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1002)
05-31 12:50:46.562: E/AndroidRuntime(1065): at android.os.Handler.dispatchMessage(Handler.java:99)
05-31 12:50:46.562: E/AndroidRuntime(1065): at android.os.Looper.loop(Looper.java:132)
05-31 12:50:46.562: E/AndroidRuntime(1065): at android.app.ActivityThread.main(ActivityThread.java:4025)
05-31 12:50:46.562: E/AndroidRuntime(1065): at java.lang.reflect.Method.invokeNative(Native Method)
05-31 12:50:46.562: E/AndroidRuntime(1065): at java.lang.reflect.Method.invoke(Method.java:491)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
05-31 12:50:46.562: E/AndroidRuntime(1065): at dalvik.system.NativeStart.main(Native Method)
05-31 12:50:46.562: E/AndroidRuntime(1065): Caused by: java.lang.IllegalStateException: Could not construct instance of helper class class com.xu.DBoperator.DBOpenHelper
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.android.apptools.OpenHelperManager.constructHelper(OpenHelperManager.java:222)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.android.apptools.OpenHelperManager.loadHelper(OpenHelperManager.java:170)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.android.apptools.OpenHelperManager.getHelper(OpenHelperManager.java:107)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.android.apptools.OrmLiteBaseActivity.getHelperInternal(OrmLiteBaseActivity.java:84)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.android.apptools.OrmLiteBaseActivity.onCreate(OrmLiteBaseActivity.java:59)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.example.dancishenqi.MainActivity.onCreate(MainActivity.java:50)
05-31 12:50:46.562: E/AndroidRuntime(1065): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
05-31 12:50:46.562: E/AndroidRuntime(1065): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1712)
05-31 12:50:46.562: E/AndroidRuntime(1065): ... 11 more
05-31 12:50:46.562: E/AndroidRuntime(1065): Caused by: java.lang.reflect.InvocationTargetException
05-31 12:50:46.562: E/AndroidRuntime(1065): at java.lang.reflect.Constructor.constructNative(Native Method)
05-31 12:50:46.562: E/AndroidRuntime(1065): at java.lang.reflect.Constructor.newInstance(Constructor.java:416)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.android.apptools.OpenHelperManager.constructHelper(OpenHelperManager.java:220)
05-31 12:50:46.562: E/AndroidRuntime(1065): ... 18 more
05-31 12:50:46.562: E/AndroidRuntime(1065): Caused by: java.lang.IllegalArgumentException: Unknown class specified for dataClass: com.xu.dancishenqi.Word
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.table.DatabaseTableConfigLoader.readTableField(DatabaseTableConfigLoader.java:141)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.table.DatabaseTableConfigLoader.fromReader(DatabaseTableConfigLoader.java:76)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.table.DatabaseTableConfigLoader.loadDatabaseConfigFromReader(DatabaseTableConfigLoader.java:32)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper.<init>(OrmLiteSqliteOpenHelper.java:125)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper.<init>(OrmLiteSqliteOpenHelper.java:76)
05-31 12:50:46.562: E/AndroidRuntime(1065): at com.xu.DBoperator.DBOpenHelper.<init>(DBOpenHelper.java:24)
05-31 12:50:46.562: E/AndroidRuntime(1065): ... 21 more


加载中
返回顶部
顶部