Trireme Script Thread

120 views
Skip to first unread message

Patrick Simon

unread,
Jul 22, 2014, 8:46:00 PM7/22/14
to play-fr...@googlegroups.com
Hi All,

Trying to get a dev environment working via activator run

Get this in the console:

[info] CoffeeScript compiling on 238 source(s)
[ERROR] [07/23/2014 10:39:16.657] [Trireme Script Thread] [akka://sbt-web/user/$b/trireme-shell] Problem completing Trireme. Throwing exception, meanwhile here's the Trireme problem
org.mozilla.javascript.WrappedException: Wrapped java.util.concurrent.TimeoutException: Futures timed out after [30 seconds] (/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apige
e/trireme/node10/node/net.js#663)
        at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
        at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
        at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
        at io.apigee.trireme.node10.node.net._c_createWriteReq_48(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/net.js:663)
        at io.apigee.trireme.node10.node.net.call(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/net.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
        at io.apigee.trireme.node10.node.net._c_anonymous_46(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/net.js:640)
        at io.apigee.trireme.node10.node.net.call(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/net.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
        at io.apigee.trireme.node10.node._stream_writable._c_doWrite_15(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/_stream_writable.js:221)
        at io.apigee.trireme.node10.node._stream_writable.call(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/_stream_writable.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
        at io.apigee.trireme.node10.node._stream_writable._c_writeOrBuffer_14(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/_stream_writable.js:211)
        at io.apigee.trireme.node10.node._stream_writable.call(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/_stream_writable.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
        at io.apigee.trireme.node10.node._stream_writable._c_anonymous_11(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/_stream_writable.js:180)
        at io.apigee.trireme.node10.node._stream_writable.call(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/_stream_writable.js)
        at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
        at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
        at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
        at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
        at io.apigee.trireme.node10.node.net._c_anonymous_45(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/net.js:613)
        at io.apigee.trireme.node10.node.net.call(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/net.js)
        at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
        at io.apigee.trireme.node10.node.console._c_anonymous_4(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/console.js:53)
        at io.apigee.trireme.node10.node.console.call(/Users/Apigee/src/noderunner/node10/node10src/src/main/javascript/io/apigee/trireme/node10/node/console.js)
        at org.mozilla.javascript.BoundFunction.call(BoundFunction.java:53)
        at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
Using:

- Windows 8.1
- Jdk 1.7


To get around this I have tried the following command
set SBT_OPTS="-Dsbt.jse.engineType=Node"

After this.. the build simply hangs with no messaging of what the problem is.

The more I use playframework, the more I sense that it is really targeted to to the mac, *nix world.

Patrick.


James Roper

unread,
Jul 23, 2014, 4:09:15 AM7/23/14
to play-framework
This has nothing to do with mac or *nix.  It's a bug in Play, we shouldn't be waiting only 30 seconds for 238 CoffeeScript files to compile.

One way that you can work around this is to install nodejs, and then configure Play to use node instead (see instructions here https://github.com/sbt/sbt-js-engine).  This will actually be quite good for you, since it will make your build a lot faster.

I've raised a bug here:



--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
James Roper
Software Engineer

Typesafe – Build reactive apps!
Twitter: @jroper

Patrick Simon

unread,
Jul 23, 2014, 5:48:58 AM7/23/14
to play-fr...@googlegroups.com
Thanks for replying and raising the bug!

I did try this on a linux machine and didn't experience the timeouts so that's why I put it down to the OS.

I actually do have nodejs installed locally with the coffee-script module (and it's all set in the PATH and working outside of play)

If you follow the instructions for sbt-js-engine they advice to set set SBT_OPTS="-Dsbt.jse.engineType=Node"

After I did this, I run "activator run" and I can see a lot of node processes running.. yet the last line in the activator console is "[info] CoffeeScript compiling on 238 source(s)" and then it appears to hang (ie.. nothing is printed to console for about an hour) 
Reply all
Reply to author
Forward
0 new messages