Comments (3)
Hi @dandelion2,
Thank you for reaching out to us.
Could you please share the version of GraalVM you're using, your OS, your system's architecture and a concise reproducer alongside the steps needed to reproduce the issue?
I understand that the execution of the script multiple times may end up leading to the issue not manifesting consistently but we still need it to test nevertheless.
Thank you
from graal.
The version of GraalVM I am using is graalvm-ce-java11-linux-amd64-22.3.1. The reproduction script, with business processing logic removed, is as follows:
Java code:
// Query the database
public Map<String, Object> queryForMap(final String sql, Object ... args) {
if (StringUtils.isBlank(sql)){
throw new DandelionException("mysql queryForMap error, SQL must not be null");
}
// SQL validation
checkSql(sql);
try {
return jdbcTemplate.queryForMap(sql, args);
} catch (EmptyResultDataAccessException e){
return null;
} catch (Exception e) {
throw new DandelionException("mysql queryForMap error,"+e.getMessage(), e);
}
}
// Register Java object
context.eval("js", "var jdbcClient = Java.type('com.example.JsJdbc').create()");
JavaScript code:
const selectSql = "SELECT code, product_id as productId, ts_storage_id as tsStorageId FROM device WHERE id = ?";
const deviceInfo = jdbcClient.queryForMap(selectSql, "1682293037722628098");
from graal.
Could you try testing with the latest available GraalVM version to see if the issue still presist? You can find it using this link: https://github.com/graalvm/graalvm-ce-builds/releases
from graal.
Related Issues (20)
- ScriptEngine does not support `require()`
- [GR-57127] Native Image generated by `native-image` tool is not working with ZoomBA project HOT 4
- [GR-56749] Missing Documentation Video/Tutorial HOT 2
- Failure to build libgraal on OpenJDK change
- [GR-56882] PLDI 2017, June 18-23, Barcelona, Spain presentation and video unavailable. HOT 4
- Got ClassNotFoundException while building native image with grpc-netty-shaded HOT 2
- native-image-configure tool is throwing a ClassCastException on latest Oracle EA Build HOT 6
- Getting Error: Missing CAP cache value for: NativeCodeInfo:RISCV64LibCHelperDirectives:StructInfo:CPUFeatures HOT 3
- Exception in thread "main" java.lang.IllegalArgumentException: invalid type parameter: void HOT 1
- [GR-57724] Using GraalVM with JBOSS/Wildfly throws warning: does not support runtime compilation HOT 7
- GraalVM Fatal error reported via JNI: Could not allocate library name HOT 2
- [GR-57252] Improve error message when trying to build static image on unsupported platforms
- NPE in com.oracle.truffle.runtime.hotspot.HotSpotTruffleRuntimeAccess.createRuntime(): "jdk.internal.module.Modules.JLA" is null HOT 1
- [Feature Request] Turn off truffle compilation dynamically
- [GR-57284] `JAVA_TOOL_OPTIONS` environment variable in native executables HOT 1
- JavaFX native image doesnt work on different cpu (both windows and 64 bit) HOT 1
- Provide graaljs that's useable across JDK versions 11 through 22 by backporting #7510 HOT 1
- Unable to use GDB to debug the actual value of variables in GraalVM Native Image HOT 1
- [GR-57347] Create a Snapcraft package for Ideal Graph Visualizer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graal.