{"action":"created","issue":{"url":"https://api.github.com/repos/kantega/notsoserial/issues/29","repository_url":"https://api.github.com/repos/kantega/notsoserial","labels_url":"https://api.github.com/repos/kantega/notsoserial/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/kantega/notsoserial/issues/29/comments","events_url":"https://api.github.com/repos/kantega/notsoserial/issues/29/events","html_url":"https://github.com/kantega/notsoserial/issues/29","id":136440778,"number":29,"title":"Deserialization not allowed for class jdk.nashorn.internal.ir.FunctionNode","user":{"login":"joelrich","id":4216919,"avatar_url":"https://avatars.githubusercontent.com/u/4216919?v=3","gravatar_id":"","url":"https://api.github.com/users/joelrich","html_url":"https://github.com/joelrich","followers_url":"https://api.github.com/users/joelrich/followers","following_url":"https://api.github.com/users/joelrich/following{/other_user}","gists_url":"https://api.github.com/users/joelrich/gists{/gist_id}","starred_url":"https://api.github.com/users/joelrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelrich/subscriptions","organizations_url":"https://api.github.com/users/joelrich/orgs","repos_url":"https://api.github.com/users/joelrich/repos","events_url":"https://api.github.com/users/joelrich/events{/privacy}","received_events_url":"https://api.github.com/users/joelrich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-02-25T16:38:45Z","updated_at":"2016-10-19T14:42:03Z","closed_at":"2016-02-25T16:50:34Z","body":"I am trying to run [Babel Standalone](https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.4.4/babel.js) with Nashorn and get the following error:\r\n\r\n```\r\njava.lang.UnsupportedOperationException: Deserialization not allowed for class jdk.nashorn.internal.ir.FunctionNode (on Thu Feb 25 17:27:35 CET 2016)\r\n\tat org.kantega.notsoserial.DefaultNotSoSerial.preventDeserialization(DefaultNotSoSerial.java:256)\r\n\tat org.kantega.notsoserial.DefaultNotSoSerial.onBeforeResolveClass(DefaultNotSoSerial.java:248)\r\n\tat org.kantega.notsoserial.ObjectInputStreamClassVisitor.onBeforeResolveClass(ObjectInputStreamClassVisitor.java:48)\r\n\tat java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)\r\n\tat java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)\r\n\tat java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)\r\n\tat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)\r\n\tat java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)\r\n```\r\n\r\nJava code:\r\n\r\n```\r\nInputStream stream = getClass().getResourceAsStream(\"babel-6.4.4.js\");\r\nString script = IOUtils.toString(stream);\r\nSimpleBindings bindings = new SimpleBindings();\r\n\r\nScriptEngine engine = new ScriptEngineManager().getEngineByMimeType(\"text/javascript\");\r\nengine.eval(script, bindings);\r\n```\r\n\r\n**Edit:** Sorry, should have read the documentation first. Had to whitelist \"jdk.nashorn.internal.\" and \"int\"."},"comment":{"url":"https://api.github.com/repos/kantega/notsoserial/issues/comments/254833881","html_url":"https://github.com/kantega/notsoserial/issues/29#issuecomment-254833881","issue_url":"https://api.github.com/repos/kantega/notsoserial/issues/29","id":254833881,"user":{"login":"joelrich","id":4216919,"avatar_url":"https://avatars.githubusercontent.com/u/4216919?v=3","gravatar_id":"","url":"https://api.github.com/users/joelrich","html_url":"https://github.com/joelrich","followers_url":"https://api.github.com/users/joelrich/followers","following_url":"https://api.github.com/users/joelrich/following{/other_user}","gists_url":"https://api.github.com/users/joelrich/gists{/gist_id}","starred_url":"https://api.github.com/users/joelrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelrich/subscriptions","organizations_url":"https://api.github.com/users/joelrich/orgs","repos_url":"https://api.github.com/users/joelrich/repos","events_url":"https://api.github.com/users/joelrich/events{/privacy}","received_events_url":"https://api.github.com/users/joelrich/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T14:42:03Z","updated_at":"2016-10-19T14:42:03Z","body":"@joannajasnowska https://github.com/kantega/notsoserial#whitelisting-mode"}}
{"actor":{"display_login":"joelrich"}}