Closed Bug 739257 Opened 8 years ago Closed 8 years ago

java.lang.NoSuchFieldException: bookmarkdefaults_favicon_aboutfirefox when opening Fennec using a clean profile

Categories

(Firefox for Android :: General, defect)

ARM
Android
defect
Not set

Tracking

()

RESOLVED FIXED
Firefox 14
Tracking Status
blocking-fennec1.0 --- -

People

(Reporter: xti, Assigned: wesj)

Details

Attachments

(1 file)

Firefox 14.0a1 (2012-03-26)
Device: Samsung Galaxy S
OS: Android 2.2

Steps to reproduce:
1. Install Fennec or use a clean profile
2. Open Fennec

Expected result:
No errors occur after step 1.

Actual result:
E/GeckoBrowserProvider(22354): Can't create favicon bookmarkdefaults_title_aboutfirefox
E/GeckoBrowserProvider(22354): java.lang.NoSuchFieldException: bookmarkdefaults_favicon_aboutfirefox
E/GeckoBrowserProvider(22354): 	at java.lang.ClassCache.findFieldByName(ClassCache.java:510)
E/GeckoBrowserProvider(22354): 	at java.lang.Class.getField(Class.java:881)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider$DatabaseHelper.setDefaultFavicon(BrowserProvider.java:492)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider$DatabaseHelper.createDefaultBookmarks(BrowserProvider.java:477)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider$DatabaseHelper.onCreate(BrowserProvider.java:435)
E/GeckoBrowserProvider(22354): 	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
E/GeckoBrowserProvider(22354): 	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:158)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider.getReadableDatabase(BrowserProvider.java:868)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider.query(BrowserProvider.java:1324)
E/GeckoBrowserProvider(22354): 	at android.content.ContentProvider$Transport.query(ContentProvider.java:163)
E/GeckoBrowserProvider(22354): 	at android.content.ContentResolver.query(ContentResolver.java:245)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.db.LocalBrowserDB.filterAllSites(LocalBrowserDB.java:168)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.db.LocalBrowserDB.getTopSites(LocalBrowserDB.java:189)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.db.BrowserDB.getTopSites(BrowserDB.java:121)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.AboutHomeContent.loadTopSites(AboutHomeContent.java:346)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.AboutHomeContent.access$400(AboutHomeContent.java:95)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.AboutHomeContent$9.run(AboutHomeContent.java:376)
E/GeckoBrowserProvider(22354): 	at android.os.Handler.handleCallback(Handler.java:587)
E/GeckoBrowserProvider(22354): 	at android.os.Handler.dispatchMessage(Handler.java:92)
E/GeckoBrowserProvider(22354): 	at android.os.Looper.loop(Looper.java:123)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31)
E/GeckoBrowserProvider(22354): Can't create favicon bookmarkdefaults_title_abouthome
E/GeckoBrowserProvider(22354): java.lang.NoSuchFieldException: bookmarkdefaults_favicon_abouthome
E/GeckoBrowserProvider(22354): 	at java.lang.ClassCache.findFieldByName(ClassCache.java:510)
E/GeckoBrowserProvider(22354): 	at java.lang.Class.getField(Class.java:881)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider$DatabaseHelper.setDefaultFavicon(BrowserProvider.java:492)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider$DatabaseHelper.createDefaultBookmarks(BrowserProvider.java:477)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider$DatabaseHelper.onCreate(BrowserProvider.java:435)
E/GeckoBrowserProvider(22354): 	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
E/GeckoBrowserProvider(22354): 	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:158)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider.getReadableDatabase(BrowserProvider.java:868)
E/GeckoBrowserProvider(22354): 	at org.mozilla.fennec.db.BrowserProvider.query(BrowserProvider.java:1324)
E/GeckoBrowserProvider(22354): 	at android.content.ContentProvider$Transport.query(ContentProvider.java:163)
E/GeckoBrowserProvider(22354): 	at android.content.ContentResolver.query(ContentResolver.java:245)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.db.LocalBrowserDB.filterAllSites(LocalBrowserDB.java:168)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.db.LocalBrowserDB.getTopSites(LocalBrowserDB.java:189)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.db.BrowserDB.getTopSites(BrowserDB.java:121)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.AboutHomeContent.loadTopSites(AboutHomeContent.java:346)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.AboutHomeContent.access$400(AboutHomeContent.java:95)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.AboutHomeContent$9.run(AboutHomeContent.java:376)
E/GeckoBrowserProvider(22354): 	at android.os.Handler.handleCallback(Handler.java:587)
E/GeckoBrowserProvider(22354): 	at android.os.Handler.dispatchMessage(Handler.java:92)
E/GeckoBrowserProvider(22354): 	at android.os.Looper.loop(Looper.java:123)
E/GeckoBrowserProvider(22354): 	at org.mozilla.gecko.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31)

Note:
These errors always occur on a clean profile.
Assignee: nobody → wjohnston
This is not a real error. Just bad logging on my part. Will cover it up...
Attached patch PatchSplinter Review
Attachment #609348 - Flags: review?(mark.finkle)
Comment on attachment 609348 [details] [diff] [review]
Patch

This will still output the exception? I am certainly fine with making it Log.d
Attachment #609348 - Flags: review?(mark.finkle) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/ffba0c9081bd

This will log a message, but no stack trace. That ok?
blocking-fennec1.0: --- → -
(In reply to Wesley Johnston (:wesj) from comment #4)
> https://hg.mozilla.org/integration/mozilla-inbound/rev/ffba0c9081bd
> 
> This will log a message, but no stack trace. That ok?

Yep
https://hg.mozilla.org/mozilla-central/rev/ffba0c9081bd
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
You need to log in before you can comment on or make changes to this bug.