Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.0, 1.8.4
-
Component/s: GroovyScriptEngine
-
Labels:None
-
Number of attachments :
Description
GroovyScriptEngine loadScriptByName from jarURL, first time is ok, second time fail, GroovyScriptEngine attempts to load from a fileURL.
For fix this, change this:
String path = conn.getURL().getPath();
to
String path = conn.getURL().toString();
I presume you are talking about GroovyScriptEngine#loadScriptByName around about line 449?
Can you describe in a little more detail an example that shows the failure?
Thanks.