com.tns.NativeScriptException: Calling js method onScanResult failed TypeError: Cannot read property 'peripheralArray' of undefined File: "/data/data/org.nativescript.bluetoothdemo/files/app/tns_modules/nativescript-bluetooth/bluetooth.js, line: 502, column: 38 StackTrace: Frame: function:'Bluetooth._findPeripheral', file:'/data/data/org.nativescript.bluetoothdemo/files/app/tns_modules/nativescript-bluetooth/bluetooth.js', line: 502, column: 39 Frame: function:'android.bluetooth.le.ScanCallback.extend.onScanResult', file:'/data/data/org.nativescript.bluetoothdemo/files/app/tns_modules/nativescript-bluetooth/bluetooth.js', line: 81, column: 24

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by lhitc
, 1 year ago
Calling js method onScanResult failed TypeError: Cannot read property 'peripheralArray' of undefined File: "/data/data/org.nativescript.bluetoothdemo/files/app/tns_modules/nativescript-bluetooth/bluetooth.js, line: 502, column: 38 StackTrace
via GitHub by blaketarter
, 1 year ago
._createUI.android.setOnItemClickListener.android.widget.AdapterView.OnItemClickListener.onItemClick', file:'/data/data/com.blaketarter.tnsreddit/files/app/tns_modules/ui/list-view/list-view.js', line: 67, column: 27 File: "<unknown>, line: 1, column: 119 StackTrace: Frame: function:'require', file:'', line: 1, column: 120
via GitHub by Daxito
, 1 year ago
\nCalling js method onCreate failed\n\nTypeError: Cannot read property '_onAttached' of null\nFile: \"\/data\/data\/org.nativescript.SampleApp\/files\/app\/tns_modules\/ui\/frame\/frame.js, line: 613, column: 16\n\nStackTrace: Frame: function:'NativeScriptActivity.onCreate', file:'\/data\/data\/org.nativescript.SampleApp\/files\/app\/tns_modules\/ui\/frame\/frame.js', line: 613, column: 17\n\n
via GitHub by vchimev
, 2 years ago
Calling js method onReceivedError failed TypeError: error.getUrl is not a function File: "/data/data/org.nativescript.TestApp/files/app/tns_modules/ui/web-view/web-view.js, line: 47, column: 136 StackTrace: Frame: function:'WebViewClientClass.onReceivedError', file:'/data/data/org.nativescript.TestApp/files/app/tns_modules/ui/web-view/web-view.js', line: 47, column: 137
via GitHub by AntonioCuevaUrraco
, 1 year ago
Calling js method onHiddenChanged failed TypeError: Cannot read property 'setImageURI' of undefined File: "/data/data/com.smarpsocial.smarpshare/files/app/tns_modules/nativescript-fresco/fresco/fresco.js, line: 19, column: 21 StackTrace: Frame
via GitHub by markens
, 1 year ago
Calling js method onCreateView failed platform cannot be initialized with different sets of providers. File: "/data/data/com.gft.appverse.showcase/files/app/tns_modules/angular2/src/core/application_ref.js, line: 78, column: 12 StackTrace: Frame
com.tns.NativeScriptException: Calling js method onScanResult failed TypeError: Cannot read property 'peripheralArray' of undefined File: "/data/data/org.nativescript.bluetoothdemo/files/app/tns_modules/nativescript-bluetooth/bluetooth.js, line: 502, column: 38 StackTrace: Frame: function:'Bluetooth._findPeripheral', file:'/data/data/org.nativescript.bluetoothdemo/files/app/tns_modules/nativescript-bluetooth/bluetooth.js', line: 502, column: 39 Frame: function:'android.bluetooth.le.ScanCallback.extend.onScanResult', file:'/data/data/org.nativescript.bluetoothdemo/files/app/tns_modules/nativescript-bluetooth/bluetooth.js', line: 81, column: 24
at com.tns.Platform.callJSMethodNative(Native Method)
at com.tns.Platform.dispatchCallJSMethodNative(Platform.java:812)
at com.tns.Platform.callJSMethod(Platform.java:711)
at com.tns.Platform.callJSMethod(Platform.java:690)
at com.tns.Platform.callJSMethod(Platform.java:680)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.