[2.1.1] SBT: InputStream in GZIPInputStream: java.io.EOFException

2,858 views
Skip to first unread message

stikkos

unread,
May 8, 2013, 10:03:55 AM5/8/13
to play-fr...@googlegroups.com
Hi,

I've been working on my app all morning with no problems and now, without any obvious reason, I'm getting the following error when i run "play compile":

Error wrapping InputStream in GZIPInputStream: java.io.EOFException
 at sbt
.ErrorHandling$.translate(ErrorHandling.scala:13)
 at sbt
.WrapUsing.open(Using.scala:36)
 at sbt
.Using.apply(Using.scala:24)
 at sbt
.IO$$anonfun$gzipFileIn$1.apply(IO.scala:704)
 at sbt
.IO$$anonfun$gzipFileIn$1.apply(IO.scala:703)
 at sbt
.Using.apply(Using.scala:25)
 at sbt
.IO$.gzipFileIn(IO.scala:703)
 at sbt
.Sync$.readUncaught(Sync.scala:88)
 at sbt
.Sync$.readInfo(Sync.scala:84)
 at sbt
.Sync$$anonfun$apply$1.apply(Sync.scala:29)
 at sbt
.Sync$$anonfun$apply$1.apply(Sync.scala:23)
 at sbt
.Defaults$$anonfun$copyResourcesTask$1.apply(Defaults.scala:621)
 at sbt
.Defaults$$anonfun$copyResourcesTask$1.apply(Defaults.scala:617)
 at sbt
.Scoped$$anonfun$hf5$1.apply(Structure.scala:581)
 at sbt
.Scoped$$anonfun$hf5$1.apply(Structure.scala:581)
 at scala
.Function1$$anonfun$compose$1.apply(Function1.scala:49)
 at sbt
.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
 at sbt
.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
 at sbt
.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
 at sbt
.std.Transform$$anon$5.work(System.scala:71)
 at sbt
.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
 at sbt
.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
 at sbt
.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
 at sbt
.Execute.work(Execute.scala:238)
 at sbt
.Execute$$anonfun$submit$1.apply(Execute.scala:232)
 at sbt
.Execute$$anonfun$submit$1.apply(Execute.scala:232)
 at sbt
.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
 at sbt
.CompletionService$$anon$2.call(CompletionService.scala:30)
 at java
.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java
.util.concurrent.FutureTask.run(FutureTask.java:166)
 at java
.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java
.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java
.util.concurrent.FutureTask.run(FutureTask.java:166)
 at java
.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at java
.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java
.lang.Thread.run(Thread.java:722)

Caused by: java.io.EOFException
 at java
.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:264)
 at java
.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:254)
 at java
.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:163)
 at java
.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:78)
 at sbt
.Using$$anonfun$gzipInputStream$1.apply(Using.scala:91)
 at sbt
.Using$$anonfun$gzipInputStream$1.apply(Using.scala:91)
 at sbt
.Using$$anon$1.openImpl(Using.scala:56)
 at sbt
.WrapUsing$$anonfun$open$2.apply(Using.scala:36)
 at sbt
.ErrorHandling$.translate(ErrorHandling.scala:11)
 at sbt
.WrapUsing.open(Using.scala:36)
 at sbt
.Using.apply(Using.scala:24)
 at sbt
.IO$$anonfun$gzipFileIn$1.apply(IO.scala:704)
 at sbt
.IO$$anonfun$gzipFileIn$1.apply(IO.scala:703)
 at sbt
.Using.apply(Using.scala:25)
 at sbt
.IO$.gzipFileIn(IO.scala:703)
 at sbt
.Sync$.readUncaught(Sync.scala:88)
 at sbt
.Sync$.readInfo(Sync.scala:84)
 at sbt
.Sync$$anonfun$apply$1.apply(Sync.scala:29)
 at sbt
.Sync$$anonfun$apply$1.apply(Sync.scala:23)
 at sbt
.Defaults$$anonfun$copyResourcesTask$1.apply(Defaults.scala:621)
 at sbt
.Defaults$$anonfun$copyResourcesTask$1.apply(Defaults.scala:617)
 at sbt
.Scoped$$anonfun$hf5$1.apply(Structure.scala:581)
 at sbt
.Scoped$$anonfun$hf5$1.apply(Structure.scala:581)
 at scala
.Function1$$anonfun$compose$1.apply(Function1.scala:49)
 at sbt
.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
 at sbt
.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
 at sbt
.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
 at sbt
.std.Transform$$anon$5.work(System.scala:71)
 at sbt
.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
 at sbt
.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
 at sbt
.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
 at sbt
.Execute.work(Execute.scala:238)
 at sbt
.Execute$$anonfun$submit$1.apply(Execute.scala:232)
 at sbt
.Execute$$anonfun$submit$1.apply(Execute.scala:232)
 at sbt
.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
 at sbt
.CompletionService$$anon$2.call(CompletionService.scala:30)
 at java
.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java
.util.concurrent.FutureTask.run(FutureTask.java:166)
 at java
.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java
.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java
.util.concurrent.FutureTask.run(FutureTask.java:166)
 at java
.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at java
.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java
.lang.Thread.run(Thread.java:722)

Does anyone know what's causing this and how to fix it?

Thanks!

Vasil Remeniuk

unread,
Aug 19, 2013, 6:50:42 AM8/19/13
to play-fr...@googlegroups.com
Had the same problem over the morning. SBT failed to run for any project.
Cleaning up SBT dir did the thing for me:

cd ~/.sbt
rm -rf `find . -name target`
Reply all
Reply to author
Forward
0 new messages