Comments (5)
This is not working anymore with hibernate-core 6.2+
The reflect-config.json found in reachable metadata misses the part about PGobject.
Found for 6.1.1-Final
{
"condition": {
"typeReachable": "org.postgresql.Driver"
},
"name": "org.postgresql.util.PGobject",
"queryAllDeclaredMethods": true,
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
missing for 6.2.0.Final
from graalvm-reachability-metadata.
@itineric - PGobject is initialized in the PostgreSQLPGObjectJdbcType class in hibernate 6.1.7. That class doesn't exit in hibernate 6.2.0 (dialect directory). If you are still using hibernate 6.1.7, you need to use metadata for 6.1.7 instead of metadata for 6.2.0
from graalvm-reachability-metadata.
I am getting the following log during add-reachability-metadata
[graalvm reachability metadata repository for org.hibernate.orm:hibernate-core:6.1.7.Final]: Configuration directory not found. Trying latest version.
[graalvm reachability metadata repository for org.hibernate.orm:hibernate-core:6.1.7.Final]: Configuration directory is org.hibernate.orm/hibernate-core/6.2.0.Final
And I cannot find the metadata you are talking about, am I looking at the wrong place ? https://github.com/oracle/graalvm-reachability-metadata/tree/master/metadata/org.hibernate.orm/hibernate-core
from graalvm-reachability-metadata.
Sorry, I replaced 6.1.1.Final
with 6.1.7.Final
but the point is the same, PGobject is initialized in the PostgreSQLPGObjectJdbcType class in 6.1.1.Final
and not in 6.2.0.Final
, so if you are using hibernate from 6.1.x
series, you need to continue using 6.1.1.Final
metadata. There is a ticket for native plugins to not always use the latest version metadata: graalvm/native-build-tools#430. Until that is done, you can explicitly set metadata version: #273 (comment)
from graalvm-reachability-metadata.
Thanks, I figured it out, its working with the workaround
from graalvm-reachability-metadata.
Related Issues (20)
- Add more metadata to `com.mysql:mysql-connector-j:8.0.31` HOT 1
- Logback 1.4.9 reflect-config.json missing ContextInitializer HOT 2
- How to support float[].class in file: serialization-config.json HOT 3
- Introduce `tested-java-versions`?
- Add wider support for org.mockito:mockito-core
- NoSuchMethodError with Jetty 12's ForwardedRequestCustomizer
- Add hibernate-core metadata for version 6.5.0
- Missing hibernate's TenantIdBinder HOT 3
- [QUESTION] Add support for [com.dameng::DmjdbcDriver17:8.1.3.140] HOT 1
- com.github.dockerjava.api.model.RuntimeInfo
- objectInputStream.readObject() issue with springboot 3.3.0 + graalvm22 as native image HOT 1
- Run metadata tests with `-H:+ThrowMissingRegistrationErrors`.
- Add metadata for `org.apache.activemq/activemq-client-jakarta`
- Automatically Test and Update all Libraries to their Latest Version via Dependabot HOT 1
- Hibernate spatial with PostGIS failing when running in native HOT 1
- Native compilation runtime error: java.lang.ClassNotFoundException: org.apache.kafka.common.security.scram.internals.ScramSaslClient$ScramSaslClientFactory
- Create Reachability Metadata releases monthly HOT 2
- [QUESTION] How to add comments? HOT 1
- Hazelcast 3.4.0 support HOT 2
- Unable run test on PostgreSQL pgjdbc fails due to unable to execute constructor HOT 1
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 graalvm-reachability-metadata.