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

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

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

    [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
    [INF] Extracting ext package...
    [INF] Package is already local: ext/
    [WRN] Did not locate framework package
    [INF] Loading configuration for framework directory: null
    [ERR] java.lang.NullPointerException
         at<init>(Unknown Source)
         at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.ja
         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(
         at com.sencha.cli.Command.dispatch(
         at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePlu
         at com.sencha.cli.Commands.dispatch(
         at com.sencha.cli.Commands.dispatch(
         at com.sencha.command.Sencha.dispatch(
         at com.sencha.command.Sencha.main(
    The application was last modified by an older version of Sencha Cmd (
    the current is
    Please run "sencha app upgrade" to update to
    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
    Houston, Tx


    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
    The Netherlands


    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