Skip to content
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

LuaScriptEngineFactory not found / Attempt to index ? a null value #106

Open
hexadecimal-chocolate opened this issue Jul 5, 2022 · 0 comments

Comments

@hexadecimal-chocolate
Copy link

I'm making a plugin for another java application in which I have no control over when my jar is loaded.

For some reason when starting, this message pops up in the console:
ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider org.luaj.vm2.script.LuaScriptEngineFactory not found
It seems to load the META-INF/services of luaj without loading the classes.

I'm not sure if it's related, but when I run this line:
globals.load(new Bit32Lib());
I get this error:
Caused by: org.luaj.vm2.LuaError: attempt to index ? (a nil value) at org.luaj.vm2.LuaValue.error(Unknown Source) at org.luaj.vm2.LuaValue.indexerror(Unknown Source) at org.luaj.vm2.LuaValue.gettable(Unknown Source) at org.luaj.vm2.LuaValue.get(Unknown Source) at org.luaj.vm2.lib.Bit32Lib.call(Unknown Source) at org.luaj.vm2.LuaValue.load(Unknown Source)
This error occurs when loading any of the default libraries except BaseLib.

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

No branches or pull requests

1 participant