3

在 Windows 7 崩溃后,我的 Play 框架项目似乎被破坏了。

我的版本:

play --version
sbt launcher version 0.12.2

在我的项目文件夹中运行任何播放命令都会出现此错误:

C:\dev\myproject>play clean
[info] Loading project definition from C:\dev\myproject\project
Error wrapping InputStream in GZIPInputStream: java.util.zip.ZipException: Not in GZIP format
        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(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(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.util.zip.ZipException: Not in GZIP format
        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: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(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(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:copy-resources) Error wrapping InputStream in GZIPInputStream: java.util.zip.ZipException: Not in GZIP
format
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i
[warn] Ignoring load failure: no project loaded.
[error] Not a valid command: clean (similar: last, eval)
[error] clean
[error]      ^

谷歌搜索没有帮助。堆栈跟踪也对我没有帮助,它没有说明是哪个文件/资源​​导致的。我没有对项目进行任何更改。唯一的“区别”是 Windows 崩溃,可能是在运行某些播放命令时。

重新创建播放安装...同样的错误。

4

3 回答 3

17

要解决此问题,您必须删除“项目”和“目标”文件夹。它们可以在您的游戏项目中另一个名为“项目”的文件夹中找到。

于 2013-10-22T14:26:26.463 回答
3

不知道是什么原因造成的,或者如何正确解决它。一个有意义的例外会很好。

但对我来说,解决方法是从版本控制中获得新的结帐

于 2013-10-11T10:49:31.433 回答
1

我刚刚花了 4 个小时试图修复这个错误,结果发现我的主目录(ubuntu)中的另一个文件夹被命名为 project。重命名此文件夹为我解决了这个问题。

于 2013-12-23T00:25:18.147 回答