com.tns.NativeScriptException: Calling js method onClick failed EXCEPTION: Error in /data/data/org.nativescript.EatSafe/files/app/pages/login/login.html:5:75 ORIGINAL EXCEPTION: Error: not implemented ORIGINAL STACKTRACE: Error: not implemented at NativeScriptDomAdapter.Parse5DomAdapter.getCookie (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/platform-server/src/parse5_adapter.js:619:68) at CookieXSRFStrategy.configureRequest (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/backends/xhr_backend.js:150:82) at XHRBackend.createConnection (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/backends/xhr_backend.js:165:28) at httpRequest (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/http.js:22:20) at Http.post (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/http.js:78:16) at UserService.signin (/data/data/org.nativescript.EatSafe/files/app/shared/services/user.service.js:13:27) at LoginComponent.login (/data/data/org.nativescript.EatSafe/files/app/pages/login/login.component.js:31:27) at DebugAppView._View_LoginComponent0._handle_tap_8_0 (LoginComponent.template.js:355:28) at /data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js:375:24 at /data/data/org.nativescript.EatSafe/files/app/tns_modules/nativescript-angular/renderer.js:204:26 ERROR CONTEXT: [object Object] File: "/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js, line: 365, column: 16 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js', line: 365, column: 17 Frame: function:'', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js', line: 378, column: 23 Frame: function:'', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/nativescript-angular/renderer.js', line: 204, column: 26 Frame: function:'ZoneDelegate.invoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 290, column: 29 Frame: function:'NgZoneImpl.inner.inner.fork.onInvoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js', line: 53, column: 41 Frame: function:'ZoneDelegate.invoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 289, column: 35 Frame: function:'Zone.run', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 183, column: 44 Frame: function:'NgZoneImpl.runInner', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js', line: 84, column: 71 Frame: function:'NgZone.run', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/zone/ng_zone.js', line: 235, column: 66 Frame: function:'zonedCallback', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/nativescript-angular/renderer.js', line: 203, column: 24 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/data/observable/observable.js', line: 174, column: 23 Frame: function:'Observable._emit', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/data/observable/observable.js', line: 193, column: 18 Frame: function:'_android.setOnClickListener.android.view.View.OnClickListener.onClick', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/ui/button/button.js', line: 33, column: 32

