{"action":"created","issue":{"url":"https://api.github.com/repos/zerocracy/farm/issues/412","repository_url":"https://api.github.com/repos/zerocracy/farm","labels_url":"https://api.github.com/repos/zerocracy/farm/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/zerocracy/farm/issues/412/comments","events_url":"https://api.github.com/repos/zerocracy/farm/issues/412/events","html_url":"https://github.com/zerocracy/farm/issues/412","id":288856977,"node_id":"MDU6SXNzdWUyODg4NTY5Nzc=","number":412,"title":"java.io.IOException: Stream closed","user":{"login":"yegor256","id":526301,"node_id":"MDQ6VXNlcjUyNjMwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/526301?v=4","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"labels":[{"id":492725900,"node_id":"MDU6TGFiZWw0OTI3MjU5MDA=","url":"https://api.github.com/repos/zerocracy/farm/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2018-01-16T10:31:52Z","updated_at":"2018-06-06T07:47:45Z","closed_at":null,"author_association":"MEMBER","body":"This happens in the build, time to time (not very often). I believe, it's some concurrency issue, let's investigate and fix.\r\n\r\n```\r\njava.lang.reflect.InvocationTargetException in com/zerocracy/stk/pm/staff/awards/add_award_points.groovy\r\n\tat com.zerocracy.farm.reactive.StkGroovy.process(StkGroovy.java:125)\r\n\tat com.zerocracy.farm.StkSafe.process(StkSafe.java:89)\r\n\tat com.zerocracy.farm.reactive.StkSmart.process(StkSmart.java:66)\r\n\tat com.zerocracy.farm.reactive.Brigade.process(Brigade.java:82)\r\n\tat com.zerocracy.farm.reactive.Brigade.lambda$apply$13(Brigade.java:64)\r\n\tat com.zerocracy.farm.reactive.Brigade$$Lambda$398/676672206.apply(Unknown Source)\r\n\tat org.cactoos.func.UncheckedFunc.lambda$apply$0(UncheckedFunc.java:58)\r\n\tat org.cactoos.func.UncheckedFunc$$Lambda$11/1356728614.apply(Unknown Source)\r\n\tat org.cactoos.func.IoCheckedBiFunc.apply(IoCheckedBiFunc.java:66)\r\n\tat org.cactoos.func.UncheckedBiFunc.apply(UncheckedBiFunc.java:60)\r\n\tat org.cactoos.func.UncheckedFunc.apply(UncheckedFunc.java:59)\r\n\tat org.cactoos.iterator.Filtered.hasNext(Filtered.java:90)\r\n\tat org.cactoos.iterator.LengthOf.lambda$new$0(LengthOf.java:52)\r\n\tat org.cactoos.iterator.LengthOf$$Lambda$342/972079084.value(Unknown Source)\r\n\tat org.cactoos.scalar.UncheckedScalar.lambda$value$0(UncheckedScalar.java:58)\r\n\tat org.cactoos.scalar.UncheckedScalar$$Lambda$10/450003680.apply(Unknown Source)\r\n\tat org.cactoos.func.UncheckedFunc.lambda$apply$0(UncheckedFunc.java:58)\r\n\tat org.cactoos.func.UncheckedFunc$$Lambda$11/1356728614.apply(Unknown Source)\r\n\tat org.cactoos.func.IoCheckedBiFunc.apply(IoCheckedBiFunc.java:66)\r\n\tat org.cactoos.func.UncheckedBiFunc.apply(UncheckedBiFunc.java:60)\r\n\tat org.cactoos.func.UncheckedFunc.apply(UncheckedFunc.java:59)\r\n\tat org.cactoos.scalar.UncheckedScalar.value(UncheckedScalar.java:59)\r\n\tat org.cactoos.scalar.NumberEnvelope.doubleValue(NumberEnvelope.java:111)\r\n\tat org.cactoos.iterable.LengthOf.lambda$new$0(LengthOf.java:51)\r\n\tat org.cactoos.iterable.LengthOf$$Lambda$341/2145898154.value(Unknown Source)\r\n\tat org.cactoos.scalar.NumberEnvelope.lambda$new$1(NumberEnvelope.java:71)\r\n\tat org.cactoos.scalar.NumberEnvelope$$Lambda$125/2141497801.value(Unknown Source)\r\n\tat org.cactoos.scalar.UncheckedScalar.lambda$value$0(UncheckedScalar.java:58)\r\n\tat org.cactoos.scalar.UncheckedScalar$$Lambda$10/450003680.apply(Unknown Source)\r\n\tat org.cactoos.func.UncheckedFunc.lambda$apply$0(UncheckedFunc.java:58)\r\n\tat org.cactoos.func.UncheckedFunc$$Lambda$11/1356728614.apply(Unknown Source)\r\n\tat org.cactoos.func.IoCheckedBiFunc.apply(IoCheckedBiFunc.java:66)\r\n\tat org.cactoos.func.UncheckedBiFunc.apply(UncheckedBiFunc.java:60)\r\n\tat org.cactoos.func.UncheckedFunc.apply(UncheckedFunc.java:59)\r\n\tat org.cactoos.scalar.UncheckedScalar.value(UncheckedScalar.java:59)\r\n\tat org.cactoos.scalar.NumberEnvelope.intValue(NumberEnvelope.java:96)\r\n\tat com.zerocracy.farm.reactive.Brigade.apply(Brigade.java:67)\r\n\tat com.zerocracy.farm.reactive.Brigade.apply(Brigade.java:37)\r\n\tat org.cactoos.func.IoCheckedBiFunc.apply(IoCheckedBiFunc.java:66)\r\n\tat com.zerocracy.farm.reactive.DefaultFlush.process(DefaultFlush.java:97)\r\n\tat com.zerocracy.farm.reactive.DefaultFlush.exec(DefaultFlush.java:70)\r\n\tat com.zerocracy.farm.reactive.DefaultFlush.exec(DefaultFlush.java:44)\r\n\tat com.zerocracy.farm.reactive.AsyncFlush.lambda$exec$26(AsyncFlush.java:118)\r\n\tat com.zerocracy.farm.reactive.AsyncFlush$$Lambda$395/680215029.call(Unknown Source)\r\n\tat com.jcabi.log.VerboseCallable.call(VerboseCallable.java:173)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat com.jcabi.log.VerboseThreads$Wrap.run(VerboseThreads.java:221)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.reflect.InvocationTargetException\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat com.zerocracy.farm.reactive.StkGroovy.process(StkGroovy.java:115)\r\n\t... 49 more\r\nCaused by: java.io.UncheckedIOException: java.io.IOException: Stream closed.\r\n\tat org.cactoos.func.UncheckedBiFunc.apply(UncheckedBiFunc.java:62)\r\n\tat org.cactoos.func.UncheckedFunc.apply(UncheckedFunc.java:59)\r\n\tat org.cactoos.scalar.UncheckedScalar.value(UncheckedScalar.java:59)\r\n\tat org.cactoos.io.UncheckedInput.stream(UncheckedInput.java:56)\r\n\tat org.cactoos.io.LSInputOf.getByteStream(LSInputOf.java:104)\r\n\tat com.sun.org.apache.xerces.internal.util.DOMEntityResolverWrapper.resolveEntity(DOMEntityResolverWrapper.java:127)\r\n\tat com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1079)\r\n\tat com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:660)\r\n\tat com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2437)\r\n\tat com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1773)\r\n\tat com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:746)\r\n\tat com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:277)\r\n\tat com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:244)\r\n\tat com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:190)\r\n\tat com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:109)\r\n\tat javax.xml.validation.Validator.validate(Validator.java:124)\r\n\tat com.jcabi.xml.StrictXML.validate(StrictXML.java:229)\r\n\tat com.jcabi.xml.StrictXML.<init>(StrictXML.java:95)\r\n\tat com.jcabi.xml.StrictXML.<init>(StrictXML.java:86)\r\n\tat com.zerocracy.Xocument.modify(Xocument.java:246)\r\n\tat com.zerocracy.pmo.Awards.add(Awards.java:87)\r\n\tat com.zerocracy.pmo.Awards$add$0.call(Unknown Source)\r\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)\r\n\tat com.zerocracy.stk.pm.staff.awards.add_award_points.exec(add_award_points.groovy:35)\r\n\t... 54 more\r\nCaused by: java.io.IOException: Stream closed.\r\n\tat java.net.AbstractPlainSocketImpl.available(AbstractPlainSocketImpl.java:465)\r\n\tat java.net.SocketInputStream.available(SocketInputStream.java:258)\r\n\tat java.io.BufferedInputStream.read(BufferedInputStream.java:353)\r\n\tat sun.net.www.MeteredStream.read(MeteredStream.java:134)\r\n\tat java.io.FilterInputStream.read(FilterInputStream.java:133)\r\n\tat sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3335)\r\n\tat org.cactoos.io.TeeInputStream.read(TeeInputStream.java:79)\r\n\tat org.cactoos.io.TeeInputStream.read(TeeInputStream.java:73)\r\n\tat org.cactoos.io.LengthOf.lambda$new$0(LengthOf.java:72)\r\n\tat org.cactoos.io.LengthOf$$Lambda$119/1486458099.value(Unknown Source)\r\n\tat org.cactoos.scalar.NumberEnvelope.value(NumberEnvelope.java:116)\r\n\tat org.cactoos.io.StickyInput.lambda$new$0(StickyInput.java:64)\r\n\tat org.cactoos.io.StickyInput$$Lambda$319/654778994.value(Unknown Source)\r\n\tat org.cactoos.scalar.StickyScalar.lambda$new$0(StickyScalar.java:66)\r\n\tat org.cactoos.scalar.StickyScalar$$Lambda$13/1392906938.apply(Unknown Source)\r\n\tat org.cactoos.func.StickyFunc.lambda$new$0(StickyFunc.java:72)\r\n\tat org.cactoos.func.StickyFunc$$Lambda$8/508198356.apply(Unknown Source)\r\n\tat org.cactoos.func.StickyBiFunc.apply(StickyBiFunc.java:95)\r\n\tat org.cactoos.func.StickyFunc.apply(StickyFunc.java:79)\r\n\tat org.cactoos.scalar.StickyScalar.value(StickyScalar.java:72)\r\n\tat org.cactoos.scalar.IoCheckedScalar$$Lambda$31/165205057.apply(Unknown Source)\r\n\tat org.cactoos.func.IoCheckedFunc.lambda$apply$0(IoCheckedFunc.java:60)\r\n\tat org.cactoos.func.IoCheckedFunc$$Lambda$32/1480768445.apply(Unknown Source)\r\n\tat org.cactoos.func.IoCheckedBiFunc.apply(IoCheckedBiFunc.java:66)\r\n\tat org.cactoos.func.IoCheckedFunc.apply(IoCheckedFunc.java:61)\r\n\tat org.cactoos.scalar.IoCheckedScalar.value(IoCheckedScalar.java:65)\r\n\tat org.cactoos.io.StickyInput.stream(StickyInput.java:73)\r\n\tat org.cactoos.io.SyncInput.stream(SyncInput.java:72)\r\n\tat org.cactoos.io.UncheckedInput$$Lambda$336/637299155.value(Unknown Source)\r\n\tat org.cactoos.scalar.UncheckedScalar.lambda$value$0(UncheckedScalar.java:58)\r\n\tat org.cactoos.scalar.UncheckedScalar$$Lambda$10/450003680.apply(Unknown Source)\r\n\tat org.cactoos.func.UncheckedFunc.lambda$apply$0(UncheckedFunc.java:58)\r\n\tat org.cactoos.func.UncheckedFunc$$Lambda$11/1356728614.apply(Unknown Source)\r\n\tat org.cactoos.func.IoCheckedBiFunc.apply(IoCheckedBiFunc.java:66)\r\n\tat org.cactoos.func.UncheckedBiFunc.apply(UncheckedBiFunc.java:60)\r\n\t... 79 more\r\n\tSuppressed: java.io.IOException: Stream closed.\r\n\t\tat java.net.AbstractPlainSocketImpl.available(AbstractPlainSocketImpl.java:465)\r\n\t\tat java.net.SocketInputStream.available(SocketInputStream.java:258)\r\n\t\tat java.io.BufferedInputStream.available(BufferedInputStream.java:410)\r\n\t\tat sun.net.www.MeteredStream.available(MeteredStream.java:170)\r\n\t\tat sun.net.www.http.KeepAliveStream.close(KeepAliveStream.java:85)\r\n\t\tat java.io.FilterInputStream.close(FilterInputStream.java:181)\r\n\t\tat sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.close(HttpURLConnection.java:3408)\r\n\t\tat org.cactoos.io.TeeInputStream.close(TeeInputStream.java:98)\r\n\t\tat org.cactoos.io.LengthOf.lambda$new$0(LengthOf.java:81)\r\n\t\t... 105 more\r\n```"},"comment":{"url":"https://api.github.com/repos/zerocracy/farm/issues/comments/394974375","html_url":"https://github.com/zerocracy/farm/issues/412#issuecomment-394974375","issue_url":"https://api.github.com/repos/zerocracy/farm/issues/412","id":394974375,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDk3NDM3NQ==","user":{"login":"g4s8","id":1524988,"node_id":"MDQ6VXNlcjE1MjQ5ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/1524988?v=4","gravatar_id":"","url":"https://api.github.com/users/g4s8","html_url":"https://github.com/g4s8","followers_url":"https://api.github.com/users/g4s8/followers","following_url":"https://api.github.com/users/g4s8/following{/other_user}","gists_url":"https://api.github.com/users/g4s8/gists{/gist_id}","starred_url":"https://api.github.com/users/g4s8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g4s8/subscriptions","organizations_url":"https://api.github.com/users/g4s8/orgs","repos_url":"https://api.github.com/users/g4s8/repos","events_url":"https://api.github.com/users/g4s8/events{/privacy}","received_events_url":"https://api.github.com/users/g4s8/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T07:47:45Z","updated_at":"2018-06-06T07:47:45Z","author_association":"CONTRIBUTOR","body":"@0crat refuse"}}
{"actor":{"display_login":"g4s8"}}