[ 
http://jira.nuxeo.org/browse/NXP-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52699#action_52699
 ] 

Benoit Delbosc commented on NXP-3429:
-------------------------------------

after adding nuxeo-runtime-scripting*.jar in the bundle directory

127.0.0.1> script -f scripts/hello.groovy 
Command failed.
java.lang.NullPointerException
        at 
org.nuxeo.ecm.shell.commands.ScriptCommand.eval(ScriptCommand.java:73)
        at org.nuxeo.ecm.shell.commands.ScriptCommand.run(ScriptCommand.java:59)
        at 
org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:329)
        at 
org.nuxeo.ecm.shell.commands.InteractiveCommand.runCommand(InteractiveCommand.java:137)
        at 
org.nuxeo.ecm.shell.commands.InteractiveCommand.processInput(InteractiveCommand.java:117)
        at 
org.nuxeo.ecm.shell.commands.InteractiveCommand.run(InteractiveCommand.java:97)
        at 
org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:329)
        at org.nuxeo.ecm.shell.Main.main(Main.java:101)
        at 
org.nuxeo.ecm.shell.CommandLineService$1.run(CommandLineService.java:357)
        at 
org.nuxeo.osgi.application.StandaloneApplication.main(StandaloneApplication.java:300)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.nuxeo.osgi.application.Main.main(Main.java:64)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.nuxeo.runtime.launcher.Main.main(Main.java:83)

same with a full path or an invalid path :/

> Scripting support broken in nuxeo-shell
> ---------------------------------------
>
>                 Key: NXP-3429
>                 URL: http://jira.nuxeo.org/browse/NXP-3429
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Installers / Admin tools
>            Reporter: Stéfane Fermigier
>            Assignee: Bogdan Stefanescu
>             Fix For: 5.2 GA
>
>
> Here is a transcript from a clean SNAPSHOT build of nuxeo-shell (otherwise 
> working correctly):
> 127.0.0.1> script -f scripts/hello.groovy 
> Command failed.
> java.lang.NoClassDefFoundError: org/nuxeo/runtime/scripting/ScriptingService
>         at 
> org.nuxeo.ecm.shell.commands.ScriptCommand.eval(ScriptCommand.java:67)
>         at 
> org.nuxeo.ecm.shell.commands.ScriptCommand.run(ScriptCommand.java:59)
>         at 
> org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:329)
>         at 
> org.nuxeo.ecm.shell.commands.InteractiveCommand.runCommand(InteractiveCommand.java:132)
>         at 
> org.nuxeo.ecm.shell.commands.InteractiveCommand.processInput(InteractiveCommand.java:116)
>         at 
> org.nuxeo.ecm.shell.commands.InteractiveCommand.run(InteractiveCommand.java:96)
>         at 
> org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:329)
>         at org.nuxeo.ecm.shell.Main.main(Main.java:101)
>         at 
> org.nuxeo.ecm.shell.CommandLineService$1.run(CommandLineService.java:357)
>         at 
> org.nuxeo.osgi.application.StandaloneApplication.main(StandaloneApplication.java:300)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.nuxeo.osgi.application.Main.main(Main.java:64)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.nuxeo.runtime.launcher.Main.main(Main.java:83)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to