Comments (11)
@roberttoyonaga is this something you could look into?
from graal.
Thank you very much @roberttoyonaga. I've noticed that some of the attributes that are exposed by the VM have the same issue. How can I address these too, please?
from graal.
Hi @albertattard , thank you for reporting this.
I just reproduced the issue and I confirm the issue you're facing.
We'll take a further look into this and I will keep you updated.
from graal.
Thank you @selhagani. Let me know if you require any further information.
from graal.
@fniephaus Yup, I can look into this issue.
from graal.
I was able to reproduce the issue. It looks like the problem is that you need to add serialization configuration for LocalDateTime
.
Adding the below json in serialization-config.json inside the META-INF directory should fix the problem.
{
"types":[
{
"name":"java.time.LocalDateTime"
},
{
"name":"java.time.Ser"
}
],
"lambdaCapturingTypes":[
],
"proxies":[
]
}
Running the Native Image Tracing Agent will help you generate the correct configuration automatically.
It's unfortunate that JMX requires extra configuration, but there isn't a good way of pre-configuring for all use-cases without greatly increasing image size (and remote JMX is already quite heavyweight). Maybe I'll update the JMX docs to suggest users run the tracing agent to generate their custom reflection configuration before using remote JMX.
from graal.
I think "java.lang.Double"
needs to be added to the serialization config as well. All those "[N/A]" attribute values are doubles.
I'll open a PR to add java.lang.Double
to the remote JMX Feature serialization config. It ought to be added there since its required for the OS platformMXBean.
Until that PR is integrated, you can use this for now:
{
"types":[
{
"name":"java.time.LocalDateTime"
},
{
"name":"java.lang.Double"
},
{
"name":"java.time.Ser"
}
],
"lambdaCapturingTypes":[
],
"proxies":[
]
}
from graal.
That's great @roberttoyonaga.
from graal.
I've put a PR up here: #9357
from graal.
Thanks, Robert! I just took a look :)
from graal.
This just got fixed on the main branch, and hopefully we can still backport it into the JDK 23 release.
from graal.
Related Issues (20)
- 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
- [GR-57624] [24.2] NPE in Locale processing with JDK 24+10 and better
- native-image build failed HOT 8
- Large quantities of virtual threads may cause JFR performance issues
- When using new Date() in JavaScript, if the system time is changed, the returned value is still the time before the modification HOT 1
- enable-monitoring option not working on windows : native image not found by visualvm HOT 5
- [GR-34103] Shutdown hooks not called when -H:-ParseRuntimeOptions is set HOT 3
- [GR-57707] native-image-agent omits String[] from "serialization" when using newConstructorForSerialization HOT 3
- Graal Initialization Failure - Intel i3 Processors 2nd Gen HOT 3
- [GR-57831] StringLatin1.charAt has a substantially supoptimal translation HOT 8
- DNS TXT record value parsing error after packaging Native Image HOT 4
- [GR-57845] Java/Espresso Support: EspressoFinalReference NoSuchMethodError
- Build akka with nativeImageRunAgent warning for java.lang.IndexOutOfBoundsException HOT 1
- [native-image] Runtime error when using java.lang.reflect.Array in library HOT 1
- java.lang.UnsatisfiedLinkError: com.fazecast.jSerialComm.SerialPort.getCommPortsNative() HOT 2
- Trying to generate native image graalVM with quarkus app on Windows doesn't work HOT 1
- com.oracle.svm.core.jdk.UnsupportedFeatureError: SerializationConstructorAccessor class not found for declaringClass: java.time.Ser 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 graal.