-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[native-image] UnsupportedFeatureError: ObjectOutputStream.writeObject() #460
Comments
It is not currently supported because we haven't gotten around to do it yet. |
Does 'closed' mean this issue has been rejected, or is it still on the todo list? The use case I have is that I have to send exceptions or user-defined data types across the wire, and these need to be serialized. |
I encountered a similar issue when using the following method of java.security.KeyStore class
and this is the stack trace
|
Same error with some Google App Engine apps.... If only time would block the fix, I recommend reopening this bug... |
We also have the problem with Gradle: the daemon may send messages to the client in serialized form (in particular exceptions). When the client gets the message, it fails with:
|
I'm also facing the same problem trying to use apache httpclient:
|
And again on a different project.
|
I also get this error, when trying to invoke Oracle DB with ojdbc7.
Can Graal work with ojdbc7 (v 12.1.0.2)? |
Any updates on this issue? Seems still not supported in 19.2. |
@cstancu GraalVM 19.2.0 have the same problem, can we have any workaround? |
Any timeline the team has in mind? In our case it's the Quartz cluster support that can't go in. |
Fails at timeout 15 ./swarm-client -master http://192.168.2.45:32779/ -tunnel 192.168.2.45:32778 -username admin -password admin -retry 0 || [ $? -eq 124 ] Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client logArguments INFO: Client invoked with: -master http://192.168.2.45:32779/ -password ***** -retry 0 -tunnel 192.168.2.45:32778 -username ***** Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client run INFO: Discovering Jenkins master Exception in thread "main" com.oracle.svm.core.jdk.UnsupportedFeatureError: ObjectOutputStream.writeObject() at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:102) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:69) at shaded.org.apache.http.impl.client.BasicAuthCache.put(BasicAuthCache.java:107) at hudson.plugins.swarm.SwarmClient.createHttpClientContext(SwarmClient.java:369) at hudson.plugins.swarm.SwarmClient.discoverFromMasterUrl(SwarmClient.java:232) at hudson.plugins.swarm.Client.run(Client.java:130) at hudson.plugins.swarm.Client.main(Client.java:104) Makefile:2: recipe for target 'test' failed make: *** [test] Error 1 Due to oracle/graal#460
Fails at timeout 15 ./swarm-client -master http://192.168.2.45:32779/ -tunnel 192.168.2.45:32778 -username admin -password admin -retry 0 || [ $? -eq 124 ] Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client logArguments INFO: Client invoked with: -master http://192.168.2.45:32779/ -password ***** -retry 0 -tunnel 192.168.2.45:32778 -username ***** Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client run INFO: Discovering Jenkins master Exception in thread "main" com.oracle.svm.core.jdk.UnsupportedFeatureError: ObjectOutputStream.writeObject() at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:102) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:69) at shaded.org.apache.http.impl.client.BasicAuthCache.put(BasicAuthCache.java:107) at hudson.plugins.swarm.SwarmClient.createHttpClientContext(SwarmClient.java:369) at hudson.plugins.swarm.SwarmClient.discoverFromMasterUrl(SwarmClient.java:232) at hudson.plugins.swarm.Client.run(Client.java:130) at hudson.plugins.swarm.Client.main(Client.java:104) Makefile:2: recipe for target 'test' failed make: *** [test] Error 1 Due to oracle/graal#460
Fails at timeout 15 ./swarm-client -master http://192.168.2.45:32779/ -tunnel 192.168.2.45:32778 -username admin -password admin -retry 0 || [ $? -eq 124 ] Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client logArguments INFO: Client invoked with: -master http://192.168.2.45:32779/ -password ***** -retry 0 -tunnel 192.168.2.45:32778 -username ***** Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client run INFO: Discovering Jenkins master Exception in thread "main" com.oracle.svm.core.jdk.UnsupportedFeatureError: ObjectOutputStream.writeObject() at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:102) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:69) at shaded.org.apache.http.impl.client.BasicAuthCache.put(BasicAuthCache.java:107) at hudson.plugins.swarm.SwarmClient.createHttpClientContext(SwarmClient.java:369) at hudson.plugins.swarm.SwarmClient.discoverFromMasterUrl(SwarmClient.java:232) at hudson.plugins.swarm.Client.run(Client.java:130) at hudson.plugins.swarm.Client.main(Client.java:104) Makefile:2: recipe for target 'test' failed make: *** [test] Error 1 Due to oracle/graal#460
Fails at timeout 15 ./swarm-client -master http://192.168.2.45:32779/ -tunnel 192.168.2.45:32778 -username admin -password admin -retry 0 || [ $? -eq 124 ] Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client logArguments INFO: Client invoked with: -master http://192.168.2.45:32779/ -password ***** -retry 0 -tunnel 192.168.2.45:32778 -username ***** Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client run INFO: Discovering Jenkins master Exception in thread "main" com.oracle.svm.core.jdk.UnsupportedFeatureError: ObjectOutputStream.writeObject() at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:102) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:69) at shaded.org.apache.http.impl.client.BasicAuthCache.put(BasicAuthCache.java:107) at hudson.plugins.swarm.SwarmClient.createHttpClientContext(SwarmClient.java:369) at hudson.plugins.swarm.SwarmClient.discoverFromMasterUrl(SwarmClient.java:232) at hudson.plugins.swarm.Client.run(Client.java:130) at hudson.plugins.swarm.Client.main(Client.java:104) Makefile:2: recipe for target 'test' failed make: *** [test] Error 1 Due to oracle/graal#460
commit ee06f89 Merge: f789252 be35823 Author: Chris Dukes <[email protected]> Date: Sun Nov 3 12:39:50 2019 -0500 Merge branch 'master' into release/0.0.1 commit f789252 Author: Chris Dukes <[email protected]> Date: Sun Nov 3 11:44:34 2019 -0500 Add everything to test against a real jenkins Fails at timeout 15 ./swarm-client -master http://192.168.2.45:32779/ -tunnel 192.168.2.45:32778 -username admin -password admin -retry 0 || [ $? -eq 124 ] Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client logArguments INFO: Client invoked with: -master http://192.168.2.45:32779/ -password ***** -retry 0 -tunnel 192.168.2.45:32778 -username ***** Nov 03, 2019 4:40:56 PM hudson.plugins.swarm.Client run INFO: Discovering Jenkins master Exception in thread "main" com.oracle.svm.core.jdk.UnsupportedFeatureError: ObjectOutputStream.writeObject() at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:102) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:69) at shaded.org.apache.http.impl.client.BasicAuthCache.put(BasicAuthCache.java:107) at hudson.plugins.swarm.SwarmClient.createHttpClientContext(SwarmClient.java:369) at hudson.plugins.swarm.SwarmClient.discoverFromMasterUrl(SwarmClient.java:232) at hudson.plugins.swarm.Client.run(Client.java:130) at hudson.plugins.swarm.Client.main(Client.java:104) Makefile:2: recipe for target 'test' failed make: *** [test] Error 1 Due to oracle/graal#460
Any update on this? |
The h2 MVStore also makes heavy usage or writeObject/readObject. |
I have committed a PR(#2323) to support serialization. |
I have same problem with Graalvm 20.2 |
Any solution? Same exception while using Elastic RestHighLevelClient for ES operations.
|
Any updates here? Is there a fix? |
I confirm this issue with:
Stacktraces:
|
I have committed a PR to support JDK serialization on JDK8: #2730 |
I don't know whether this helps anyone, but when I'm using the elasticsearch extension released in quarkus 1.7.0 I don't get this error. |
I am also facing the same issue while using
Stacktraces:
|
Facing this issue using
|
Support for JDK serialization/deserialization #2730 was merged recently and should be delivered with GraalVM 21.0.0 |
Indeed. Closing this issue. |
I ran into this stack trace using
native-image
on an application that uses Java serialization:I didn't see a discussion of serialization in
LIMITATIONS.md
. Is this something you plan to support and haven't gotten to yet, or is serialization not supported?The text was updated successfully, but these errors were encountered: