Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7638149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:06:13+00:00 2026-05-31T08:06:13+00:00

I get a runtime error with this code. Whats my mistake? String myPath =

  • 0

I get a runtime error with this code. Whats my mistake?

String myPath = DB_PATH + DB_NAME;
myDataBase = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);
Cursor cur = myDataBase.rawQuery("SELECT * FROM  personel" , null);    
cur.moveToFirst();
cur.close();
myDataBase.close();

this is my logcat:

this is my logcat:

03-06 14:35:14.821: E/AndroidRuntime(11995): FATAL EXCEPTION: main
03-06 14:35:14.821: E/AndroidRuntime(11995): java.lang.RuntimeException: Unable to start activity ComponentInfo{Dic.proj.pkg/Dic.proj.pkg.DictionaryActivity}: android.database.sqlite.SQLiteException: no such table: personel: , while compiling: Select * from personel
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.os.Handler.dispatchMessage(Handler.java:99)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.os.Looper.loop(Looper.java:123)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.app.ActivityThread.main(ActivityThread.java:3683)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at java.lang.reflect.Method.invokeNative(Native Method)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at java.lang.reflect.Method.invoke(Method.java:507)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at dalvik.system.NativeStart.main(Native Method)
03-06 14:35:14.821: E/AndroidRuntime(11995): Caused by: android.database.sqlite.SQLiteException: no such table: personel: , while compiling: Select * from personel
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:92)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:65)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:83)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:42)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1356)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1324)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at Dic.proj.pkg.DataBaseHelper.getCount(DataBaseHelper.java:126)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at Dic.proj.pkg.DictionaryActivity.onCreate(DictionaryActivity.java:44)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-06 14:35:14.821: E/AndroidRuntime(11995):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:06:14+00:00Added an answer on May 31, 2026 at 8:06 am

    You may have included the “personel” table recently & not upgraded the database version OR you may have changed the defenition of “personel” so try to increase the DataBase-Version here:

    public DatabaseHelper(Context context) 
    {
        super(context, dbName, null,Increment the value here);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I do this stuff.addEventListener(FooEvent.NAME, function(e:FooEvent) { dispatchEvent(e); } I get a runtime error
Why does the following code get the runtime error: Members of the Triggers collection
In an Android application, whenever a runtime error occurs, is it possible to get
I am having trouble using EnumSet on the client side. I get this runtime
In the designer I get this error: Error Creating Control: Object Reference Not Set
Following is the code I am working with. I am getting a runtime error
When I get a runtime exception from the standard library, it's almost always a
I get an exception thrown at runtime when I set AllowsTransparency=True I get an
It seems to not get past this step: [ 16%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/lib/system/gen/sys/dynamic_table_func.no.cpp.o
Is there a way to get the size at runtime ? I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.