{"action":"created","issue":{"url":"https://api.github.com/repos/FokkeZB/nl.fokkezb.pullToRefresh/issues/39","labels_url":"https://api.github.com/repos/FokkeZB/nl.fokkezb.pullToRefresh/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/FokkeZB/nl.fokkezb.pullToRefresh/issues/39/comments","events_url":"https://api.github.com/repos/FokkeZB/nl.fokkezb.pullToRefresh/issues/39/events","html_url":"https://github.com/FokkeZB/nl.fokkezb.pullToRefresh/issues/39","id":58462673,"number":39,"title":"App crash","user":{"login":"miko91","id":5689944,"avatar_url":"https://avatars.githubusercontent.com/u/5689944?v=3","gravatar_id":"","url":"https://api.github.com/users/miko91","html_url":"https://github.com/miko91","followers_url":"https://api.github.com/users/miko91/followers","following_url":"https://api.github.com/users/miko91/following{/other_user}","gists_url":"https://api.github.com/users/miko91/gists{/gist_id}","starred_url":"https://api.github.com/users/miko91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miko91/subscriptions","organizations_url":"https://api.github.com/users/miko91/orgs","repos_url":"https://api.github.com/users/miko91/repos","events_url":"https://api.github.com/users/miko91/events{/privacy}","received_events_url":"https://api.github.com/users/miko91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-21T15:21:20Z","updated_at":"2015-02-23T09:36:10Z","closed_at":null,"body":"Hi,\r\n\r\nI follow steps in ReadMe. The view contains an empty TableView that is filled with myRefresher function. Without the widget the loadAllNews function works fine. The module is installed. I installed the widget with gittio.\r\n\r\n### View\r\n```javascript\r\n<Alloy>\r\n\t<Widget id=\"ptr\" src=\"nl.fokkezb.pullToRefresh\" onRelease=\"myRefresher\">\r\n\t\t<TableView id=\"newsList\" backgroundcolor=\"#f1f2ef\">\r\n\t\t</TableView>\r\n\t</Widget>\r\n</Alloy>\r\n```\r\n\r\n### Controller\r\n```javascript\r\nvar loadAllNews = function() {\r\n\tvar loaderArgs = {\r\n\t\tcallbackFunction : callBackLoadAllNews,\r\n\t\turl              : Alloy.CFG.Urls.baseURL + Alloy.CFG.Urls.getAllNews \r\n\t};\r\n\tloader.get(loaderArgs);\r\n};\r\n\r\nvar callBackLoadAllNews = function(argsNews) {\r\n\tif(argsNews != null) {\r\n\t\tTi.API.log(argsNews);\r\n\t\t$.newsList.setData([]);\r\n\t\t$.newsList.removeAllChildren();\r\n\t\tvar rows = [];\r\n\t\tfor (var i = 0; i < argsNews.result; ++i)\r\n\t\t{\r\n\t\t\tvar row = Alloy.createController(\"newsRow\", argsNews.data[i]).getView(\"newsItem\");\r\n\t\t\trows.push(row);\r\n\t\t}\r\n\t\t$.newsList.setData(rows);\r\n\t}\r\n};\r\n\r\nfunction myRefresher(e) {\r\n\tloadAllNews();\r\n\te.hide();\r\n}\r\n\r\n$.ptr.refresh();\r\n```\r\n\r\n### Log\r\n```\r\n[WARN] :   dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xb0d72b20)\r\n[ERROR] :  TiApplication: (main) [16292,16292] Sending event: exception on thread: main msg:java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy; Titanium 3.5.0,2015/01/12 15:33,0014f83\r\n[ERROR] :  TiApplication: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy\r\n[ERROR] :  TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:230)\r\n[ERROR] :  TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] :  TiApplication: \tat android.os.Looper.loop(Looper.java:136)\r\n[ERROR] :  TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5017)\r\n[ERROR] :  TiApplication: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] :  TiApplication: \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n[ERROR] :  TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)\r\n[ERROR] :  TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)\r\n[ERROR] :  TiApplication: \tat dalvik.system.NativeStart.main(Native Method)\r\n```"},"comment":{"url":"https://api.github.com/repos/FokkeZB/nl.fokkezb.pullToRefresh/issues/comments/75512286","html_url":"https://github.com/FokkeZB/nl.fokkezb.pullToRefresh/issues/39#issuecomment-75512286","issue_url":"https://api.github.com/repos/FokkeZB/nl.fokkezb.pullToRefresh/issues/39","id":75512286,"user":{"login":"miko91","id":5689944,"avatar_url":"https://avatars.githubusercontent.com/u/5689944?v=3","gravatar_id":"","url":"https://api.github.com/users/miko91","html_url":"https://github.com/miko91","followers_url":"https://api.github.com/users/miko91/followers","following_url":"https://api.github.com/users/miko91/following{/other_user}","gists_url":"https://api.github.com/users/miko91/gists{/gist_id}","starred_url":"https://api.github.com/users/miko91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miko91/subscriptions","organizations_url":"https://api.github.com/users/miko91/orgs","repos_url":"https://api.github.com/users/miko91/repos","events_url":"https://api.github.com/users/miko91/events{/privacy}","received_events_url":"https://api.github.com/users/miko91/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T09:36:10Z","updated_at":"2015-02-23T09:36:10Z","body":"Hi,\r\n\r\nThere is a lite copy of my project here : https://github.com/miko91/test-widget\r\n\r\nI was wrong about one thing, the widget should be wrapped by Window **or** View in the in the xml file. See by yourself."}}