Skip to content

Internal ServiceConfigurationError when Script Engine is created #8

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

Closed
jpsacha opened this issue May 9, 2023 · 0 comments
Closed
Assignees
Labels

Comments

@jpsacha
Copy link
Member

jpsacha commented May 9, 2023

When javax.script.ScriptEngineManager is attempting to list available script engines, numerous ServiceConfigurationError are internally generated resulting in printouts to standard error output that look like:

ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider org.scijava.plugins.scripting.scala.ScalaScriptLanguage could not be instantiated
ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider dotty.tools.repl.ScriptEngine$Factory could not be instantiated

While the code still works and test are passing this is producing confusing printouts and slows down the execution of the scripts, tests are running about twice as long as without that issue.

The issue was introduced after META-INF/services/javax.script.ScriptEngineFactory was added #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant