Comments (11)
Commands used
"C:\Program Files\GraalVM\graalvm-ce-java11-22.3.2\bin\java.exe" -agentlib:native-image-agent=config-output-dir=META-INF/native-image -jar desktop-reflection-jar-with-dependencies.jar
native-image -cp desktop-reflection-jar-with-dependencies.jar --shared --no-fallback --allow-incomplete-classpath -H:IncludeResources="..xml|..conf" "-H:Name=dinterfacepoc" -H:+ReportExceptionStackTraces -H:+ReportUnsupportedElementsAtRuntime -H:TraceClassInitialization=True -H:ConfigurationFileDirectories=META-INF/native-image
from graal.
Invocation Code
#include <stdio.h>
#include <stdlib.h>
#ifndef _WIN64
#include <dlfcn.h>
#else
#include <windows.h>
#endif
#include "InterviewServiceInterop.h"
#include <dinterfacepoc.h>
using namespace System;
using namespace System::Runtime::InteropServices;
#pragma managed(push, off)
graal_isolate_t* isolateIS = NULL;
graal_isolatethread_t* threadIS = NULL;
void InvokeListAnnotatedClass()
{
if (threadIS == NULL) {
if (graal_create_isolate(NULL, &isolateIS, &threadIS) != 0) {
fprintf(stderr, "error on isolate creation or attach\n");
}
}
list_annotated_class(threadIS);
return;
}
#pragma managed(pop)
System::Void Interop::InterviewServiceInterop::ListAnnotatedClass()
{
try {
InvokeListAnnotatedClass();
}
catch (...) {
}
}
from graal.
Hello @codewithakamathb thank you for reporting the issue that you are facing. Can you please specify the version of GraalVM that you are using as well as your system specification. Thank you.
from graal.
Can you also push your reproducer on a public github repo so that we can take a look at it? Thanks.
from graal.
Can you also push your reproducer on a public github repo so that we can take a look at it? Thanks.
Please find git link.
https://github.com/codewithakamathb/graalvm/tree/main
Please follow read me. If you need any help let me know
from graal.
Hello @codewithakamathb thank you for reporting the issue that you are facing. Can you please specify the version of GraalVM that you are using as well as your system specification. Thank you.
graalvm-ce-java11-22.3.2
from graal.
@kassifar any support or hints?
from graal.
Hi @codewithakamathb, we noticed that you are using graalvm-ce-java11-22.3.2. We recommend that you switch to our latest version of GraalVM: GraalVM for JDK 22 Community 22.0.1. Let us know if you are still encountering the same issue when you switch to the aforementioned version. Thank you.
from graal.
No it doesnt work
from graal.
Hi @codewithakamathb the README that you provided on your repo isn't straightforward. Can you, please, provide us with a step by step description of how to build your code, produce a native image for it and test it. Thank you.
from graal.
Hi,
I will be closing this issue due to inactivity.
Thanks.
from graal.
Related Issues (20)
- MacOS only: Preferences.exportSubtree()/childrenNames() always kills process with "Fatal error reported via JNI: JVM_ArrayCopy called: Unimplemented" HOT 7
- [GR-55241] Performance regression of Scala compiler on GraalVM 17 -> 21 HOT 11
- GraalError: failed guarantee: value too large to fit into space HOT 1
- java.lang.Error: no ComponentUI class for: javax.swing.JRootPane HOT 6
- native-image-agent ceased to work as expected with AWT/JNI HOT 4
- [GR-55550] WASI signature conflict for fd_advise HOT 2
- native image fails to generate binary for a simple array manipulation HOT 1
- Cannot invoke "clojure.lang.Var.isBound()" because "clojure.lang.Compiler.LOADER" is null HOT 2
- docker pull container-registry.oracle.com/graalvm/native-image -> UNAUTHORIZED HOT 2
- Fatal error: com.oracle.svm.core.util.VMError$HostedError: guarantee failed HOT 2
- [GR-55718] MacOS only: System.getProperty("os.arch") is "x86_64" from JVM and then "amd64" from native image. HOT 3
- ManagementFactory.getThreadMXBean() and ManagementFactory.getGarbageCollectorMXBeans() can't get the value under the native image. HOT 4
- NPE in LocalizationFeature when resource-config.json contains class which is not in classpath HOT 1
- graalvm-community-jdk-22.0.2 downloads ...jdk-22.0.0 HOT 4
- [GR-55881] Issue with JDK Mission Control and Native Image Application Using JMX HOT 11
- NativeImage crashed with random Stacktrace
- [GR-56345] Provide an `espresso-runtime-<RuntimeResourceId>` with UPL or GPL as the LICENSE? HOT 3
- Static native executables using G1 GC crashes when attempting to run it (Segmentation fault) HOT 2
- ScriptEngine does not support `require()`
- [GR-57127] Native Image generated by `native-image` tool is not working with ZoomBA project HOT 4
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.