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

Error running static method #73

Open
hamzadahmani opened this issue Oct 12, 2022 · 0 comments
Open

Error running static method #73

hamzadahmani opened this issue Oct 12, 2022 · 0 comments

Comments

@hamzadahmani
Copy link

hello
application crash after running the server
using node v16
java 0.12.2

var cl = java.callStaticMethodSync("java.lang.ClassLoader","getSystemClassLoader")
^

Error: Error running static method
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:233)
at java.base/java.lang.invoke.MethodHandleImpl$1.reflectiveInvoker(MethodHandleImpl.java:1653)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:131)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)

at Array.async.auto.loadClass (C:\Users\21625\Desktop\********\node_modules\jasper-for-node\index.js:168:18)
at listener (C:\Users\21625\Desktop\********\node_modules\jasper-for-node\node_modules\async\lib\async.js:490:46)
at C:\Users\21625\Desktop\********\node_modules\jasper-for-node\node_modules\async\lib\async.js:441:17
at _each (C:\Users\21625\Desktop\********\node_modules\jasper-for-node\node_modules\async\lib\async.js:46:13)
at Immediate.taskComplete (C:\Users\21625\Desktop\********\node_modules\jasper-for-node\node_modules\async\lib\async.js:440:13)
at processImmediate (node:internal/timers:466:21) {

cause: nodeJava_java_lang_NullPointerException {}
}

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