Questions tagged [graalvm]

Graal is a just-in-time compiler for the JVM focused on peak performance and multi-language support. Graal offers performance advantages not only to Java code, but also to scripting languages such as JavaScript, Ruby, and R.

GraalVM is a universal virtual machine for running applications written in , , , , JVM-based languages like , , , , and LLVM-based languages such as and .

GraalVM removes the isolation between programming languages and enables interoperability in a shared runtime. It can run either standalone or in the context of OpenJDK, Node.js, Oracle Database, or MySQL.

Userful links:

Official site

GitHub

Wikipedia

752 questions
0
votes
1 answer

Execution Java application on Graalvm with JDK 11 gives error

When I use graalvm with OpenJDK 11 to run a Java application, something is going wrong. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f0fb81bf309, pid=22652, tid=22653 # # JRE version: OpenJDK…
jzdayz
  • 11
  • 1
0
votes
1 answer

Does implementing graalvm on a spring batch application improve its performance

Am working on a spring batch job that processes millions of records during a period of 5-6 hrs every time it's run. The application runs of java 8 and i was wondering if making that batch job run on graalvm would add any significant performance.
0
votes
1 answer

micronaut - java.lang.IllegalAccessError graalvm native compilation for external dependency

I'm trying to use a custom external library in a micronaut service (aws lambda via api gateway with graalvm native compilation) I have a few classes in my library that need to be used by jackson during the deserialization. So, I added my classes…
0
votes
1 answer

Graalvm Couchbase client not working. How to fix fix?

Graalvm native executable not working with couchbase java client. How to fix it ? Warning: RecomputeFieldValue.ArrayIndexScale automatic substitution failed. The automatic substitution registration was attempted because a call to…
previousdeveloper
  • 315
  • 2
  • 6
  • 12
0
votes
1 answer

Generate native image quarkus rest-client-quickstart with centos-quarkus-maven:19.2.1 fails

Stack: Host os windows10 and centos-quarkus-maven:19.2.1 container openjdk version "1.8.0_232" OpenJDK Runtime Environment (build 1.8.0_232-20191008104205.buildslave.jdk8u-src-tar--b07) OpenJDK 64-Bit GraalVM CE 19.2.1 (build…
jcsim
  • 11
  • 2
0
votes
0 answers

Could not instantiate SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException): is the version of xbean.jar correct?

I am writing an application to export data to an Excel sheet. I downloaded the Apache POI libraries and I included the following libraries to my project: - poi-4.0.1.jar While converting jar to native image using graalvm, I'm getting the following…
0
votes
1 answer

Can you remotely debug Graal.js script running inside Graal JVM?

I am running Java program on Graal JVM (graalvm-ce-java8-19.3.0), and inside that program I run JS scripts via Graal.js engine. I want to configure remote debugging connection for that JS script (not the Java program). I already found that Graal has…
tporeba
  • 867
  • 10
  • 23
0
votes
1 answer

Accessing JavaScript array through Java with graal.js

I am migrating a project from Nashorn to graal.js. The project utilizes a large amount of scripts (over 3,400) and there's a function on the Java side which invokes a method; the method returns a JavaScript list of objects. function…
shavit
  • 842
  • 1
  • 7
  • 17
0
votes
1 answer

GraalVM Polyglot can't load Java class

Want migrate from Nashorn to GraalVM. Installed Graal VM CE openjdk version "11.0.5" 2019-10-15 OpenJDK Runtime Environment (build 11.0.5+10-jvmci-19.3-b05-LTS) OpenJDK 64-Bit GraalVM CE 19.3.0 (build 11.0.5+10-jvmci-19.3-b05-LTS, mixed mode,…
Woland
  • 623
  • 2
  • 13
  • 31
0
votes
1 answer

Making a new Programming Language in a new Character Set in GraalVM

The question is just out of curiosity. Does Graal & Truffle support making a programming language in a new character set? That is, if I want to implement a new programming language in a character set which is neither Unicode nor ASCII, like EBCDIC,…
0
votes
1 answer

How to use Graalvm's Truffle framework with Groovy?

The Graalvm jdk uses the Truffle framework to call functions and receive objects from other languages, such as R, Python, Ruby and Javascript. How can I use it from Groovy? Can I call it's APIs using Groovy code? Or do I have to call the Truffle…
dilvan
  • 2,109
  • 2
  • 20
  • 32
0
votes
1 answer

Native binary debug with GraalVM CE

I'm using Quarkus with GraalVM CE. For developing, it's possible to enable debug mode with maven and it works fine. But after generation native binary (validation, production platforms), what are the best practices for debugging? Which tools could…
Malys
  • 61
  • 1
  • 5
0
votes
1 answer

How to attach graalvm-ce-19.2.0 source code in IDE?

I installed graalvm-ce-19.2.0 (/usr/lib/jvm/graalvm-ce-19.2.0/bin/java) and GraalVM contains /usr/lib/jvm/graalvm-ce-19.2.0/src.zip file. All java core files are open fine but not classes from org.graalvm.polyglot.*. How to attach sources to Eclipse…
P_M
  • 2,723
  • 4
  • 29
  • 62
0
votes
1 answer

Can't execute AWS Lambda function built with Micronaut and Graal: Error decoding JSON stream

I built a native java AWS Lambda function using Graal and Micronaut as explained here After deploying it to AWS Lambda (custom runtime), I can't successfully execute it. The error that AWS shows is: { "errorType": "Runtime.ExitError", …
Tiago Peixoto
  • 335
  • 3
  • 11
0
votes
1 answer

Equivalent of Nashorn's importPackage in graal.js script engine

I am migrating old code from JDK 8 to JDK 12. In the process, I have noticed importPackage does not exist when using the "graal.js" script engine. It exists when using "javascript" for the script engine. Is there any way to achieve the same…
shavit
  • 842
  • 1
  • 7
  • 17