[ https://issues.apache.org/jira/browse/SOLR-7652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14579506#comment-14579506 ]
Erik Hatcher commented on SOLR-7652: ------------------------------------ Except, this now fails on Java 8, ARG, 5x and trunk: {code} 2015-06-09 20:13:48.485 ERROR (qtp434176574-13) [ x:files] o.a.s.c.SolrCore java.lang.ClassCastException: Cannot cast jdk.internal.dynalink.beans.StaticClass to java.lang.Class at java.lang.invoke.MethodHandleImpl.newClassCastException(MethodHandleImpl.java:312) at java.lang.invoke.MethodHandleImpl.castReference(MethodHandleImpl.java:307) at jdk.nashorn.internal.scripts.Script$\^eval\_.processAdd(<eval>:74) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:537) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) {code} Time to research if there's a way to get this to work in both versions of the built-in Java 7 and 8 JavaScript engines. For now I'll leave it with the fix for Java7 on 5x, and Java8 on trunk. > example/files update-script.js does not work on Java7 > ----------------------------------------------------- > > Key: SOLR-7652 > URL: https://issues.apache.org/jira/browse/SOLR-7652 > Project: Solr > Issue Type: Bug > Affects Versions: 5.2 > Reporter: Erik Hatcher > Assignee: Erik Hatcher > Fix For: 5.3, 5.2.1 > > Attachments: SOLR-7652.patch > > > A colleague reported that example/files does not work with Java 7, but did > with Java 8. > {code} > $ bin/solr create -c files -d example/files/conf/ > Setup new core instance directory: > /Users/erikhatcher/dev/clean-branch_5x/solr/server/solr/files > Creating new core 'files' using command: > http://localhost:8983/solr/admin/cores?action=CREATE&name=files&instanceDir=files > Failed to create core 'files' due to: Error CREATEing SolrCore 'files': > Unable to create core [files] Caused by: missing name after . operator > (<Unknown source>#73) > {code} > with this in solr.log: > {code} > Caused by: org.apache.solr.common.SolrException: Unable to evaluate script: > update-script.js > at > org.apache.solr.update.processor.StatelessScriptUpdateProcessorFactory.initEngines(StatelessScriptUpdateProcessorFactory.java:313) > at > org.apache.solr.update.processor.StatelessScriptUpdateProcessorFactory.inform(StatelessScriptUpdateProcessorFactory.java:227) > ... 33 more > Caused by: javax.script.ScriptException: > sun.org.mozilla.javascript.internal.EvaluatorException: missing name after . > operator (<Unknown source>#73) in <Unknown source> at line number 73 > at > com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:224) > at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249) > at > org.apache.solr.update.processor.StatelessScriptUpdateProcessorFactory.initEngines(StatelessScriptUpdateProcessorFactory.java:311) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org