-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actor Crash on Code Submit #134
Comments
Follow up, the command |
Issue resolved. Solved by removing the security arguments from the ant command in the config.rb file and commenting out the javadaemon mention just below. |
Sorry there were no docs on that. The initial version of CodeWorkout used ANT (using the settings in that config.rb file). This took 1-2 seconds per Java submission to process, and the JVM startup was very CPU intensive (and very difficult to speed up). Now, the default config.rb in the production branch (and also master) is set to use a custom daemon process that provides for a "live" (already started) JVM to do compilation and execution, which increased throughput more than 30x. Using ANT is fine during development, but is not advisable for production. The settings are still in there, since this is the fallback we typically use during development when the stand-alone Java processing daemon process isn't available. However, ANT isn't recommended for production. You'll find that the ANT support no longer correctly reports compiler errors. That's fixable, but if you see submissions with /no/ feedback at all, that may be because compilation silently failed and the errors weren't reported properly. This is due to slightly different formatting of error messages in the standard compiler text output produced via ANT, vs. the internal java compiler calls made by the stand-alone Java daemon. Open another issue if you run into anything separate. Glad you found the problem and were able to get by it, though. |
No problem and thank you for the heads-up on not using ANT for production. Any advice on setting up my own JVM daemon? I just noticed that you're absolutely right: some of the exercises don't provide any feedback whatsoever. I'd like feedback to be seen by the user for any reason. Thanks again |
I've been working on setting up a server for hosting code workout, however when I attempt to submit code through the running rails server, I get that the actor has crashed. The resulting error is below:
The ports are configured correctly as far as I can tell on the guest as well as the host but I don't think the java-daemon is running. Is there a well-documented cause for this error?
The text was updated successfully, but these errors were encountered: