问题描述
我尝试运行名为“play-java-jpa-example”示例 downloaded from the official Play 2.0 site 的 Play 2.8.x 框架示例。仅提供源代码版本 here。我单独提到它们,因为下载链接还包括捆绑的 sbt 版本。
我尝试了以下方法:
- 使用与 zip 文件一起提供的 SBT 版本 1.3.13。
- 使用 SBT version 1.5.1),而不是 .zip 中提供的版本。
当我输入 sbt run 时,服务器似乎启动了,但是当我进入页面 http://localhost:9000 时 我得到的错误如下:
JsTaskFailure: Wrapped java.lang.Arrayindexoutofboundsexception (module.js#439)Wrapped java.lang.Arrayindexoutofboundsexception
at module.js:439:0
at module.js:474:0
at module.js:356:0
at module.js:312:0
at module.js:364:0
at require (module.js:380:0)
at /home/ubuntu/projects/play-samples-play-java-jpa-example/project/target/node-modules/webjars/coffee-script/lib/coffee-script/coffee-script.js:14:0
at /home/ubuntu/projects/play-samples-play-java-jpa-example/project/target/node-modules/webjars/coffee-script/lib/coffee-script/coffee-script.js:2:0
at module.js:456:0
at module.js:474:0
at module.js:356:0
at module.js:312:0
at module.js:364:0
at require (module.js:380:0)
at /home/ubuntu/projects/play-samples-play-java-jpa-example/project/target/coffeescript/coffee.js:7:0
at /home/ubuntu/projects/play-samples-play-java-jpa-example/project/target/coffeescript/coffee.js:3:0
at module.js:456:0
at module.js:474:0
at module.js:356:0
at module.js:312:0
at module.js:497:0
at startup (trireme.js:142:0)
at trireme.js:923:0
值得注意的是,其他一些示例也有效,例如Rest API example 效果很好。 我尝试在 Windows 和 Linux 中使用该示例,结果相同。
是否遗漏了什么或只是示例不起作用?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)