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

java.lang.NullPointerException #2

Closed
mathi123 opened this issue Aug 22, 2014 · 1 comment
Closed

java.lang.NullPointerException #2

mathi123 opened this issue Aug 22, 2014 · 1 comment

Comments

@mathi123
Copy link

Steps to reproduce:

  1. Start Odoo CRM + fresh server install (Odoo v7).
  2. Enter self hosted URL (e.g. 192.168.1.5:8069 in my case)
  3. Enter credentials (admin - test)
  4. Click 'login'

Bug:
The application loads,
After creating local database, the application crashes.

screenshot_2014-08-22-20-11-40
screenshot_2014-08-22-20-11-45
screenshot_2014-08-22-20-11-51
screenshot_2014-08-22-20-12-01

Stack trace:
08-22 19:57:32.970: D/odoo.Odoo(19118): http://192.168.1.5:8069
08-22 19:57:33.160: D/App(19118): App->setOdooInstance()
08-22 19:57:33.260: I/dalvikvm(19118): Could not compile trace for Ljava/util/Arrays;fill, offset 7
08-22 19:57:33.260: D/dalvikvm(19118): ++++++++++++++++++++++++++++++++++++++++++++
08-22 19:57:33.260: D/dalvikvm(19118): JIT_INFO: Issues while compiling trace Ljava/util/Arrays;fill, offset 7
08-22 19:57:33.260: D/dalvikvm(19118): The trace provoked a spill.
08-22 19:57:33.260: I/dalvikvm(19118): Trying less registerization from 1 to 0
08-22 19:57:33.260: D/dalvikvm(19118): JIT_INFO: Retrying trace Ljava/util/Arrays;fill, offset 7
08-22 19:57:33.260: D/dalvikvm(19118): ++++++++++++++++++++++++++++++++++++++++++++
08-22 19:57:33.580: D/odoo.Odoo(19118): http://192.168.1.5:8069
08-22 19:57:33.820: D/App(19118): App->setOdooInstance()
08-22 19:57:33.830: D/App(19400): App->onCreate()
08-22 19:57:33.920: D/App(19118): App->getOdooInstance()
08-22 19:57:33.920: V/OSyncHelper(19118): syncWithServer():ir.model
08-22 19:57:33.920: V/OSyncHelper(19118): User : admin[test]
08-22 19:57:34.610: V/OSQLHelper(19118): Table Created : ir_model
08-22 19:57:34.770: V/OSQLHelper(19118): Table Created : res_company
08-22 19:57:34.770: V/OSQLHelper(19118): Table Created : res_partner
08-22 19:57:34.880: V/OSQLHelper(19118): Table Created : ir_attachment
08-22 19:57:35.000: V/OSQLHelper(19118): Table Created : mail_followers
08-22 19:57:35.000: V/OSQLHelper(19118): Table Created : base_account
08-22 19:57:40.300: V/OSyncHelper(19118): ir.model sync finished at 2014-08-22 17:57:40 (UTC)
08-22 19:57:40.470: I/Choreographer(19118): Skipped 393 frames! The application may be doing too much work on its main thread.
08-22 19:57:40.670: D/App(19118): App->getOdooInstance()
08-22 19:57:40.670: V/OSyncHelper(19118): syncWithServer():ir.model
08-22 19:57:40.670: V/OSyncHelper(19118): User : admin[test]
08-22 19:57:40.780: D/dalvikvm(19118): GC_FOR_ALLOC freed 3898K, 30% free 9477K/13440K, paused 18ms, total 18ms
08-22 19:57:41.590: V/OSyncHelper(19118): ir.model sync finished at 2014-08-22 17:57:41 (UTC)
08-22 19:57:41.800: D/com.odoo.MainActivity(19118): MainActivity->FragmentListener->startMainFragment()
08-22 19:57:41.800: I/Choreographer(19118): Skipped 70 frames! The application may be doing too much work on its main thread.
08-22 19:57:42.320: I/Choreographer(19118): Skipped 30 frames! The application may be doing too much work on its main thread.
08-22 19:57:42.710: D/com.odoo.MainActivity(19118): MainActivity->init()
08-22 19:57:42.840: D/BaseActivity(19118): initDrawer()
08-22 19:57:42.860: D/AndroidRuntime(19118): Shutting down VM
08-22 19:57:42.860: W/dalvikvm(19118): threadid=1: thread exiting with uncaught exception (group=0x42f02500)
08-22 19:57:42.860: E/AndroidRuntime(19118): FATAL EXCEPTION: main
08-22 19:57:42.860: E/AndroidRuntime(19118): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.odoo.crm/com.odoo.MainActivity}: java.lang.NullPointerException
08-22 19:57:42.860: E/AndroidRuntime(19118): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2250)
08-22 19:57:42.860: E/AndroidRuntime(19118): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2300)
08-22 19:57:42.860: E/AndroidRuntime(19118): at android.app.ActivityThread.access$600(ActivityThread.java:144)
08-22 19:57:42.860: E/AndroidRuntime(19118): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1295)
08-22 19:57:42.860: E/AndroidRuntime(19118): at android.os.Handler.dispatchMessage(Handler.java:99)
08-22 19:57:42.860: E/AndroidRuntime(19118): at android.os.Looper.loop(Looper.java:150)
08-22 19:57:42.860: E/AndroidRuntime(19118): at android.app.ActivityThread.main(ActivityThread.java:5162)
08-22 19:57:42.860: E/AndroidRuntime(19118): at java.lang.reflect.Method.invokeNative(Native Method)
08-22 19:57:42.860: E/AndroidRuntime(19118): at java.lang.reflect.Method.invoke(Method.java:525)
08-22 19:57:42.860: E/AndroidRuntime(19118): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
08-22 19:57:42.860: E/AndroidRuntime(19118): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-22 19:57:42.860: E/AndroidRuntime(19118): at dalvik.system.NativeStart.main(Native Method)
08-22 19:57:42.860: E/AndroidRuntime(19118): Caused by: java.lang.NullPointerException
08-22 19:57:42.860: E/AndroidRuntime(19118): at com.odoo.BaseActivity.isSettingDrawerItem(BaseActivity.java:310)
08-22 19:57:42.860: E/AndroidRuntime(19118): at com.odoo.BaseActivity.onNavDrawerItemClicked(BaseActivity.java:303)
08-22 19:57:42.860: E/AndroidRuntime(19118): at com.odoo.BaseActivity.createNavDrawerItems(BaseActivity.java:215)
08-22 19:57:42.860: E/AndroidRuntime(19118): at com.odoo.BaseActivity.populateNavDrawer(BaseActivity.java:151)
08-22 19:57:42.860: E/AndroidRuntime(19118): at com.odoo.BaseActivity.onPostCreate(BaseActivity.java:366)
08-22 19:57:42.860: E/AndroidRuntime(19118): at com.odoo.MainActivity.onPostCreate(MainActivity.java:124)
08-22 19:57:42.860: E/AndroidRuntime(19118): at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1150)
08-22 19:57:42.860: E/AndroidRuntime(19118): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2233)
08-22 19:57:42.860: E/AndroidRuntime(19118): ... 11 more
08-22 19:57:46.000: I/Process(19118): Sending signal. PID: 19118 SIG: 9

@dpr-odoo
Copy link
Collaborator

Hello @mathi123

This issue has been solved.

Regards,

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

2 participants