Results 1 to 4 of 4

Thread: Getting Error - Application name must be in the format of a valid javascript variable

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    419

    Default Getting Error - Application name must be in the format of a valid javascript variable

    Hi,

    I have just installed 5.0.1.231, I was previously on 4.0.4.84.

    I tried to build a package of my Sencha Touch 2.x application and got this:

    Code:
    [ERR]
    The application was last modified by an older version of Sencha Cmd (4.0.4.84)
    the current is 5.0.1.231.
    Please run "sencha app upgrade" to update to 5.0.1.231.
    So I did I was told, but now get this:

    Code:
    E:\SVNNew\src\SBS.Websites.PPTouchNew>sencha app upgrade
    Sencha Cmd v5.0.1.231
    [INF] building application
    [INF] Backing up application files from E:\SVNNew\src\SBS.Websites.PPTouchNew to
     E:\SVNNew\src\SBS.Websites.PPTouchNew\.sencha_backup\SBS.Websites.PPTouchNew\2.
    3.1.410
    [INF] Updating application and workspace files
    [ERR] Application name must be in the format of a valid javascript variable name
    
    [ERR] org.mozilla.javascript.WrappedException: Wrapped com.sencha.exceptions.ExS
    tate: Invalid application name : SBS.Websites.PPTouchNew (C:\Users\Rob\bin\Sench
    a\Cmd\5.0.1.231\ant\ant-util.js#849)
    SBS.Websites.PPTouchNew is actually the directory name for my project, my actual project name (I double checked the name in app.js and in Architect) is just PinpointersTouch which should be valid?!

    Please can someone advise how I can resolve this.

    Thanks

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108

    Default

    Cmd could be having a problem with the '.' in your folder path. I would try renaming the folder.
    Also you should use Cmd 5.0.2. Due to a bug you will have to disable build.optimize by commenting out the following code in your application's ./sencha/app/production.defaults.properties
    Code:
    build.optimize=${build.optimize.enable}
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    419

    Default

    Thanks for the advice...

    I ended up performing a search across all files in my directory for 'SBS.Websites.PPTouch' to see where CMD must be picking it up from.

    I found it was being used as the name config value in the app.json file, so I guess when I first created the ST project in Architect and specified the dot named folder path it just grabbed that for the application name? Even though in Architect I change the application name property to just PinpontersTouch

    Anyway...

    I have upgraded CMD to 5.0.2.250 beta and I then upgraded my application using 'sencha app uprade -noframework' this all went ahead fine at the console.

    After renaming to a non dot notation name in app.json, I then attempted a new build, here is what I got:

    Code:
    E:\SVNNew\src\SBS.Websites.PPTouchNew>sencha app build package
    Sencha Cmd v5.0.2.250
    [INF] Processing Build Descriptor : default
    [INF] Loading app json manifest...
    [INF] Concatenating output to file E:\SVNNew\src\SBS.Websites.PPTouchNew\build\t
    emp\production\PinpointersTouch\sencha-compiler\cmd-packages.js
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExBuild: java.lang.IllegalArgumentException: 0 > -1
    [ERR]
    [ERR] Total time: 19 seconds
    [ERR] The following error occurred while executing this line:
    E:\SVNNew\src\SBS.Websites.PPTouchNew\.sencha\app\build-impl.xml:373: The follow
    ing error occurred while executing this line:
    E:\SVNNew\src\SBS.Websites.PPTouchNew\.sencha\app\refresh-impl.xml:47: The follo
    wing error occurred while executing this line:
    E:\SVNNew\src\SBS.Websites.PPTouchNew\.sencha\app\bootstrap-impl.xml:33: com.sen
    cha.exceptions.ExBuild: java.lang.IllegalArgumentException: 0 > -1
         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe
    lper.java:551)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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(DefaultExecut
    or.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManage
    r.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment
    .java:246)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPack
    ageEnvironment.java:496)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePl
    uginCommands.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(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         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:73)
         at com.sencha.command.Sencha.main(Sencha.java:141)
       Caused by: The following error occurred while executing this line:
    E:\SVNNew\src\SBS.Websites.PPTouchNew\.sencha\app\refresh-impl.xml:47: The follo
    wing error occurred while executing this line:
    E:\SVNNew\src\SBS.Websites.PPTouchNew\.sencha\app\bootstrap-impl.xml:33: com.sen
    cha.exceptions.ExBuild: java.lang.IllegalArgumentException: 0 > -1
         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe
    lper.java:551)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at com.sencha.ant.CallTask.execute(CallTask.java:130)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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.helper.SingleCheckExecutor.executeTargets(SingleChe
    ckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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(DefaultExecut
    or.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManage
    r.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment
    .java:246)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPack
    ageEnvironment.java:496)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePl
    uginCommands.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(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         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:73)
         at com.sencha.command.Sencha.main(Sencha.java:141)
       Caused by: The following error occurred while executing this line:
    E:\SVNNew\src\SBS.Websites.PPTouchNew\.sencha\app\bootstrap-impl.xml:33: com.sen
    cha.exceptions.ExBuild: java.lang.IllegalArgumentException: 0 > -1
         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe
    lper.java:551)
         at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:4
    01)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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.helper.SingleCheckExecutor.executeTargets(SingleChe
    ckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at com.sencha.ant.CallTask.execute(CallTask.java:130)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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.helper.SingleCheckExecutor.executeTargets(SingleChe
    ckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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(DefaultExecut
    or.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManage
    r.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment
    .java:246)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPack
    ageEnvironment.java:496)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePl
    uginCommands.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(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         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:73)
         at com.sencha.command.Sencha.main(Sencha.java:141)
       Caused by: com.sencha.exceptions.ExBuild: java.lang.IllegalArgumentException:
     0 > -1
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    16)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
    98)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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.helper.SingleCheckExecutor.executeTargets(SingleChe
    ckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at com.sencha.ant.CallTask.execute(CallTask.java:130)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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.helper.SingleCheckExecutor.executeTargets(SingleChe
    ckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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(DefaultExecut
    or.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManage
    r.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment
    .java:246)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPack
    ageEnvironment.java:496)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePl
    uginCommands.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(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         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:73)
         at com.sencha.command.Sencha.main(Sencha.java:141)
       Caused by: java.lang.IllegalArgumentException: 0 > -1
         at com.sencha.tools.compiler.builder.metadata.BaseMetadataGenerator.doConca
    t(BaseMetadataGenerator.java:67)
         at com.sencha.command.compile.BootstrapCommand.getGeneratorData(BootstrapCo
    mmand.java:216)
         at com.sencha.command.compile.BootstrapCommand.getManifestMetadata(Bootstra
    pCommand.java:253)
         at com.sencha.command.compile.BootstrapCommand.execute(BootstrapCommand.jav
    a:83)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         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.command.compile.CompileCommands.dispatch(CompileCommands.java
    :299)
         at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:124)
         at com.sencha.ant.CompileTask$CompileToken.dispatchCommand(CompileTask.java
    :164)
         at com.sencha.ant.CompileTask.doExecute(CompileTask.java:123)
         at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
         at com.sencha.ant.CompileTask.execute(CompileTask.java:36)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
    98)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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.helper.SingleCheckExecutor.executeTargets(SingleChe
    ckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at com.sencha.ant.CallTask.execute(CallTask.java:130)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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.helper.SingleCheckExecutor.executeTargets(SingleChe
    ckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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(DefaultExecut
    or.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManage
    r.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment
    .java:246)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPack
    ageEnvironment.java:496)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePl
    uginCommands.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(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         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:73)
         at com.sencha.command.Sencha.main(Sencha.java:141)
       Caused by: 0 > -1
         at java.util.Arrays.copyOfRange(Unknown Source)
         at java.util.Arrays.copyOfRange(Unknown Source)
         at com.sencha.tools.compiler.app.LoaderPathsManifest.processPathMapping(Loa
    derPathsManifest.java:226)
         at com.sencha.tools.compiler.app.LoaderPathsManifest.load(LoaderPathsManife
    st.java:83)
         at com.sencha.tools.compiler.app.LoaderPathsManifest.load(LoaderPathsManife
    st.java:17)
         at com.sencha.tools.compiler.app.AppManifest.load(AppManifest.java:84)
         at com.sencha.tools.compiler.builder.metadata.AppManifestGenerator.getData(
    AppManifestGenerator.java:29)
         at com.sencha.tools.compiler.builder.metadata.BaseMetadataGenerator.doConca
    t(BaseMetadataGenerator.java:62)
         at com.sencha.command.compile.BootstrapCommand.getGeneratorData(BootstrapCo
    mmand.java:216)
         at com.sencha.command.compile.BootstrapCommand.getManifestMetadata(Bootstra
    pCommand.java:253)
         at com.sencha.command.compile.BootstrapCommand.execute(BootstrapCommand.jav
    a:83)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         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.command.compile.CompileCommands.dispatch(CompileCommands.java
    :299)
         at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:124)
         at com.sencha.ant.CompileTask$CompileToken.dispatchCommand(CompileTask.java
    :164)
         at com.sencha.ant.CompileTask.doExecute(CompileTask.java:123)
         at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
         at com.sencha.ant.CompileTask.execute(CompileTask.java:36)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
    98)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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.helper.SingleCheckExecutor.executeTargets(SingleChe
    ckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at com.sencha.ant.CallTask.execute(CallTask.java:130)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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.helper.SingleCheckExecutor.executeTargets(SingleChe
    ckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
    06)
         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(DefaultExecut
    or.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManage
    r.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment
    .java:246)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPack
    ageEnvironment.java:496)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePl
    uginCommands.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(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         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:73)
         at com.sencha.command.Sencha.main(Sencha.java:141)
    So no error about an invalid application name, but still something is up.

    Anything else you can suggest?

  4. #4
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108

    Default

    What does your app.json look like now? Rather than doing a build do a 'sencha app refresh' to update your application's meta data.
    Package builds were a part of stbuild which was deprecated in Cmd 5. Cmd 5 only supports cordova/phonegap builds.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Posting Permissions

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