Error wrapping InputStream in GZIPInputStream: java.io.EOFException

1,146 views
Skip to first unread message

Matthias Verstraete

unread,
Mar 3, 2014, 3:20:36 AM3/3/14
to play-fr...@googlegroups.com
Hy,

I recently started having problems with my play project (which worked perfectly fine before).
Whenever I try to start the play application with "play debug" I get the same error:

Error wrapping InputStream in GZIPInputStream: java.io.EOFException
        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:778)
        at sbt.IO$$anonfun$gzipFileIn$1.apply(IO.scala:777)
        at sbt.Using.apply(Using.scala:25)
        at sbt.IO$.gzipFileIn(IO.scala:777)
        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:770)
        at sbt.Defaults$$anonfun$copyResourcesTask$1.apply(Defaults.scala:766)
        at scala.Function4$$anonfun$tupled$1.apply(Function4.scala:35)
        at scala.Function4$$anonfun$tupled$1.apply(Function4.scala:34)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
        at sbt.std.Transform$$anon$4.work(System.scala:64)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
        at sbt.Execute.work(Execute.scala:244)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
        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.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException
        at java.util.zip.GZIPInputStream.readUByte(Unknown Source)
        at java.util.zip.GZIPInputStream.readUShort(Unknown Source)
        at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
        at java.util.zip.GZIPInputStream.<init>(Unknown Source)
        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:778)
        at sbt.IO$$anonfun$gzipFileIn$1.apply(IO.scala:777)
        at sbt.Using.apply(Using.scala:25)
        at sbt.IO$.gzipFileIn(IO.scala:777)
        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:770)
        at sbt.Defaults$$anonfun$copyResourcesTask$1.apply(Defaults.scala:766)
        at scala.Function4$$anonfun$tupled$1.apply(Function4.scala:35)
        at scala.Function4$$anonfun$tupled$1.apply(Function4.scala:34)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
        at sbt.std.Transform$$anon$4.work(System.scala:64)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
        at sbt.Execute.work(Execute.scala:244)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
        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.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[error] (compile:copyResources) Error wrapping InputStream in GZIPInputStream: java.io.EOFException
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q

This seems to be only a problem with this project, no other projects have this problem. This means that something is probably wrong in the settings or something like that. I have tried several things now. I found suggestions on google which did not help. Is there anyone who knows what causes this or how to fix it.
I work with intellij idea and play 2.2.2

Thanks

Nilanjan Raychaudhuri

unread,
Mar 3, 2014, 10:07:28 AM3/3/14
to play-fr...@googlegroups.com
Wild guess - do you have any static content as .gz files?

Nilanjan, Developer & Consultant
Typesafe Inc.
Twitter: @nraychaudhuri

Matthias Verstraete

unread,
Mar 3, 2014, 10:21:36 AM3/3/14
to play-fr...@googlegroups.com
No, I do not, but I deleted the entire project folder and cloned the repository again. That "solved" the problem.


--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/67kZ39cWjKc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages