cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <>
Subject [jira] [Updated] (CB-191) Exception handling for synchronous plugin calls
Date Fri, 20 Apr 2012 23:19:33 GMT


Joe Bowser updated CB-191:

OK, openOrCreateDatabase doesn't seem to throw anything.  We can put a try/catch around it
for your use case, but we really need more information about what you're asking here, since
we're almost completely asynchronous except when trying to emulate the WebSQL API that Google
doesn't want you to have.
> Exception handling for synchronous plugin calls
> -----------------------------------------------
>                 Key: CB-191
>                 URL:
>             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)
> android.database.sqlite.SQLiteException: unable to open database file
> at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
> at android.database.sqlite.SQLiteDatabase.<init>
> (
> at
> android.database.sqlite.SQLiteDatabase.openDatabase(
> at
> android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(
> 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