Giter Site home page Giter Site logo

Cannot convert "1682293037722628098'(1anguage: Java, type: com.oracle.truffle.api.strings.Trufflestring) to Java type "java.lang .0bject[]':Unsupported target type about graal HOT 3 OPEN

dandelion2 avatar dandelion2 commented on September 12, 2024
Cannot convert "1682293037722628098'(1anguage: Java, type: com.oracle.truffle.api.strings.Trufflestring) to Java type "java.lang .0bject[]':Unsupported target type

from graal.

Comments (3)

selhagani avatar selhagani commented on September 12, 2024

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.

dandelion2 avatar dandelion2 commented on September 12, 2024

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.

selhagani avatar selhagani commented on September 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.