You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erik Hatcher (JIRA)" <ji...@apache.org> on 2015/06/09 14:15:00 UTC

[jira] [Updated] (SOLR-7652) example/files update-script.js does not work on Java7

     [ https://issues.apache.org/jira/browse/SOLR-7652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Hatcher updated SOLR-7652:
-------------------------------
    Description: 
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}

  was:
A colleague reported that example/files does not work with Java 7, but did with Java 8.  There is something in the update-script.js that is Java 8 specific. 

Details not yet available... forthcoming.


> 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.2.1
>
>
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org