Stack Overflow | John Adetutu | 4 months ago
  1. 0

    Nativescript and angular 2 app breaks when making http calls

    Stack Overflow | 4 months ago | John Adetutu
    com.tns.NativeScriptException: Calling js method onClick failed EXCEPTION: Error in /data/data/org.nativescript.EatSafe/files/app/pages/login/login.html:5:75 ORIGINAL EXCEPTION: Error: not implemented ORIGINAL STACKTRACE: Error: not implemented at NativeScriptDomAdapter.Parse5DomAdapter.getCookie (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/platform-server/src/parse5_adapter.js:619:68) at CookieXSRFStrategy.configureRequest (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/backends/xhr_backend.js:150:82) at XHRBackend.createConnection (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/backends/xhr_backend.js:165:28) at httpRequest (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/http.js:22:20) at Http.post (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/http.js:78:16) at UserService.signin (/data/data/org.nativescript.EatSafe/files/app/shared/services/user.service.js:13:27) at LoginComponent.login (/data/data/org.nativescript.EatSafe/files/app/pages/login/login.component.js:31:27) at DebugAppView._View_LoginComponent0._handle_tap_8_0 (LoginComponent.template.js:355:28) at /data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js:375:24 at /data/data/org.nativescript.EatSafe/files/app/tns_modules/nativescript-angular/renderer.js:204:26 ERROR CONTEXT: [object Object] File: "/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js, line: 365, column: 16 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js', line: 365, column: 17 Frame: function:'', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js', line: 378, column: 23 Frame: function:'', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/nativescript-angular/renderer.js', line: 204, column: 26 Frame: function:'ZoneDelegate.invoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 290, column: 29 Frame: function:'NgZoneImpl.inner.inner.fork.onInvoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js', line: 53, column: 41 Frame: function:'ZoneDelegate.invoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 289, column: 35 Frame: function:'Zone.run', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 183, column: 44 Frame: function:'NgZoneImpl.runInner', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js', line: 84, column: 71 Frame: function:'NgZone.run', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/zone/ng_zone.js', line: 235, column: 66 Frame: function:'zonedCallback', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/nativescript-angular/renderer.js', line: 203, column: 24 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/data/observable/observable.js', line: 174, column: 23 Frame: function:'Observable._emit', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/data/observable/observable.js', line: 193, column: 18 Frame: function:'_android.setOnClickListener.android.view.View.OnClickListener.onClick', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/ui/button/button.js', line: 33, column: 32
  2. 0

    Require fails if there is "_" in the path

    GitHub | 1 month ago | vakrilov
    com.tns.NativeScriptException: Failed to find module: "./_source/linked-list.js", relative to: /app/tns_modules/linked-list/_source/
  3. 0

    Calling js method onClick failed

    GitHub | 3 weeks ago | jaffarhussain1011
    com.tns.NativeScriptException: Calling js method onClick failed TypeError: Cannot read property 'FLASH_MODE_TORCH' of undefined File: "/data/data/org.nativescript.jkflashlight/files/app/tns_modules/nativescript-flashlight/flashlight.js, line: 16, column: 42 StackTrace: Frame: function:'flashlight.on', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/nativescript-flashlight/flashlight.js', line: 16, column: 43 Frame: function:'flashlight.toggle', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/nativescript-flashlight/flashlight-common.js', line: 7, column: 15 Frame: function:'viewModel.toggleFlashlight', file:'/data/data/org.nativescript.jkflashlight/files/app/main-page.js', line: 21, column: 20 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/data/observable/observable.js', line: 146, column: 32 Frame: function:'Observable._emit', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/data/observable/observable.js', line: 168, column: 18 Frame: function:'_android.setOnClickListener.android.view.View.OnClickListener.onClick', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/ui/button/button.js', line: 33, column: 32
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't use xmlns namespace with TabView

    GitHub | 3 weeks ago | pocesar
    com.tns.NativeScriptException: W/System.err( 3423): Calling js method onClick failed W/System.err( 3423): [object Object] W/System.err( 3423): File: "/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/builder/builder.js, line: 167, column: 20 W/System.err( 3423): StackTrace: W/System.err( 3423): Frame: function:'', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/builder/builder.js', line: 167, column: 21 W/System.err( 3423): Frame: function:'', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/xml/xml.js', line: 148, column: 13 W/System.err( 3423): Frame: function:'EasySAXParser.parse', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/js-libs/easysax/easysax.js', line: 751, column: 23 W/System.err( 3423): Frame: function:'XmlParser.parse', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/xml/xml.js', line: 195, column: 22 W/System.err( 3423): Frame: function:'XmlStringParser.parse', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/builder/builder.js', line: 173, column: 27 W/System.err( 3423): Frame: function:'parseInternal', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/builder/builder.js', line: 48, column: 11 W/System.err( 3423): Frame: function:'loadInternal', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/builder/builder.js', line: 125, column: 27 W/System.err( 3423): Frame: function:'load', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/builder/builder.js', line: 109, column: 27 W/System.err( 3423): Frame: function:'pageFromBuilder', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/frame/frame-common.js', line: 111, column: 27 W/System.err( 3423): Frame: function:'resolvePageFromEntry', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/frame/frame-common.js', line: 89, column: 20 W/System.err( 3423): Frame: function:'Frame.navigate', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/frame/frame-common.js', line: 165, column: 20 W/System.err( 3423): Frame: function:'cadastrar', file:'/data/data/org.nativescript.cadastramento/files/app/views/actions.js', line: 28, column: 21 W/System.err( 3423): Frame: function:'Observable.notify', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/data/observable/observable.js', line: 149, column: 23 W/System.err( 3423): Frame: function:'Observable._emit', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/data/observable/observable.js', line: 168, column: 18 W/System.err( 3423): Frame: function:'onClick', file:'/data/data/org.nativescript.cadastramento/files/app/tns_modules/ui/button/button.js', line: 33, column: 32
  6. 0

    Sidedrawer in Telerik's UI for Nativescript is not working on Angular2 project

    Stack Overflow | 2 months ago | Gonzalo Diaz Ailan
    com.tns.NativeScriptException: Calling js method onClick failed Error: Error in app.component.html:26:35 caused by: self.context.openDrawer is not a function File: "/data/data/org.nativescript.nbapp/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 9668, column: 20 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 9668, column: 21 Frame: function:'', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 9681, column: 27 Frame: function:'', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/nativescript-angular/renderer.js', line: 221, column: 26 Frame: function:'ZoneDelegate.invoke', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js', line: 190, column: 28 Frame: function:'NgZoneImpl.inner.inner.fork.onInvoke', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 6220, column: 41 Frame: function:'ZoneDelegate.invoke', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js', line: 189, column: 34 Frame: function:'Zone.run', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js', line: 83, column: 43 Frame: function:'NgZoneImpl.runInner', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 6247, column: 75 Frame: function:'NgZone.run', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 6477, column: 70 Frame: function:'zonedCallback', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/nativescript-angular/renderer.js', line: 220, column: 24 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/data/observable/observable.js', line: 149, column: 23 Frame: function:'Observable._emit', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/data/observable/observable.js', line: 168, column: 18 Frame: function:'_android.setOnClickListener.android.view.View.OnClickListener.onClick', file:'/data/data/org.nativescript.nbapp/files/app/tns_modules/ui/button/button.js', line: 33, column: 32

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.tns.NativeScriptException

      Calling js method onClick failed EXCEPTION: Error in /data/data/org.nativescript.EatSafe/files/app/pages/login/login.html:5:75 ORIGINAL EXCEPTION: Error: not implemented ORIGINAL STACKTRACE: Error: not implemented at NativeScriptDomAdapter.Parse5DomAdapter.getCookie (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/platform-server/src/parse5_adapter.js:619:68) at CookieXSRFStrategy.configureRequest (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/backends/xhr_backend.js:150:82) at XHRBackend.createConnection (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/backends/xhr_backend.js:165:28) at httpRequest (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/http.js:22:20) at Http.post (/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/http/src/http.js:78:16) at UserService.signin (/data/data/org.nativescript.EatSafe/files/app/shared/services/user.service.js:13:27) at LoginComponent.login (/data/data/org.nativescript.EatSafe/files/app/pages/login/login.component.js:31:27) at DebugAppView._View_LoginComponent0._handle_tap_8_0 (LoginComponent.template.js:355:28) at /data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js:375:24 at /data/data/org.nativescript.EatSafe/files/app/tns_modules/nativescript-angular/renderer.js:204:26 ERROR CONTEXT: [object Object] File: "/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js, line: 365, column: 16 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js', line: 365, column: 17 Frame: function:'', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/linker/view.js', line: 378, column: 23 Frame: function:'', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/nativescript-angular/renderer.js', line: 204, column: 26 Frame: function:'ZoneDelegate.invoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 290, column: 29 Frame: function:'NgZoneImpl.inner.inner.fork.onInvoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js', line: 53, column: 41 Frame: function:'ZoneDelegate.invoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 289, column: 35 Frame: function:'Zone.run', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 183, column: 44 Frame: function:'NgZoneImpl.runInner', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js', line: 84, column: 71 Frame: function:'NgZone.run', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/@angular/core/src/zone/ng_zone.js', line: 235, column: 66 Frame: function:'zonedCallback', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/nativescript-angular/renderer.js', line: 203, column: 24 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/data/observable/observable.js', line: 174, column: 23 Frame: function:'Observable._emit', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/data/observable/observable.js', line: 193, column: 18 Frame: function:'_android.setOnClickListener.android.view.View.OnClickListener.onClick', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/ui/button/button.js', line: 33, column: 32

      at com.tns.Runtime.callJSMethodNative()
    2. com.tns
      Runtime.callJSMethod
      1. com.tns.Runtime.callJSMethodNative(Native Method)
      2. com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:862)
      3. com.tns.Runtime.callJSMethodImpl(Runtime.java:727)
      4. com.tns.Runtime.callJSMethod(Runtime.java:713)
      5. com.tns.Runtime.callJSMethod(Runtime.java:694)
      6. com.tns.Runtime.callJSMethod(Runtime.java:684)
      6 frames
    3. com.tns.gen
      View_OnClickListener.onClick
      1. com.tns.gen.android.view.View_OnClickListener.onClick(View_OnClickListener.java:11)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:5233)
      2. android.view.View$PerformClick.run(View.java:21209)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:152)
      6. android.app.ActivityThread.main(ActivityThread.java:5507)
      6 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames