Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    416
    Vote Rating
    18
    jweber will become famous soon enough

      1  

    Default Cannot call method "toString" of null in ant-util.js during upgrade

    Cannot call method "toString" of null in ant-util.js during upgrade


    REQUIRED INFORMATION


    Sencha Cmd version(s) tested:
    • Sencha Cmd 3.1.0.256

    Operating System:
    • Mac OS 10.8.3

    Framework used:
    • Sencha Touch 2.2.0b1

    Description:
    • When upgrading a Sencha Touch 2.1.1 app to 2.2b2, I got the error below.

    Steps to reproduce the problem:
    I changed ant-util.js:838 to use _logger.warn instead of trace, so you could see what's happening:
    Code:
    cd /path/to/project
    /path/to/Sencha/Cmd/3.1.0.256/sencha app upgrade /path/to/touch-2.2.0
    Then post log.txt in a CODE block:

    Code:
    Sencha Cmd v3.1.0.256
    [INF] Loading configuration for framework directory: /path/to/touch-2.2.0
    [INF] 
    [INF] init-plugin:
    [INF] 
    [INF] init-plugin:
    [INF] Invoking plugin (/path/to/project/.sencha/app/plugin.xml) - supported targets: -before-app-upgrade
    [INF] 
    [INF] -before-app-upgrade:
    [INF] Invoking plugin (/path/to/project/.sencha/app/plugin.xml) - supported targets: app-upgrade
    [INF] 
    [INF] cmd-root-plugin.init-properties:
    [INF] 
    [INF] init-properties:
    [INF] 
    [INF] init-sencha-command:
    [INF] 
    [INF] init:
    [INF] 
    [INF] -before-app-upgrade:
    [INF] 
    [INF] app-upgrade-impl:
    [INF] building application
    [INF] Backing up framework files from /path/to/project/touch to /path/to/project/.sencha_backup/touch/2.2.0.301
    [INF]      [move] Moving 1034 files to /path/to/project/.sencha_backup/touch/2.2.0.301
    [INF] Backing up application files from /path/to/project/. to /path/to/project/./.sencha_backup/default/2.2.0.301
    [INF]      [copy] Copying 479 files to /path/to/project/./.sencha_backup/default/2.2.0.301
    [INF]      [copy] Copied 107 empty directories to 1 empty directory under /path/to/project/./.sencha_backup/default/2.2.0.301
    [INF] Updating application and workspace files
    [WRN] setting sencha config prop touch.dir : undefined
    [WRN] setting sencha config prop workspace.config.dir : undefined
    [WRN] setting sencha config prop workspace.dir : undefined
    [WRN] setting sencha config prop cmd.architect.mode : undefined
    [ERR] com.sencha.exceptions.ExScript: TypeError: Cannot call method "toString" of null (/path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js#839)
       runSencha (/path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js:839)
       runAppUpgrade (x-app-upgrade:165)
       [anonymous] (x-app-upgrade:191)
       x_app_upgrade (x-app-upgrade:189)
       <script> (anonymous:1)
    Also list any customization to generated applications - file or folder renames or deletes; changes to config files. For example:

    .sencha/app/sencha.cfg
    Code:
        app.classpath=${app.dir}/app.js,${app.dir}/MyProject,${app.dir}/additional/directory
    .sencha/workspace/sencha.cfg
    Code:
        workspace.build.dir=${workspace.dir}/builds/${app.name}
    The result that was expected:
    • No error

    The result that occurs instead:
    • The error above


    HELPFUL INFORMATION

    Screenshot or Video:
    • N/A

    See this URL for live test case: N/A


    Debugging already done:
    • None

    Possible fix:
    • not provided (perhaps there is a bug in a generated file or script)

  2. #2
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,512
    Vote Rating
    176
    dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of

      0  

    Default


    What version of Cmd were you using for your app before the upgrade? It looks like a 3.0.x version based on your posted workspace.build.dir property.

    You may also try "sencha -debug app upgrade /path/to/touch-2.2" as that will produce much more debug output (as in, you may want to redirect stdout to a log file ).
    Don Griffin
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    416
    Vote Rating
    18
    jweber will become famous soon enough

      0  

    Default


    The project uses Sencha Cmd 3.0.1.283. Here's the full output:

    Code:
    Sencha Cmd v3.1.0.256
    [DBG] Loading CommandProviders
    [DBG] Scanning for extensions in /path/to/Sencha/Cmd/3.1.0.256/extensions
    [DBG] loading extension from /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass
    [DBG] Loaded extension sencha-compass
    [DBG] loading extension from /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io
    [DBG] Loaded extension sencha-io
    [DBG] Scanning extensions directory /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass for extensions
    [DBG] Located /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/sencha-compass.jar
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/sencha-compass.jar
    [DBG] get value lib/slf4j-api-1.6.6.jar lib/ant-1.8.4.jar lib/ant-launcher-1.8.4.jar for manifest class path
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/lib/slf4j-api-1.6.6.jar
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/lib/slf4j-api-1.6.6.jar!/
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/lib/ant-1.8.4.jar
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/lib/ant-1.8.4.jar!/
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/lib/ant-launcher-1.8.4.jar
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/lib/ant-launcher-1.8.4.jar!/
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/sencha-compass.jar!/
    [DBG] Scanning extensions directory /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io for extensions
    [DBG] Located /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/sencha-io.jar
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/sencha-io.jar
    [DBG] get value lib/httpclient-4.2.1.jar lib/commons-logging-1.1.1.jar lib/commons-codec-1.6.jar lib/httpclient-cache-4.2.1.jar lib/httpcore-4.2.1.jar lib/httpmime-4.2.1.jar lib/slf4j-api-1.6.6.jar lib/gson-2.2.1.jar for manifest class path
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/httpclient-4.2.1.jar
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/httpclient-4.2.1.jar!/
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/commons-logging-1.1.1.jar
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/commons-logging-1.1.1.jar!/
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/commons-codec-1.6.jar
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/commons-codec-1.6.jar!/
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/httpclient-cache-4.2.1.jar
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/httpclient-cache-4.2.1.jar!/
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/httpcore-4.2.1.jar
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/httpcore-4.2.1.jar!/
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/httpmime-4.2.1.jar
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/httpmime-4.2.1.jar!/
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/slf4j-api-1.6.6.jar
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/slf4j-api-1.6.6.jar!/
    [DBG] loading manifest for jar /path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/gson-2.2.1.jar
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/lib/gson-2.2.1.jar!/
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/path/to/Sencha/Cmd/3.1.0.256/extensions/sencha-io/sencha-io.jar!/
    [INF] Loading configuration for framework directory: /path/to/touch-2.2.0
    [DBG] Detecting framework plugin
    [DBG] resolving framework config overrides for 'touch'
    [DBG] Detected framework version 2.2.0.301
    [DBG] failed to detect /path/to/touch-2.2.0/cmd/plugin.xml
    [DBG] defaulting to 'current' plugin
    [DBG] using framework plugin located at '/path/to/Sencha/Cmd/3.1.0.256/plugins/touch/current'
    [DBG] Scanning for plugins in folder: /path/to/project/.sencha/app
    [DBG] Checking for plugin.xml in: /path/to/project/.sencha/app
    [DBG] Loading plugin: /path/to/project/.sencha/app/plugin.xml
    [DBG] Scanning for plugins in folder: /path/to/project/.sencha/workspace
    [DBG] Scanning for plugins in folder: /path/to/Sencha/Cmd/3.1.0.256/plugins/touch/current
    [DBG] Scanning for plugins in folder: /path/to/Sencha/Cmd/3.1.0.256/plugins
    [DBG] Loading plugin: /path/to/Sencha/Cmd/3.1.0.256/plugins/architect.plugin.xml
    [DBG] Initializing plugin...
    [DBG] Executing targets init-plugin in Ant file /path/to/Sencha/Cmd/3.1.0.256/plugins/architect.plugin.xml
    [INF] 
    [INF] init-plugin:
    [DBG] Loading plugin: /path/to/Sencha/Cmd/3.1.0.256/plugins/schema.plugin.xml
    [DBG] Initializing plugin...
    [DBG] Executing targets init-plugin in Ant file /path/to/Sencha/Cmd/3.1.0.256/plugins/schema.plugin.xml
    [INF] 
    [INF] init-plugin:
    [DBG] Scanning for plugins in folder: /path/to/Sencha/Cmd/3.1.0.256
    [DBG] Loading plugin: /path/to/project/.sencha/app/plugin.xml
    [DBG] Invoking -before-app-upgrade on all plugins...
    [DBG] Skipping plugin (/path/to/Sencha/Cmd/3.1.0.256/plugins/architect.plugin.xml) - no supported targets: -before-app-upgrade
    [DBG] Skipping plugin (/path/to/Sencha/Cmd/3.1.0.256/plugins/schema.plugin.xml) - no supported targets: -before-app-upgrade
    [INF] Invoking plugin (/path/to/project/.sencha/app/plugin.xml) - supported targets: -before-app-upgrade
    [DBG] Executing targets -before-app-upgrade in Ant file /path/to/project/.sencha/app/plugin.xml
    [INF] 
    [INF] -before-app-upgrade:
    [INF] Invoking plugin (/path/to/project/.sencha/app/plugin.xml) - supported targets: app-upgrade
    [DBG] Executing targets app-upgrade in Ant file /path/to/project/.sencha/app/plugin.xml
    [INF] 
    [INF] cmd-root-plugin.init-properties:
    [INF] 
    [INF] init-properties:
    [INF] 
    [INF] init-sencha-command:
    [INF] 
    [INF] init:
    [INF] 
    [INF] -before-app-upgrade:
    [INF] 
    [INF] app-upgrade-impl:
    [DBG] loadJavaScript: /path/to/Sencha/Cmd/3.1.0.256/ant/JSON.js
    [DBG] loadJavaScript: /path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js
    [INF] building application
    [INF] Backing up framework files from /path/to/project/touch to /path/to/project/.sencha_backup/touch/2.2.0.301
    [INF]      [move] Moving 1034 files to /path/to/project/.sencha_backup/touch/2.2.0.301
    [INF] Backing up application files from /path/to/project/. to /path/to/project/./.sencha_backup/default/2.2.0.301
    [DBG] excluding framework files from app backup
    [INF]      [copy] Copying 480 files to /path/to/project/./.sencha_backup/default/2.2.0.301
    [INF]      [copy] Copied 107 empty directories to 1 empty directory under /path/to/project/./.sencha_backup/default/2.2.0.301
    [INF] Updating application and workspace files
    [DBG] running command : sencha generate app -upgrade default /path/to/project/.
    [ERR] com.sencha.exceptions.ExScript: TypeError: Cannot call method "toString" of null (/path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js#839)
       runSencha (/path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js:839)
       runAppUpgrade (x-app-upgrade:165)
       [anonymous] (x-app-upgrade:191)
       x_app_upgrade (x-app-upgrade:189)
       <script> (anonymous:1)
         at com.sencha.exceptions.BasicException.wrap(BasicException.java:44)
         at com.sencha.cli.Command.dispatch(Command.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:72)
         at com.sencha.command.Sencha.main(Sencha.java:123)
       Caused by: com.sencha.exceptions.ExScript: TypeError: Cannot call method "toString" of null (/path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js#839)
       runSencha (/path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js:839)
       runAppUpgrade (x-app-upgrade:165)
       [anonymous] (x-app-upgrade:191)
       x_app_upgrade (x-app-upgrade:189)
       <script> (anonymous:1)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
         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:112)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:77)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:118)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:39)
         at com.sencha.command.app.AppCommands$UpgradeCommand.execute(AppCommands.java:234)
         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:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:72)
         at com.sencha.command.Sencha.main(Sencha.java:123)
       Caused by: TypeError: Cannot call method "toString" of null (/path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js#839)
       runSencha (/path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js:839)
       runAppUpgrade (x-app-upgrade:165)
       [anonymous] (x-app-upgrade:191)
       x_app_upgrade (x-app-upgrade:189)
       <script> (anonymous:1)
         at com.sencha.util.JavaScriptHost.eval(JavaScriptHost.java:74)
         at com.sencha.ant.ScriptTask.executeScript(ScriptTask.java:84)
         at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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:597)
         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:112)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:77)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:118)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:39)
         at com.sencha.command.app.AppCommands$UpgradeCommand.execute(AppCommands.java:234)
         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:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:72)
         at com.sencha.command.Sencha.main(Sencha.java:123)
       Caused by: TypeError: Cannot call method "toString" of null (/path/to/Sencha/Cmd/3.1.0.256/ant/ant-util.js#839)
         at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
         at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
         at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
         at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
         at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3731)
         at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2258)
         at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2251)
         at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1317)
         at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
         at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
         at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
         at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
         at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
         at org.mozilla.javascript.Context.evaluateString(Context.java:1079)
         at com.sencha.util.JavaScriptHost.eval(JavaScriptHost.java:67)
         at com.sencha.ant.ScriptTask.executeScript(ScriptTask.java:84)
         at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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:597)
         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:112)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:77)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:118)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:39)
         at com.sencha.command.app.AppCommands$UpgradeCommand.execute(AppCommands.java:234)
         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:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:72)
         at com.sencha.command.Sencha.main(Sencha.java:123)

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    84
    Vote Rating
    0
    koolll is on a distinguished road

      0  

    Default


    Hi i also facing this problem, did you gt solution?

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Posts
    416
    Vote Rating
    18
    jweber will become famous soon enough

      0  

    Default


    No, not yet.

  6. #6
    Sencha User
    Join Date
    Nov 2012
    Posts
    84
    Vote Rating
    0
    koolll is on a distinguished road

      0  

    Default


    So which version u using nw?i using sencha touch 2.1 . but the listing page is very lag

  7. #7
    Sencha - Ext JS Dev Team
    Join Date
    Jan 2012
    Posts
    41
    Vote Rating
    10
    kkrohe will become famous soon enough

      1  

    Default


    This is a bug recently introduced in the 3.1.0 release. We've already got a fix in that will
    make it into the upcoming 3.1.1 release, but the fix is simple enough that you should be able
    to patch and existing 3.1.0.256 install to correct this.


    The problem stems from a bad string conversion in an ant helper file located at:


    <Cmd-Install-Dir>/Sencha/Cmd/3.1.0.256/ant/ant-util.js


    In that file, on line 839, we need to patch the toString call to use a different string
    conversion technique.


    This code:


    Code:
                if(customProps) {
                    for(key in customProps) {
                        _logger.trace("setting sencha config prop " + key + " : " + value);
    /*line 839*/        customConfig.set(key, customProps[key].toString());
                    }
                }

    Should be patched accordingly:


    Code:
                if(customProps) {
                    for(key in customProps) {
                        _logger.trace("setting sencha config prop " + key + " : " + value);
                        customConfig.set(key, customProps[key] + '');
                    }
                }



    I'd also recommend reverting the application to a pre-upgrade state, if possible, and
    starting a new upgrade process with the above patch applied. If the app is not currently
    under revision control, there should be a '.sencha_backup/<app-name>/<old-cmd-version>'
    folder at the root of the app that contains a copy of the pre-upgrade app, so you should
    be able to use that if needed to undo the partial upgrade changes.

  8. #8
    Sencha User
    Join Date
    Mar 2007
    Posts
    416
    Vote Rating
    18
    jweber will become famous soon enough

      0  

    Default


    Thanks...I'll give it a try.

  9. #9
    Sencha User
    Join Date
    Mar 2007
    Posts
    416
    Vote Rating
    18
    jweber will become famous soon enough

      0  

    Default


    This seems to be fixed with 3.1.1.270. However, at the end of the upgrade, I get this:

    Code:
    [INF] -after-generate-app:
    [INF] 
    [INF] generate-app:
    [INF] 
    [INF] -after-generate-app:
    [INF] 
    [INF] -after-generate-app:
    [ERR] com.sencha.exceptions.ExScript: SyntaxError: missing : after property id (/path/to/Sencha/Cmd/3.1.1.270/ant/ant-util.js#605(eval)#44)
    It seems like the rest of the upgrade was successful, although it reported some merge conflicts.

  10. #10
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,512
    Vote Rating
    176
    dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of

      0  

    Default


    If there are merge conflicts on upgrade that means the code as-is and the code Cmd thinks belongs there have conflicts that you will need to resolve before proceeding.

    It should leave either a single file with the standard ">>>>" and "<<<<" blocks or a pair of files "foo.js" and "foo.js.$old" for this. And of course there is always source control where you can see what the upgrade changed.

    Once these are resolved you can run sencha app refresh to refresh any app-specific metadata (this is done at the end of sencha app upgrade when there are no conflicts).
    Don Griffin
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

Thread Participants: 3

Tags for this Thread