{"action":"created","issue":{"url":"https://api.github.com/repos/puniverse/quasar/issues/153","repository_url":"https://api.github.com/repos/puniverse/quasar","labels_url":"https://api.github.com/repos/puniverse/quasar/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/puniverse/quasar/issues/153/comments","events_url":"https://api.github.com/repos/puniverse/quasar/issues/153/events","html_url":"https://github.com/puniverse/quasar/issues/153","id":126137600,"number":153,"title":"Deserializing fibers that used `stderr` results in `java.lang.ClassNotFoundException: org.gradle.util.LinePerThreadBufferingOutputStream$1` when running under Gradle","user":{"login":"circlespainter","id":6113296,"avatar_url":"https://avatars.githubusercontent.com/u/6113296?v=3","gravatar_id":"","url":"https://api.github.com/users/circlespainter","html_url":"https://github.com/circlespainter","followers_url":"https://api.github.com/users/circlespainter/followers","following_url":"https://api.github.com/users/circlespainter/following{/other_user}","gists_url":"https://api.github.com/users/circlespainter/gists{/gist_id}","starred_url":"https://api.github.com/users/circlespainter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/circlespainter/subscriptions","organizations_url":"https://api.github.com/users/circlespainter/orgs","repos_url":"https://api.github.com/users/circlespainter/repos","events_url":"https://api.github.com/users/circlespainter/events{/privacy}","received_events_url":"https://api.github.com/users/circlespainter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-12T09:48:04Z","updated_at":"2016-03-04T08:54:00Z","closed_at":null,"body":"Gradle seems to replace `System.out.stderr` with [`LinePerThreadBufferingOutputStream` which inserts itself in a threadlocal](https://github.com/gradle/gradle/blob/77ea2907e4e1ce93667d8544c54961040b758422/subprojects/core/src/main/groovy/org/gradle/util/LinePerThreadBufferingOutputStream.java#L30) that triggers the issue upon deserialization.\r\n\r\nWorkaround [f.e. here](http://stackoverflow.com/questions/5339499/resetting-standard-output-stream).\r\n\r\nReproduce f.e. by inserting a `System.err` printout before [this line](https://github.com/puniverse/quasar/blob/v0.7.3/quasar-core/src/test/java/co/paralleluniverse/fibers/FiberTest.java#L798) and then `gradle :quasar-core:jdk7Test`."},"comment":{"url":"https://api.github.com/repos/puniverse/quasar/issues/comments/192189935","html_url":"https://github.com/puniverse/quasar/issues/153#issuecomment-192189935","issue_url":"https://api.github.com/repos/puniverse/quasar/issues/153","id":192189935,"user":{"login":"pron","id":1273445,"avatar_url":"https://avatars.githubusercontent.com/u/1273445?v=3","gravatar_id":"","url":"https://api.github.com/users/pron","html_url":"https://github.com/pron","followers_url":"https://api.github.com/users/pron/followers","following_url":"https://api.github.com/users/pron/following{/other_user}","gists_url":"https://api.github.com/users/pron/gists{/gist_id}","starred_url":"https://api.github.com/users/pron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pron/subscriptions","organizations_url":"https://api.github.com/users/pron/orgs","repos_url":"https://api.github.com/users/pron/repos","events_url":"https://api.github.com/users/pron/events{/privacy}","received_events_url":"https://api.github.com/users/pron/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T08:54:00Z","updated_at":"2016-03-04T08:54:00Z","body":"Done.\r\n\r\nAs I said, there's much more that can (and will) be done here re handling of TL subclasses (we can use reflection to try and instantiate the proper subclasses) before we decide it's time to give up :)"}}