{"action":"closed","issue":{"url":"https://api.github.com/repos/Hive2Hive/Hive2Hive/issues/127","labels_url":"https://api.github.com/repos/Hive2Hive/Hive2Hive/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/Hive2Hive/Hive2Hive/issues/127/comments","events_url":"https://api.github.com/repos/Hive2Hive/Hive2Hive/issues/127/events","html_url":"https://github.com/Hive2Hive/Hive2Hive/issues/127","id":58883096,"number":127,"title":"listFiles: casting exception ","user":{"login":"albrechta","id":8121823,"avatar_url":"https://avatars.githubusercontent.com/u/8121823?v=3","gravatar_id":"","url":"https://api.github.com/users/albrechta","html_url":"https://github.com/albrechta","followers_url":"https://api.github.com/users/albrechta/followers","following_url":"https://api.github.com/users/albrechta/following{/other_user}","gists_url":"https://api.github.com/users/albrechta/gists{/gist_id}","starred_url":"https://api.github.com/users/albrechta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albrechta/subscriptions","organizations_url":"https://api.github.com/users/albrechta/orgs","repos_url":"https://api.github.com/users/albrechta/repos","events_url":"https://api.github.com/users/albrechta/events{/privacy}","received_events_url":"https://api.github.com/users/albrechta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T10:47:50Z","updated_at":"2015-03-03T20:17:19Z","closed_at":"2015-03-03T20:17:19Z","body":"listFiles may throw a class cast exception because of a file / folder mismatch. \r\n```\r\njava.lang.ClassCastException: org.hive2hive.core.model.FileIndex cannot be cast to org.hive2hive.core.model.FolderIndex\r\n\tat org.hive2hive.core.processes.files.list.GetFileListStep.copyTree(GetFileListStep.java:70) ~[classes/:na]\r\n\tat org.hive2hive.core.processes.files.list.GetFileListStep.copyTree(GetFileListStep.java:71) ~[classes/:na]\r\n\tat org.hive2hive.core.processes.files.list.GetFileListStep.doExecute(GetFileListStep.java:42) ~[classes/:na]\r\n\tat org.hive2hive.core.processes.files.list.GetFileListStep.doExecute(GetFileListStep.java:1) ~[classes/:na]\r\n\tat org.hive2hive.processframework.ProcessComponent.execute(ProcessComponent.java:70) ~[org.hive2hive.processframework-1.0.jar:na]\r\n\tat org.peerbox.app.manager.ProcessHandle.execute(ProcessHandle.java:27) ~[classes/:na]\r\n\tat org.peerbox.watchservice.filetree.FileTreeInitializer.initialize(FileTreeInitializer.java:41) ~[classes/:na]\r\n\tat org.peerbox.app.ClientContextFactory.create(ClientContextFactory.java:30) ~[classes/:na]\r\n\tat org.peerbox.presenter.LoginController.initializeServices(LoginController.java:309) [classes/:na]\r\n\tat org.peerbox.presenter.LoginController.onLoginSucceeded(LoginController.java:294) [classes/:na]\r\n\tat org.peerbox.presenter.LoginController.access$11(LoginController.java:286) [classes/:na]\r\n\tat org.peerbox.presenter.LoginController$5.handle(LoginController.java:266) [classes/:na]\r\n\tat org.peerbox.presenter.LoginController$5.handle(LoginController.java:1) [classes/:na]\r\n\tat com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) [jfxrt.jar:na]\r\n\tat com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) [jfxrt.jar:na]\r\n\tat com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) [jfxrt.jar:na]\r\n\tat com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) [jfxrt.jar:na]\r\n\tat com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) [jfxrt.jar:na]\r\n\tat com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) [jfxrt.jar:na]\r\n\tat com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) [jfxrt.jar:na]\r\n\tat javafx.event.Event.fireEvent(Event.java:198) [jfxrt.jar:na]\r\n\tat javafx.concurrent.EventHelper.fireEvent(EventHelper.java:219) [jfxrt.jar:na]\r\n\tat javafx.concurrent.Task.fireEvent(Task.java:1342) [jfxrt.jar:na]\r\n\tat javafx.concurrent.Task.setState(Task.java:720) [jfxrt.jar:na]\r\n\tat javafx.concurrent.Task$TaskCallable.lambda$call$443(Task.java:1420) [jfxrt.jar:na]\r\n\tat javafx.concurrent.Task$TaskCallable$$Lambda$276/265862762.run(Unknown Source) [jfxrt.jar:na]\r\n\tat com.sun.javafx.application.PlatformImpl.lambda$null$164(PlatformImpl.java:292) [jfxrt.jar:na]\r\n\tat com.sun.javafx.application.PlatformImpl$$Lambda$52/1995016638.run(Unknown Source) [jfxrt.jar:na]\r\n\tat java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_25]\r\n\tat com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291) [jfxrt.jar:na]\r\n\tat com.sun.javafx.application.PlatformImpl$$Lambda$51/1851691492.run(Unknown Source) [jfxrt.jar:na]\r\n\tat com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) [jfxrt.jar:na]\r\n\tat com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) [jfxrt.jar:na]\r\n\tat com.sun.glass.ui.gtk.GtkApplication.lambda$null$45(GtkApplication.java:126) [jfxrt.jar:na]\r\n\tat com.sun.glass.ui.gtk.GtkApplication$$Lambda$42/584634336.run(Unknown Source) [jfxrt.jar:na]\r\n\tat java.lang.Thread.run(Thread.java:745) [na:1.8.0_25]\r\n```\r\n\r\nCannot reproduce yet."}}