nodejs Interoperability problem #3813
-
i run a nodejs project on graavm, i want take a jsfunction extends a java interface, but is not work Exception in thread "OkHttp Dispatcher" java.lang.IllegalStateException: Multi threaded access requested by thread T |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @yang-uamng, can you provide some JS code to reproduce this issue? In general, the error message suggests that you are trying to access a JS object in a multi-threaded application. This is not allowed for JS objects, as discussed here: https://www.graalvm.org/reference-manual/js/Multithreading/ and here: https://medium.com/graalvm/multi-threaded-java-javascript-language-interoperability-in-graalvm-2f19c1f9c37b |
Beta Was this translation helpful? Give feedback.
Hi @yang-uamng, can you provide some JS code to reproduce this issue? In general, the error message suggests that you are trying to access a JS object in a multi-threaded application. This is not allowed for JS objects, as discussed here: https://www.graalvm.org/reference-manual/js/Multithreading/ and here: https://medium.com/graalvm/multi-threaded-java-javascript-language-interoperability-in-graalvm-2f19c1f9c37b