Typesafe Activator在尝试运行UI时抛出java.lang.IllegalArgumentException

时间:2014-10-09 16:42:07

标签: typesafe-activator

我正在尝试运行Typesafe激活器的UI。当我运行它时,它就像是成功下载所有内容,但抛出了java.lang.IlleagalArgumentException。我已多次尝试运行它,但我一直收到此错误:

Checking for a newer version of Activator (current version 1.2.10)...
   ... our current version 1.2.10 looks like the latest.
Found previous process id: 2816
FOUND REPO = activator-local @ file://C:/Users/Elijah/.activator/repository
java.lang.IllegalArgumentException: URI has an authority component
        at java.io.File.<init>(File.java:423)
        at activator.UIMain$$anonfun$2.applyOrElse(UIMain.scala:103)
        at activator.UIMain$$anonfun$2.applyOrElse(UIMain.scala:100)
        at scala.PartialFunction$$anonfun$runWith$1.apply(PartialFunction.scala:
136)
        at scala.PartialFunction$$anonfun$runWith$1.apply(PartialFunction.scala:
135)
        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimize
d.scala:33)
        at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
        at scala.collection.TraversableLike$class.collect(TraversableLike.scala:
282)
        at scala.collection.mutable.ArrayOps$ofRef.collect(ArrayOps.scala:186)
        at activator.UIMain.run(UIMain.scala:100)
        at activator.UIMain.run(UIMain.scala:87)
        at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
        at xsbt.boot.Launch$.withContextLoader(Launch.scala:129)
        at xsbt.boot.Launch$.run(Launch.scala:109)
        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36)
        at xsbt.boot.Launch$.launch(Launch.scala:117)
        at xsbt.boot.Launch$.apply(Launch.scala:19)
        at xsbt.boot.Boot$.runImpl(Boot.scala:44)
        at xsbt.boot.Boot$.main(Boot.scala:20)
        at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.lang.IllegalArgumentException: URI has an autho
rity component
Press any key to continue . . .

我想不出还有什么可做的。这是一个可以解决的问题吗?我试过谷歌,但没有发现任何用处。

2 个答案:

答案 0 :(得分:0)

我通过将激活器目录的位置从“我的文档”移动到“c:\ tmp”来修复了同样的错误。

此链接包含路径不得包含空格的详细信息:https://www.playframework.com/documentation/2.3.x/Installing

答案 1 :(得分:0)

检查文件C:/Users/Elijah/.activator/repository.sbt/repository是否包含带有两个正斜杠的file://引用。在文件引用中添加第三个斜杠,然后重试。我有一个与SBT类似的问题,这解决了它。请注意,激活器往往会覆盖它。

有关详情,请参阅this post