Results 1 to 4 of 4

Thread: CMD x-sencha-command broken in 5.0.3.324

  1. #1
    Sencha Premium Member
    Join Date
    Jul 2014
    Location
    Gilbert, AZ
    Posts
    12

    Default CMD x-sencha-command broken in 5.0.3.324

    The following build.xml ant script works in 5.0.2.270 but not in 5.0.3.324:

    Code:
       <!-- =================================================================== -->
       <!-- Sencha                                                               -->
       <!-- =================================================================== -->
       <target name="sencha" description="Build Sencha Production Apps and Place in BuffaloWeb/WebRoot">
         <!-- =================================================================== -->
         <!-- Config/Controllers Page                                             -->
         <!-- =================================================================== -->
         <taskdef resource="com/sencha/ant/antlib.xml" classpath="${cmd.dir}/sencha.jar" loaderref="senchaloader"/>     
         <x-sencha-init dir="${app.configControllers.dir}"/>
        <x-sencha-command dir="${app.configControllers.dir}">
            app
                build
                    --clean
                    ${webroot.configControllers.dir}
        </x-sencha-command>
        </target>
    The following is the ant.properties file:

    Code:
    # Sencha Settings
    cmd.dir=C:/Users/rlewando/bin/Sencha/Cmd/5.0.3.324/
    The output is (yes, it outputs the dump twice):

    Code:
    Buildfile: E:\BuffaloAutomation\ProcessControlFramework\worktrunk\build.xml
    
    sencha:
    [x-sencha-command] Processing Build Descriptor : default
    [x-sencha-command] InvocationTargetException: java.lang.reflect.InvocationTargetException
    
    BUILD FAILED
    com.sencha.exceptions.BasicException: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call property readFile in o
    bject [JavaPackage com.sencha.util.FileUtil]. It is not a function, it is "object". (<Unknown source>#6) in <Unknown source> at line number 6
            at com.sencha.exceptions.BasicException.wrap(BasicException.java:54)
            at com.sencha.ant.AntScript.execute(AntScript.java:121)
            at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
            at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:122)
            at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:246)
            at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:592)
            at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:35)
            at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:329)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
            at com.sencha.cli.Command.dispatch(Command.java:43)
            at com.sencha.cli.Commands.dispatch(Commands.java:64)
            at com.sencha.cli.Commands.dispatch(Commands.java:64)
            at com.sencha.command.Sencha.dispatch(Sencha.java:72)
            at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:124)
            at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:42)
            at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:392)
            at org.apache.tools.ant.Target.performTasks(Target.java:413)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at org.apache.tools.ant.Main.runBuild(Main.java:811)
            at org.apache.tools.ant.Main.startAnt(Main.java:217)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
            at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    Caused by: C:\Users\rlewando\bin\Sencha\Cmd\5.0.3.324\extensions\sencha-licenses\sencha-licenses.plugin.xml:145: javax.script.ScriptException: sun.org.mozilla.j
    avascript.internal.EcmaError: TypeError: Cannot call property readFile in object [JavaPackage com.sencha.util.FileUtil]. It is not a function, it is "object". (
    <Unknown source>#6) in <Unknown source> at line number 6
            at org.apache.tools.ant.util.ReflectUtil.toBuildException(ReflectUtil.java:183)
            at org.apache.tools.ant.util.ReflectUtil.throwBuildException(ReflectUtil.java:166)
            at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:110)
            at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
            at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
            at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
            at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:52)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:392)
            at org.apache.tools.ant.Target.performTasks(Target.java:413)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at com.sencha.ant.AntScript.execute(AntScript.java:117)
            ... 35 more
    Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call property readFile in object [JavaPackage com.senc
    ha.util.FileUtil]. It is not a function, it is "object". (<Unknown source>#6) in <Unknown source> at line number 6
            at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:224)
            at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:240)
            at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:108)
            ... 52 more
    Caused by: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call property readFile in object [JavaPackage com.sencha.util.FileUtil]. It is not a
     function, it is "object". (<Unknown source>#6)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.constructError(ScriptRuntime.java:3770)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.constructError(ScriptRuntime.java:3748)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.typeError(ScriptRuntime.java:3776)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.typeError3(ScriptRuntime.java:3802)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.notFunctionError(ScriptRuntime.java:3869)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2342)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2309)
            at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:1519)
            at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:849)
            at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:162)
            at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:430)
            at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(RhinoScriptEngine.java:116)
            at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(RhinoScriptEngine.java:109)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:3160)
            at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(InterpretedFunction.java:173)
            at sun.org.mozilla.javascript.internal.Context.evaluateReader(Context.java:1169)
            at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:214)
            ... 59 more
    
    Total time: 4 seconds
    
    BUILD FAILED
    E:\BuffaloAutomation\ProcessControlFramework\worktrunk\build.xml:35: com.sencha.exceptions.BasicException: javax.script.ScriptException: sun.org.mozilla.javascr
    ipt.internal.EcmaError: TypeError: Cannot call property readFile in object [JavaPackage com.sencha.util.FileUtil]. It is not a function, it is "object". (<Unkno
    wn source>#6) in <Unknown source> at line number 6
            at com.sencha.exceptions.BasicException.wrap(BasicException.java:54)
            at com.sencha.ant.AntScript.execute(AntScript.java:121)
            at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
            at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:122)
            at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:246)
            at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:592)
            at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:35)
            at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:329)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
            at com.sencha.cli.Command.dispatch(Command.java:43)
            at com.sencha.cli.Commands.dispatch(Commands.java:64)
            at com.sencha.cli.Commands.dispatch(Commands.java:64)
            at com.sencha.command.Sencha.dispatch(Sencha.java:72)
            at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:124)
            at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:42)
            at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:392)
            at org.apache.tools.ant.Target.performTasks(Target.java:413)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at org.apache.tools.ant.Main.runBuild(Main.java:811)
            at org.apache.tools.ant.Main.startAnt(Main.java:217)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
            at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    Caused by: C:\Users\rlewando\bin\Sencha\Cmd\5.0.3.324\extensions\sencha-licenses\sencha-licenses.plugin.xml:145: javax.script.ScriptException: sun.org.mozilla.j
    avascript.internal.EcmaError: TypeError: Cannot call property readFile in object [JavaPackage com.sencha.util.FileUtil]. It is not a function, it is "object". (
    <Unknown source>#6) in <Unknown source> at line number 6
            at org.apache.tools.ant.util.ReflectUtil.toBuildException(ReflectUtil.java:183)
            at org.apache.tools.ant.util.ReflectUtil.throwBuildException(ReflectUtil.java:166)
            at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:110)
            at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
            at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
            at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
            at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:52)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:392)
            at org.apache.tools.ant.Target.performTasks(Target.java:413)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at com.sencha.ant.AntScript.execute(AntScript.java:117)
            ... 35 more
    Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call property readFile in object [JavaPackage com.senc
    ha.util.FileUtil]. It is not a function, it is "object". (<Unknown source>#6) in <Unknown source> at line number 6
            at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:224)
            at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:240)
            at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:108)
            ... 52 more
    Caused by: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call property readFile in object [JavaPackage com.sencha.util.FileUtil]. It is not a
     function, it is "object". (<Unknown source>#6)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.constructError(ScriptRuntime.java:3770)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.constructError(ScriptRuntime.java:3748)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.typeError(ScriptRuntime.java:3776)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.typeError3(ScriptRuntime.java:3802)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.notFunctionError(ScriptRuntime.java:3869)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2342)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2309)
            at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:1519)
            at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:849)
            at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:162)
            at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:430)
            at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(RhinoScriptEngine.java:116)
            at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(RhinoScriptEngine.java:109)
            at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:3160)
            at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(InterpretedFunction.java:173)
            at sun.org.mozilla.javascript.internal.Context.evaluateReader(Context.java:1169)
            at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:214)
            ... 59 more
    
    Total time: 4 seconds
    No rush, I am fine with 5.0.2.270

  2. #2
    Sencha User
    Join Date
    Jul 2014
    Posts
    6

    Default

    Hello,

    I have the same problem here...

    Somebody has an idea?

    Thanks for your help!

  3. #3
    Sencha User
    Join Date
    Nov 2014
    Location
    Denmark
    Posts
    3

    Default

    I rolled back to 5.0.2.250 That's okay. But it would be nice to get a notification once this has been resolved in a new release....

  4. #4
    Sencha User
    Join Date
    Oct 2014
    Posts
    5

    Default

    Same with Sencha Cmd v5.1.0.26...

    But I use ExtJS 5.1, and as stated here:
    http://docs.sencha.com/extjs/5.1/wha...Sencha_Cmd_5_1

    I cannot rollback to Sencha Cmd 5.0.2....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •