Open G33RY opened 1 month ago
Hi @G33RY,
Thank you for reaching out to us! Did you try testing with out latest version of GraalVM? You can find it here https://www.oracle.com/java/technologies/downloads/#graalvmjava17
Hi @selhagani,
I have tried it with the latest version 17.0.12, but no luck. Its still throwing the same warning.
Could you please create a github repo containing the reducer alongside the steps needed to reproduce the issue? Unfortunately we cannot use the zip file you provided since it's against our policy. Thank you!
Yes, sorry I did not know that! Here is the github repo (I even included the wildfly itself) https://github.com/G33RY/graalvm-test
Hi @G33RY,
I'm trying to reproduce the issue but I keep getting a different error. Could you please share the steps you used to reproduce the issue please?
Thank you
I am sorry. Here is a detailed step by step description: Firstly I am using Intellij Idea.
Thank you for the information you provided. I managed to reproduce the issue you're facing. We'll take a closer look into this and I'll make sure to keep updated.
Hi @G33RY,
Since you are using GraalVM and Truffle prior to 23.1 you need to install Graal.js using GU (Graal Updater) It is not supported to put Graal.JS on the classpath
Hi @selhagani ,
Maybe I am doing something wrong, but it's not working.
gu install js
I get this error:
No language and polyglot implementation was found on the classpath. Make sure the truffle-api.jar is on the classpath.
When I upgrade my graalsdk to 23.1.4 it gives me this:
No language and polyglot implementation was found on the module-path. Make sure at last one language is added to the module-path
Did you try to add the maven dependency for truffle? you can find it here
Okay I got a different error:
A language with id 'js' is not installed. Installed languages are: [].
Thats strange because Wildfly starts with these config params:
JBoss Bootstrap Environment
JBOSS_HOME: /Users/G33RY/Projects/testgraalvm/wildfly26
JAVA: /Users/G33RY/Library/Java/JavaVirtualMachines/graalvm-ce-17.0.12/Contents/Home/bin/java
JAVA_OPTS: -server -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:64177,suspend=y,server=n -javaagent:/Users/G33RY/Library/Caches/JetBrains/IntelliJIdea2024.2/captureAgent/debugger-agent.jar -Dkotlinx.coroutines.debug.enable.creation.stack.trace=false -Ddebugger.agent.enable.coroutines=true --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldaps=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED -Djava.security.manager=allow
I ran this command to be exact:
/Users/G33RY/Library/Java/JavaVirtualMachines/graalvm-ce-17.0.12/Contents/Home/bin/gu install js
Result:
Downloading: Artifacts catalog from gds.oracle.com
Processing Component: Graal.js
Component Graal.js (org.graalvm.js) is already installed.
And when I run gu list
ComponentId Version Component name Stability Origin
---------------------------------------------------------------------------------------------------------------------------------
graalvm 23.0.5 GraalVM Core Supported
icu4j 23.0.5 ICU4J Supported gds.oracle.com
js 23.0.5 Graal.js Supported gds.oracle.com
native-image 23.0.5 Native Image Early adopter
regex 23.0.5 TRegex Supported gds.oracle.com
I have searched solutions for this and everyone said that I should run the gu install js
command. I have already ran this command, so I don't know why it's not installed.
Describe GraalVM and your environment :
java -Xinternalversion
:Describe the issue I want to run javascript code in my java web application that runs on Widfly 26. I get this warning every time:
I am running wildfly on GraalVM so I dont know what would be the solution here. I dont want to supress the warning because I need the better performance of the normal mode.
I have imported these dependecies:
Code snippet or code repository that reproduces the issue testgraalvm.zip