Results 1 to 3 of 3

Thread: Cannot upgrade from Ext JS 4.2 to Ext JS 5 using Sencha CMD 5.1

  1. #1

    Default Cannot upgrade from Ext JS 4.2 to Ext JS 5 using Sencha CMD 5.1

    Hi,
    I m trying to upgrade my app using Sencha Cmd v 5.1.3.61 from version Ext JS 4.2 to Ext JS 5.x. I have used following commands to upgrade my app, as stated in

    http://docs.sencha.com/cmd/guides/cmd_upgrade_five.html

    sencha app upgrade -ext
    Both commands failed with following error.


    Code:
    [ERR] Directory C:\Users\banesu50\Documents\Project\common\Infinet\war\src\main\webapp\ext not recognized as a framework
    [WRN] Folder should have exactly one .pkg file: C:\Users\banesu50\bin\Sencha\Cmd
    \repo\pkgs\.meta\profiles
    [INF] Extracting ext package...
    [INF] Package is already local: ext/6.0.0.640
    [WRN] Did not locate framework package
    [INF] Loading configuration for framework directory: null
    [ERR] java.lang.NullPointerException
         at java.io.File.<init>(Unknown Source)
         at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.ja
    va:76)
         at com.sencha.command.app.AppCommands$UpgradeCommand.execute(AppCommands.ja
    va:614)
         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.command.BasePluginCommands$BasePluginCommand.dispatch(BasePlu
    ginCommands.java:148)
         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)
    
    
    [ERR]
    The application was last modified by an older version of Sencha Cmd (3.0.2.288)
    the current is 5.1.3.61.
    Please run "sencha app upgrade" to update to 5.1.3.61.
    I have not used cmd while writing the old code. Please help me out. I cant figure out where the error lies. Or what configuration should i tweak to make it upgrade.


  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409

    Default

    Sometimes the changes are just too much for upgrade to work. It seems like you have a mix of version issues.

    I would suggest generated a new app with the same namespace, and then move over your code / packages and build until the warnings/issues go away as there will be API changes in the code. Should not take long.

  3. #3
    Sencha - Engineering israelroldan's Avatar
    Join Date
    Nov 2011
    Location
    The Netherlands
    Posts
    395

    Default

    Try passing the path to your framework copy instead of "-ext". That will upgrade your framework copy and Cmd metadata, but as Scott mentioned, there are just so many things Sencha Cmd can do automatically, the rest of the upgrade process is up to you.
    Israel Roldán | Senior Software Engineer (Framework tools)

Similar Threads

  1. Replies: 2
    Last Post: 6 May 2013, 10:55 PM
  2. [INFOREQ] ST 2.1.0 RC - sencha app upgrade & sencha app generate [project_name] [project_path]
    By glom1029 in forum Sencha Touch 2.x: Bugs
    Replies: 3
    Last Post: 27 Nov 2012, 4:32 PM

Tags for this Thread

Posting Permissions

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