0
我的Windows 7與Java 8爲什麼激活器在創建新的播放項目時失敗,出現「IllegalArgumentException:需求失敗」?
我試圖按照以下步驟創建一個新的播放Framework項目:
activator new proj play-java
我得到下面的異常來代替。
[WARN] [11/15/2014 15:41:45.884] [default-akka.actor.default-dispatcher-3] [ActorSystem(default)] Failed to download new template catalog properties: java.lang.IllegalArgumentException: requirement failed: Source file 'C:\Users\Joe\.activator\1.2.10\templates\index.db_f57d6c4e52990e27.tmp' is a directory.
[INFO] [11/15/2014 15:41:45.886] [default-akka.actor.default-dispatcher-3] [akka://default/user/template-cache] We have index hash 92e262205ed9cd3af57575198c66ca1f74dfab63 but haven't downloaded that index - attempting to download it now.
[ERROR] [11/15/2014 15:41:46.210] [default-akka.actor.default-dispatcher-3] [akka://default/user/template-cache] Could not find a template catalog. (java.lang.IllegalArgumentException: requirement failed: Source file 'C:\Users\Joe\.activator\1.2.10\templates\index.db_687dfd4721d5d98b.tmp' is a directory.
java.lang.IllegalArgumentException: requirement failed: Source file 'C:\Users\Joe\.activator\1.2.10\templates\index.db_687dfd4721d5d98b.tmp' is a directory.
at scala.Predef$.require(Predef.scala:219)
at sbt.IO$.copyFile(IO.scala:584)
at sbt.IO$.move(IO.scala:786)
at activator.package$RichIO$.createViaTemporary$extension(package.scala:30)
at activator.templates.repository.UriRemoteTemplateRepository$$anonfun$resolveIndexTo$1.apply(UriRemoteTemplateRepository.scala:228)
at activator.templates.repository.UriRemoteTemplateRepository$$anonfun$resolveIndexTo$1.apply(UriRemoteTemplateRepository.scala:220)
at sbt.IO$.withTemporaryDirectory(IO.scala:291)
at activator.templates.repository.UriRemoteTemplateRepository.resolveIndexTo(UriRemoteTemplateRepository.scala:220)
at activator.cache.TemplateCacheActor$$anonfun$9.apply(TemplateCacheActor.scala:165)
at activator.cache.TemplateCacheActor$$anonfun$9.apply(TemplateCacheActor.scala:163)
java.lang.IllegalArgumentException: requirement failed: Source file 'C:\Users\Joe\.activator\1.2.10\templates\index.db_687dfd472
java.lang.IllegalArgumentException: requirement failed: Source file 'C:\Users\Joe\.activator\1.2.10\templates\index.db_687dfd472
at scala.Option.foreach(Option.scala:245)1d5d98b.tmp' is a directory.
at activator.cache.TemplateCacheActor.preStart(TemplateCacheActor.scala:163)
at scala.Predef$.require(Predef.scala:219)
at akka.actor.Actor$class.aroundPreStart(Actor.scala:470)
at sbt.IO$.copyFile(IO.scala:584)
at activator.cache.TemplateCacheActor.aroundPreStart(TemplateCacheActor.scala:25)
at sbt.IO$.move(IO.scala:786)
at sbt.IO$.move(IO.scala:786)
at akka.actor.ActorCell.create(ActorCell.scala:580)
at activator.package$RichIO$.createViaTemporary$extension(package.scala:30)
at activator.package$RichIO$.createViaTemporary$extension(package.scala:30)
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
at activator.templates.repository.UriRemoteTemplateRepository$$anonfun$resolveIndexTo$1.apply(UriRemoteTemplateRepository.scala at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478):228):228)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)
at activator.templates.repository.UriRemoteTemplateRepository$$anonfun$resolveIndexTo$1.apply(UriRemoteTemplateRepository.scala at activator.templates.repository.UriRemoteTemplateRepository$$anonfun$resolveIndexTo$1.apply(UriRemoteTemplateRepository.scala at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393):220)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at sbt.IO$.withTemporaryDirectory(IO.scala:291)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at activator.templates.repository.UriRemoteTemplateRepository.resolveIndexTo(UriRemoteTemplateRepository.scala:220)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at activator.cache.TemplateCacheActor$$anonfun$9.apply(TemplateCacheActor.scala:165)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
at activator.cache.TemplateCacheActor$$anonfun$9.apply(TemplateCacheActor.scala:163)
at activator.cache.TemplateCacheActor$$anonfun$9.apply(TemplateCacheActr.scala:163)
at scala.Option.foreach(Option.scala:245)
at activator.cache.TemplateCacheActor.preStart(TemplateCacheActor.scala:163)
at akka.actor.Actor$class.aroundPreStart(Actor.scala:470)
at activator.cache.TemplateCacheActor.aroundPreStart(TemplateCacheActor.scala:25)
at akka.actor.ActorCell.create(ActorCell.scala:580)
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
我下載了完整的激活器安裝包。我對它進行了更新,以確保每件文件都具有權限。堆棧跟蹤中的index.db_687dfd472
文件確實是一個目錄,但它必須在執行該命令期間創建。我已經刪除了.activator
項目並重新運行該命令,但它保持失敗並出現相同的錯誤。
它被激活器問題跟蹤器交叉點設置爲https://github.com/typesafehub/activator/issues/785。 我會用任何答案更新其他網站。
你可以做'激活'重新啓動'看看是否有幫助嗎?你使用什麼命令行客戶端 - 「cmd.exe」或其他類似'cygwin'或'powershell'的東西?你是否可以在代理之後? –
我正在使用cmd.exe。沒有代理。正在運行激活程序重新啓動只會顯示自述文本。我能夠使用UI版本創建項目,所以我可以關閉它,但仍然是一個奇怪的錯誤。 –