incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pboon (Created) (JIRA)" <>
Subject [jira] [Created] (CB-191) Exception handling for synchronous plugin calls
Date Fri, 20 Jan 2012 11:20:41 GMT
Exception handling for synchronous plugin calls

                 Key: CB-191
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.2.0
            Reporter: pboon
            Priority: Minor

We received user reports about our application crashing with the stack trace below. Looking
at the source code of, it looks like for synchronous calls no exception
handling is performed (contrary to async calls where the error callback is called in case
of an exception).

Since Android 1.x is not supported, we should be able to solve this specific case by making
sure no fallback is performed if the original openDatabase(_orig) throws a (javascript) exception.

android.database.sqlite.SQLiteException: unable to open database file
at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
at android.database.sqlite.SQLiteDatabase.<init>
at com.phonegap.Storage.openDatabase(
at com.phonegap.Storage.execute(
at com.phonegap.api.PluginManager.exec(
at com.phonegap.DroidGap$GapClient.onJsPrompt(
at android.webkit.CallbackProxy.handleMessage(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message