playframework / play-scala-websocket-example

Example Play Scala application showing WebSocket use with Akka actors
https://developer.lightbend.com/start/?group=play
Creative Commons Zero v1.0 Universal
195 stars 69 forks source link

ArrayIndexOutOfBoundsException #93

Open rahulch opened 7 years ago

rahulch commented 7 years ago

Ran into the following error on sbt run as of commit : dad8d28dd69a42032c98884d64c63177c94050cb

Warning: node.js detection failed, sbt will use the Rhino based Trireme JavaScript engine instead to run JavaScript assets compilation, which in some cases may be orders of magnitude slower than using node.js.
[info] CoffeeScript compiling on 1 source(s)
[info] LESS compiling on 1 source(s)
[error] Wrapped java.lang.ArrayIndexOutOfBoundsException: -30219 (module.js#439)Wrapped java.lang.ArrayIndexOutOfBoundsException: -30219
[error]     at module.js:439
[error]     at module.js:474
[error]     at module.js:356
[error]     at module.js:312
[error]     at module.js:364
[error]     at require (module.js:380)
[error]     at /Users/admin/Work/play-scala-websocket-example/project/target/node-modules/webjars/coffee-script/lib/coffee-script/coffee-script.js:14
[error]     at /Users/admin/Work/play-scala-websocket-example/project/target/node-modules/webjars/coffee-script/lib/coffee-script/coffee-script.js:2
[error]     at module.js:456
[error]     at module.js:474
[error]     at module.js:356
[error]     at module.js:312
[error]     at module.js:364
[error]     at require (module.js:380)
[error]     at /Users/admin/Work/play-scala-websocket-example/project/target/coffeescript/coffee.js:7
[error]     at /Users/admin/Work/play-scala-websocket-example/project/target/coffeescript/coffee.js:3
[error]     at module.js:456
[error]     at module.js:474
[error]     at module.js:356
[error]     at module.js:312
[error]     at module.js:497
[error]     at startup (trireme.js:142)
[error]     at trireme.js:923
[error] com.typesafe.sbt.jse.SbtJsTask$JsTaskFailure: Wrapped java.lang.ArrayIndexOutOfBoundsException: -30219 (module.js#439)Wrapped java.lang.ArrayIndexOutOfBoundsException: -30219
[error]     at module.js:439
[error]     at module.js:474
[error]     at module.js:356
[error]     at module.js:312
[error]     at module.js:364
[error]     at require (module.js:380)
[error]     at /Users/admin/Work/play-scala-websocket-example/project/target/node-modules/webjars/coffee-script/lib/coffee-script/coffee-script.js:14
[error]     at /Users/admin/Work/play-scala-websocket-example/project/target/node-modules/webjars/coffee-script/lib/coffee-script/coffee-script.js:2
[error]     at module.js:456
[error]     at module.js:474
[error]     at module.js:356
[error]     at module.js:312
[error]     at module.js:364
[error]     at require (module.js:380)
[error]     at /Users/admin/Work/play-scala-websocket-example/project/target/coffeescript/coffee.js:7
[error]     at /Users/admin/Work/play-scala-websocket-example/project/target/coffeescript/coffee.js:3
[error]     at module.js:456
[error]     at module.js:474
[error]     at module.js:356
[error]     at module.js:312
[error]     at module.js:497
[error]     at startup (trireme.js:142)
[error]     at trireme.js:923
[error] 
[error]     at com.typesafe.sbt.jse.SbtJsTask$.$anonfun$executeJsOnEngine$1(SbtJsTask.scala:218)
[error]     at scala.util.Success.$anonfun$map$1(Try.scala:251)
[error]     at scala.util.Success.map(Try.scala:209)
[error]     at scala.concurrent.Future.$anonfun$map$1(Future.scala:287)
[error]     at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)
[error]     at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)
[error]     at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
[error]     at scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:140)
[error]     at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
[error]     at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
[error]     at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
[error]     at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Robanvdd commented 7 years ago

I'm running into the same issues, but I'm only compiling CoffeeScript. Also, the errors dissapear when I'm using node.js

stmi commented 6 years ago

Same solution as above - I've installed node10 on my system and test/run work just fine.

aknay commented 5 years ago

The freshly downloaded WebSocket example still having the same issue. I can confirm that installing node.js solve this problem.