Workaround for java.io.NotSerializableException: jdk.nashorn.internal.objects.Global

Viktor Gamov gamussa at gmail.com
Sun Mar 29 03:58:44 UTC 2015


Hello Nashorn-team,

In my sample project I'm integrating different Hazelcast API with Nashorn.
It's on GH https://github.com/gAmUssA/hazelcast-nashorn
One thing that I'm trying to do is EntryProcessor (
http://docs.hazelcast.org/docs/latest/manual/html/entryprocessor.html).
EntryProcessor is executing on Hazelcast cluster member node. For that
purpose, Hazelcast client serializes it and sends it member node.

​I'm getting exception

Caused by: java.io.NotSerializableException:
jdk.nashorn.internal.objects.Global​
(hazelcastClient.js, line 40, commented)

​Thanks to Sundar​ (
https://twitter.com/sundararajan_a/status/581651315920515072), I learn that
Global object is not serializable to security reasons.

​Please, let me know if there is a workaround of​ this problem?

​Thank you​

-- 
With best regards,
Viktor Gamov


More information about the nashorn-dev mailing list