Open kc1212 opened 6 years ago
An uncaught Exception occurred on "main" thread. com.tns.NativeScriptException: Calling js method setPrimaryItem failed Error: statusResponse must be of type Response File: "file:///data/data/ch.epfl.popcoins/files/app/lib/network/StatusExtractor.js, line: 12, column: 4 StackTrace: Frame: function:'throwErrorIfTypeIsWrong', file:'file:///data/data/ch.epfl.popcoins/files/app/lib/network/StatusExtractor.js', line: 12, column: 11 Frame: function:'getDescription', file:'file:///data/data/ch.epfl.popcoins/files/app/lib/network/StatusExtractor.js', line: 17, column: 3 Frame: function:'myStatsList.load', file:'file:///data/data/ch.epfl.popcoins/files/app/pages/admin/conodes/conode-stats-view-model.js', line: 33, column: 33 Frame: function:'onLoaded', file:'file:///data/data/ch.epfl.popcoins/files/app/pages/admin/conodes/conode-stats-page.js', line: 22, column: 17 Frame: function:'Observable.notify', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/data/observable/observable.js', line: 110, column: 23 Frame: function:'Observable._emit', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/data/observable/observable.js', line: 127, column: 18 Frame: function:'ViewBase.onLoaded', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 236, column: 14 Frame: function:'View.onLoaded', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view/view.js', line: 213, column: 35 Frame: function:'Page.onLoaded', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/page/page.js', line: 43, column: 35 Frame: function:'', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 311, column: 90 Frame: function:'ViewBase.callFunctionWithSuper', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 304, column: 9 Frame: function:'ViewBase.callLoaded', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 311, column: 14 Frame: function:'ViewBase.loadView', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 439, column: 18 Frame: function:'', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 233, column: 19 Frame: function:'FrameBase.eachChildView', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 340, column: 13 Frame: function:'ViewCommon.eachChild', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view/view-common.js', line: 868, column: 14 Frame: function:'ViewBase.onLoaded', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 232, column: 14 Frame: function:'View.onLoaded', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view/view.js', line: 213, column: 35 Frame: function:'FrameBase.onLoaded', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 41, column: 35 Frame: function:'', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 311, column: 90 Frame: function:'ViewBase.callFunctionWithSuper', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 304, column: 9 Frame: function:'ViewBase.callLoaded', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 311, column: 14 Frame: function:'ViewBase.loadView', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 439, column: 18 Frame: function:'TabViewItemBase.loadView', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/tab-view/tab-view-common.js', line: 82, column: 43 Frame: function:'', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/tab-view/tab-view.js', line: 391, column: 22 Frame: function:'TabView._loadUnloadTabItems', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/tab-view/tab-view.js', line: 388, column: 16 Frame: function:'FragmentPagerAdapter.setPrimaryItem', file:'file:///data/data/ch.epfl.popcoins/files/app/tns_modules/tns-core-modules/ui/tab-view/tab-view.js', line: 151, column: 25 at com.tns.Runtime.callJSMethodNative(Native Method) at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1116) at com.tns.Runtime.callJSMethodImpl(Runtime.java:996) at com.tns.Runtime.callJSMethod(Runtime.java:983) at com.tns.Runtime.callJSMethod(Runtime.java:967) at com.tns.Runtime.callJSMethod(Runtime.java:959) at com.tns.gen.android.support.v4.view.PagerAdapter_view_69_32_FragmentPagerAdapter.setPrimaryItem(PagerAdapter_view_69_32_FragmentPagerAdapter.java:78) at android.support.v4.view.ViewPager.populate(ViewPager.java:1237) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:665) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:627) at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:619) at org.nativescript.widgets.TabViewPager.setCurrentItem(TabViewPager.java:58) at org.nativescript.widgets.TabLayout$TabClickListener.onClick(TabLayout.java:414) at android.view.View.performClick(View.java:6294) at android.view.View$PerformClick.run(View.java:24770) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)