PDA

View Full Version : javax.script.ScriptException when building sencha touch 2.1



flyingmoose
7 Dec 2012, 5:22 AM
Trying to build my application with


sencha -d app build

getting the following exception. Any ideas?



...
[INF] production:
[INF] -before-init-local:
[INF] -init-local:
[INF] -after-init-local:
[INF] init-local:
[INF] find-cmd:
[INF] -before-init:
[INF] -init:
[DBG] Initialize Sencha Cmd with prefix = ''
[DBG] found sencha.cfg at C:\Users\kinde_000\bin\Sencha\Cmd\3.0.0.250
[DBG] found workspace at W:\MCQuotes2\.sencha\workspace
[DBG] found app at W:\MCQuotes2\.sencha\app
[DBG] loading framework config from W:\MCQuotes2/touch
[DBG] found cmd at W:\MCQuotes2\touch\cmd
[DBG] Checking for framework config overrides
[DBG] resolving framework config overrides for 'touch'
[DBG] Detected framework version 2.1.0.447
[DBG] using framework config override 'C:\Users\kinde_000\bin\Sencha\Cmd\3.0.0.250\plugins\touch\current'
[DBG] adding C:\Users\kinde_000\bin\Sencha\Cmd\3.0.0.250/sencha.jar to classpath
[INF] -after-init:
[INF] init:
[INF] -before-build:
[INF] sass:
[INF] -before-sass:
[INF] -sass:
[INF] [shellscript]
[INF] [shellscript] W:\MCQuotes2\resources\sass>compass compile --boring --force
[INF] [shellscript] identical ../css/app.css
[INF] -after-sass:
[INF] page:
[INF] -before-page:
[INF] -page:
[INF] building application
[INF] Deploying your application to W:\MCQuotes2\build\Mcq\production
[DBG] copying all assets
[DBG] copying file W:\MCQuotes2\app\external.js
[INF] Copied app/external.js
[DBG] copying file W:\MCQuotes2\app.js
[INF] Copied app.js
[DBG] copying file W:\MCQuotes2\resources\css\app.css
[INF] Copied resources/css/app.css
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
[ERR] W:\MCQuotes2\.sencha\app\build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.io.IOEx
ception: Invalid argument (<Unknown source>#162) in <Unknown source> at line number 162
[ERR] at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:104)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERR] at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
[ERR] at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
[ERR] at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
[ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ERR] at org.apache.tools.ant.Task.perform(Task.java:348)
[ERR] at org.apache.tools.ant.Target.execute(Target.java:392)
[ERR] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[ERR] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ERR] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[ERR] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ERR] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:156)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:72)
[ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:87)
[ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:91)
[ERR] at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:135)
[ERR] at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:106)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:78)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERR] at com.sencha.command.Sencha.main(Sencha.java:71)
[ERR] Caused by: W:\MCQuotes2\.sencha\app\build-impl.xml:126: The following error occurred while executing this line:
[ERR] W:\MCQuotes2\.sencha\app\build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.io.IOEx
ception: Invalid argument (<Unknown source>#162) in <Unknown source> at line number 162
[ERR] at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
[ERR] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
[ERR] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ERR] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ERR] at org.apache.tools.ant.Task.perform(Task.java:348)
[ERR] at org.apache.tools.ant.Target.execute(Target.java:392)
[ERR] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[ERR] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ERR] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[ERR] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ERR] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:156)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:80)
[ERR] at com.sencha.command.ant.AntCommand.execute(AntCommand.java:75)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:78)
[ERR] ... 31 more
[ERR] Caused by: W:\MCQuotes2\.sencha\app\build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped j
ava.io.IOException: Invalid argument (<Unknown source>#162) in <Unknown source> at line number 162
[ERR] at org.apache.tools.ant.util.ReflectUtil.toBuildException(ReflectUtil.java:183)
[ERR] at org.apache.tools.ant.util.ReflectUtil.throwBuildException(ReflectUtil.java:166)
[ERR] at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:110)
[ERR] at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
[ERR] at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
[ERR] at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
[ERR] at org.apache.tools.ant.taskdefs.optional.script.ScriptDef.executeScript(ScriptDef.java:350)
[ERR] at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
[ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ERR] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ERR] at org.apache.tools.ant.Task.perform(Task.java:348)
[ERR] at org.apache.tools.ant.Target.execute(Target.java:392)
[ERR] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[ERR] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ERR] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[ERR] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ERR] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
[ERR] ... 52 more
[ERR] Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.io.IOException: Invalid argument (<Unknow
n source>#162) in <Unknown source> at line number 162
[ERR] at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown Source)
[ERR] at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown Source)
[ERR] at javax.script.AbstractScriptEngine.eval(Unknown Source)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:108)
[ERR] ... 69 more
[ERR] Caused by: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.io.IOException: Invalid argument (<Unknown source>#162)
[ERR] at sun.org.mozilla.javascript.internal.Context.throwAsScriptRuntimeEx(Unknown Source)
[ERR] at sun.org.mozilla.javascript.internal.MemberBox.invoke(Unknown Source)
[ERR] at sun.org.mozilla.javascript.internal.NativeJavaMethod.call(Unknown Source)
[ERR] at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Unknown Source)
[ERR] at sun.org.mozilla.javascript.internal.Interpreter.interpret(Unknown Source)
[ERR] at sun.org.mozilla.javascript.internal.InterpretedFunction.call(Unknown Source)
[ERR] at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(Unknown Source)
[ERR] at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(Unknown Source)
[ERR] at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(Unknown Source)
[ERR] at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(Unknown Source)
[ERR] at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(Unknown Source)
[ERR] at sun.org.mozilla.javascript.internal.Context.evaluateReader(Unknown Source)
[ERR] ... 77 more
[ERR] Caused by: java.io.IOException: Invalid argument
[ERR] at java.io.WinNTFileSystem.canonicalize0(Nativ
[ERR] e Method)
[ERR] at java.io.Win32FileSystem.canonicalize(Unknown Source)
[ERR] at java.io.File.getCanonicalPath(Unknown Source)
[ERR] at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] ... 88 more
[ERR] Total time: 15 seconds
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
...

Casper Alant
16 Dec 2012, 2:49 AM
Did you find a solution for this? I am having this exact problem.