com.tns.NativeScriptException: Calling js method onTouch failed [object Object] File: "file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/gestures/gestures.js, line: 97, column: 40 StackTrace: Frame: function:'GesturesObserver.androidOnTouchEvent', file:'file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/gestures/gestures.js', line: 97, column: 41 Frame: function:'onTouch', file:'file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 113, column: 37

Stack Overflow | Fonix | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    How to use custom native java classes / functions in nativescript?

    Stack Overflow | 2 months ago | Fonix
    com.tns.NativeScriptException: Calling js method onTouch failed [object Object] File: "file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/gestures/gestures.js, line: 97, column: 40 StackTrace: Frame: function:'GesturesObserver.androidOnTouchEvent', file:'file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/gestures/gestures.js', line: 97, column: 41 Frame: function:'onTouch', file:'file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 113, column: 37
  2. 0

    sidedrawer does not work in nativescript-telerik-ui

    GitHub | 4 months ago | sathish331977
    com.tns.NativeScriptException: Calling js method onCreate failed StackTrace: Frame: function:'', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/builder/builder.js', line: 167, column: 21 Frame: function:'', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/xml/xml.js', line: 148, column: 13 Frame: function:'EasySAXParser.parse', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/js-libs/easysax/easysax.js', line: 751, column: 23 Frame: function:'XmlParser.parse', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/xml/xml.js', line: 195, column: 22 Frame: function:'XmlStringParser.parse', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/builder/builder.js', line: 173, column: 27 Frame: function:'parseInternal', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/builder/builder.js', line: 48, column: 11 Frame: function:'loadInternal', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/builder/builder.js', line: 125, column: 27 Frame: function:'load', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/builder/builder.js', line: 109, column: 27 Frame: function:'pageFromBuilder', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/frame/frame-common.js', line: 111, column: 27 Frame: function:'resolvePageFromEntry', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/frame/frame-common.js', line: 89, column: 20 Frame: function:'Frame.navigate', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/frame/frame-common.js', line: 165, column: 20 Frame: function:'ActivityCallbacksImplementation.onCreate', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/frame/frame.js', line: 690, column: 19 Frame: function:'NativeScriptActivity.onCreate', file:'/data/data/org.nativescript.SideDrawerApp/files/app/tns_modules/ui/frame/activity.js', line: 13, column: 25
  3. 0

    tns-core-modules@next is giving me errors.

    GitHub | 5 months ago | 9thwall
    com.tns.NativeScriptException: Calling js method onCreateView failed TypeError: Cannot read property 'LayoutParams' of undefined File: "/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js, line: 507, column: 68 StackTrace: Frame: function:'ViewStyler.setNativeLayoutParamsProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 507, column: 69 Frame: function:'StylePropertyChangedHandler.applyProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 1263, column: 14 Frame: function:'Style._applyStyleProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 1036, column: 25 Frame: function:'Style._applyProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 999, column: 14 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 980, column: 14 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'onLayoutParamsChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 130, column: 11 Frame: function:'DependencyObservable._onPropertyChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 213, column: 13 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 978, column: 45 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'Object.defineProperty.set', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 856, column: 18 Frame: function:'Object.defineProperty.set', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view-common.js', line: 521, column: 42 Frame: function:'Page._addViewToNativeVisualTree', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/page/page.js', line: 102, column: 41 Frame: function:'eachChild', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 160, column: 61 Frame: function:'Page._eachChildView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/page/page-common.js', line: 286, column: 9 Frame: function:'View._onAttached', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 165, column: 18 Frame: function:'View._addViewCore', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 126, column: 18 Frame: function:'View._addView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view-common.js', line: 1136, column: 14 Frame: function:'onFragmentShown', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/frame/frame.js', line: 40, column: 11 Frame: function:'FragmentCallbacksImplementation.onCreateView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/frame/frame.js', line: 612, column: 13 Frame: function:'FragmentClass.onCreateView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/frame/fragment.js', line: 23, column: 38
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    tns-core-modules@next is giving me errors.

    GitHub | 5 months ago | hdeshev
    com.tns.NativeScriptException: Calling js method onCreateView failed TypeError: Cannot read property 'LayoutParams' of undefined File: "/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js, line: 507, column: 68 StackTrace: Frame: function:'ViewStyler.setNativeLayoutParamsProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 507, column: 69 Frame: function:'StylePropertyChangedHandler.applyProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 1263, column: 14 Frame: function:'Style._applyStyleProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 1036, column: 25 Frame: function:'Style._applyProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 999, column: 14 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 980, column: 14 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'onLayoutParamsChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 130, column: 11 Frame: function:'DependencyObservable._onPropertyChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 213, column: 13 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 978, column: 45 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'Object.defineProperty.set', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 856, column: 18 Frame: function:'Object.defineProperty.set', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view-common.js', line: 521, column: 42 Frame: function:'Page._addViewToNativeVisualTree', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/page/page.js', line: 102, column: 41 Frame: function:'eachChild', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 160, column: 61 Frame: function:'Page._eachChildView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/page/page-common.js', line: 286, column: 9 Frame: function:'View._onAttached', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 165, column: 18 Frame: function:'View._addViewCore', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 126, column: 18 Frame: function:'View._addView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view-common.js', line: 1136, column: 14 Frame: function:'onFragmentShown', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/frame/frame.js', line: 40, column: 11 Frame: function:'FragmentCallbacksImplementation.onCreateView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/frame/frame.js', line: 612, column: 13 Frame: function:'FragmentClass.onCreateView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/frame/fragment.js', line: 23, column: 38
  6. 0

    firebase.login() throwing onclick error

    GitHub | 2 months ago | ianhaggerty
    com.tns.NativeScriptException: Calling js method onClick failed [object Object] File: "file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 12760, column: 20 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 12760, column: 21 Frame: function:'', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 12777, column: 27 Frame: function:'', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/renderer.js', line: 213, column: 26 Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 190, column: 28 Frame: function:'onInvoke', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4391, column: 41 Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 189, column: 34 Frame: function:'Zone.run', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 83, column: 43 Frame: function:'NgZone.run', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4260, column: 66 Frame: function:'zonedCallback', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/renderer.js', line: 212, column: 24 Frame: function:'Observable.notify', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/data/observable/observable.js', line: 149, column: 23 Frame: function:'Observable._emit', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/data/observable/observable.js', line: 168, column: 18 Frame: function:'onClick', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/ui/button/button.js', line: 35, 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 onTouch failed [object Object] File: "file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/gestures/gestures.js, line: 97, column: 40 StackTrace: Frame: function:'GesturesObserver.androidOnTouchEvent', file:'file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/gestures/gestures.js', line: 97, column: 41 Frame: function:'onTouch', file:'file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 113, column: 37

      at com.tns.Runtime.callJSMethodNative()
    2. com.tns
      Runtime.callJSMethod
      1. com.tns.Runtime.callJSMethodNative(Native Method)
      2. com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197)
      3. com.tns.Runtime.callJSMethodImpl(Runtime.java:1061)
      4. com.tns.Runtime.callJSMethod(Runtime.java:1047)
      5. com.tns.Runtime.callJSMethod(Runtime.java:1028)
      5 frames