Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
If there is no script to evaluate, this error occurs.
groovy> Caught: groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: null. Reason: java.lang.NullPointerException
groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: null. Reason: java.lang.NullPointerException
at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:296)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:230)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:210)
at groovy.ui.InteractiveShell.run(InteractiveShell.java:100)
at groovy.ui.InteractiveShell.main(InteractiveShell.java:71)
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:324)
at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
at org.codehaus.classworlds.Launcher.main(Launcher.java:474)
Caused by: java.lang.NullPointerException
at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:289)
... 11 more