Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: no "I" field "mConnectionPtr" #98

Open
ymmark0 opened this issue Mar 26, 2015 · 2 comments
Open

Uncaught Error: no "I" field "mConnectionPtr" #98

ymmark0 opened this issue Mar 26, 2015 · 2 comments

Comments

@ymmark0
Copy link

ymmark0 commented Mar 26, 2015

Hi
I'm trying to get the TouchBooksAlloy sample app running and not having much luck.
I'm running the app of a Nexus 7.
It loads but when it tries to run the app I get following errors:

[ERROR] : TiExceptionHandler: (main) [2456,2456] ----- Titanium Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [0,2456] - In app.js:1,69
[ERROR] : TiExceptionHandler: (main) [1,2457] - Message: Uncaught Error: no "I" field "mConnectionPtr" in class "Landroid/database/sqlite/SQLiteConnection;" or its superclasses
[ERROR] : TiExceptionHandler: (main) [0,2457] - Source: r server=require("com.obscure.titouchdb"),db=server.databaseManager.getDatabas
[INFO] : Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread.
[ERROR] : V8Exception: Exception occurred at app.js:1: Uncaught Error: no "I" field "mConnectionPtr" in class "Landroid/database/sqlite/SQLiteConnection;" or its superclasses

To setup the sample I've done the following.

  1. Created a new mobile app project
  2. Default Allow project
    Once the project is created I then
  3. Copy replace the app directory in the new project with the app directory from TouchBooksAlloy
  4. Copy the modules directory into the new project from TouchBooksAlloy
  5. cd into the project directory and run gittio install com.obscure.titouchdb (which does install things)
  6. run the new project.

I'm not sure if that's correct.
Any pointers appreciated.

The titanium SDK version is 3.5.1 GA

@ymmark0
Copy link
Author

ymmark0 commented Mar 26, 2015

I updated to the 1.2.1 pre-release version for Android, which stopped the above error, but now when I try and run it I get

[ERROR] : TiExceptionHandler: (main) [2500,2500] ----- Titanium Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [0,2500] - In ti:/module.js:280,9
[ERROR] : TiExceptionHandler: (main) [0,2500] - Message: Uncaught Error: Requested module not found: alloy/sync/titouchdb
[ERROR] : TiExceptionHandler: (main) [0,2500] - Source: throw new Error("Requested module not found: " + request);
[ERROR] : V8Exception: Exception occurred at ti:/module.js:280: Uncaught Error: Requested module not found: alloy/sync/titouchdb

@ymmark0
Copy link
Author

ymmark0 commented Mar 27, 2015

I've now found the module alloy-ti_touchdb and installed that, which removed the above problem, however now when I run the application I get:

[ERROR] : Missing required adapter configuration property: collection_name
[ERROR] : TiExceptionHandler: (main) [3664,3664] ----- Titanium Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [0,3664] - In alloy/sync/titouchdb.js:1,69
[ERROR] : TiExceptionHandler: (main) [0,3664] - Message: Uncaught TypeError: Object # has no method 'databaseNamed'
[ERROR] : TiExceptionHandler: (main) [0,3664] - Source: equired adapter configuration property: collection_name"),db=server.databaseNa
[INFO] : Choreographer: Skipped 60 frames! The application may be doing too much work on its main thread.
[ERROR] : V8Exception: Exception occurred at alloy/sync/titouchdb.js:1: Uncaught TypeError: Object # has no method 'databaseNamed'

I think perhaps updating the Readme would help newcomers a lot, plus there are some simple things that will fix errors. Would you like to to update that and submit a pull request?

adding collection_name: books to the adapter deals with that issue, but I'm still stuck on the error relating to databaseNamed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant