[
https://issues.apache.org/jira/browse/SLING-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Parvulescu updated SLING-2012:
-----------------------------------
Attachment: SLING-2012-dyn_var_fix.patch
see attached a small patch for the scala script engine.
it uses a DynamicVariable to synchronize access to the compilation.
Now the multi-threaded test appears to pass, but I have not tested the sling
apps
> Sling Scala Hello World example concurrent access fails
> -------------------------------------------------------
>
> Key: SLING-2012
> URL: https://issues.apache.org/jira/browse/SLING-2012
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Alex Parvulescu
> Priority: Minor
> Attachments: SLING-2012-dyn_var_fix.patch, SLING-2012-logs.zip,
> ScriptEngineTest.scala.zip
>
>
> https://cwiki.apache.org/confluence/display/SLING/Using+Scala+with+Sling
> Installed Scala Hello World. Checked
> http://localhost:8888/content/helloworld.html it works!
> Next, hit refresh 2/3 times, it breaks with 500 errors.
> I'll attach some error logs
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira