Hybrid View

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    5
    Vote Rating
    0
    softelephant is on a distinguished road

      0  

    Default Hidden View breaks build process

    Hidden View breaks build process


    I have a sencha project with a couple views (see attached image).

    When I run "sencha app build testing" I get the following error:

    Code:
    
    C:\Sencha\project\xxxxxx>sencha app build testing
    Sencha Cmd v3.0.0.250
    [INF]           init-properties:
    [INF]           init-sencha-command:
    [INF]           init:
    [INF]           -before-app-build:
    [INF]           app-build-impl:
    [INF]           testing:
    [INF]           -before-init-local:
    [INF]           -init-local:
    [INF]           -after-init-local:
    [INF]           init-local:
    [INF]           find-cmd:
    [INF]           -before-init:
    [INF]           -init:
    [INF]           -after-init:
    [INF]           init:
    [INF]           -before-build:
    [INF]           sass:
    [INF]           -before-sass:
    [INF]           -sass:
    [INF]           [shellscript]
    [INF]           [shellscript] C:\Sencha\project\xxxxxx\resources\sass>compasscompile --boring --force
    [INF]           [shellscript] identical ../css/app.css
    [INF]           -after-sass:
    [INF]           page:
    [INF]           -before-page:
    [INF]           -page:
    [INF]           building application
    [INF]           Deploying your application to C:\Sencha\project\xxxxxx\build\xxxxxx\testing
    [INF]           Copied touch/sencha-touch.js
    [INF]           Copied app.js
    [INF]           Copied resources/css/app.css
    [INF]           Copied C:\Sencha\project\xxxxxx\resources\icons
    [INF]           Copied C:\Sencha\project\xxxxxx\resources\startup
    [INF]           Resolving your application dependencies (file:///C:/Sencha/project/xxxxxx/index.html)
    [INF]           Compiling app.js and dependencies
    [INF]           Processing classPath entry : C:\Sencha\project\xxxxxx\sencha-compile-temp-dir
    [INF]           Processing classPath entry : C:\Sencha\project\xxxxxx\touch\src
    [INF]           Processing classPath entry : C:\Sencha\project\xxxxxx\app.js
    [INF]           Processing classPath entry : C:\Sencha\project\xxxxxx\app
    [ERR]           def was null
    [ERR]           failed to find meta class definition for name MyApp.view.MyConta
    iner7
    [ERR]           BUILD FAILED
    [ERR]           com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    [ERR]           C:\Sencha\project\xxxxxx\.sencha\app\build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: java.lang.NullPointerException (<Unknown source>#461) in <Unknown source> at line number 461
    [ERR]                   at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:87)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:91)
    [ERR]                   at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:135)
    [ERR]                   at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:106)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]           Caused by: C:\Sencha\project\xxxxxx\.sencha\app\build-impl.xml
    :126: The following error occurred while executing this line:
    [ERR]           C:\Sencha\project\xxxxxx\.sencha\app\build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: java.lang.NullPointerException (<Unknown source>#461) in <Unknown source> at line number 461
    [ERR]                   at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
    [ERR]                   at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]                   at com.sencha.command.ant.AntCommand.execute(AntCommand.java:75)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   ... 31 more
    [ERR]           Caused by: C:\Sencha\project\xxxxxx\.sencha\app\build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: java.lang.NullPointerException (<Unknown source>#461) in <Unknown source> at line number 461
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.toBuildException(ReflectUtil.java:183)
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.throwBuildException(ReflectUtil.java:166)
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:110)
    [ERR]                   at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
    [ERR]                   at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
    [ERR]                   at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
    [ERR]                   at org.apache.tools.ant.taskdefs.optional.script.ScriptDef.executeScript(ScriptDef.java:350)
    [ERR]                   at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]                   at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR]                   ... 52 more
    [ERR]           Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: java.lang.NullPointerException (<Unknown source>#461) in <Unknown source> at line number 461
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown Source)
    [ERR]                   at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown Source)
    [ERR]                   at javax.script.AbstractScriptEngine.eval(Unknown Source)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:108)
    [ERR]                   ... 69 more
    [ERR]           Total time: 15 seconds
    [ERR]           com.sencha.exceptions.BasicException: The following error occurr
    ed while executing this line:
    C:\Sencha\project\xxxxxx\.sencha\app\build-impl.xml:120: javax.script.ScriptEx
    ception: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sench
    a.exceptions.BasicException: java.lang.NullPointerException (<Unknown source>#46
    1) in <Unknown source> at line number 461
    
    
    C:\Sencha\project\xxxxxx>
    When I look into the app.js I see the following:

    Code:
    Ext.application({
    
    
        requires: [
            'Ext.MessageBox'
        ],
        models: [
            'Account'
        ],
        stores: [
            'MeterLocationStore',
            'AccountStatusStore',
            'MeterJobType'
        ],
        views: [
            'MyContainer7',
            'AccountFormPanel',
            'AccountList',
            'LoginForm'
        ],
        name: 'MyApp',
        controllers: [
            'MyController'
        ],
    
    
        launch: function() {
            console.log('launch - MpApp');
    
    
            MyApp.globals = {
                Username: '',
                Date: ''
            };
    
    
            Ext.create('MyApp.view.LoginForm');
            Ext.create('MyApp.view.AccountList');
    
    
            Ext.create('MyApp.view.LoginForm', {fullscreen: true});
        },
    
    
    
    
    });
    Notice there is a 'MyContainer7' in the app.js file but it goes not appear in Sencha Architect. When I delete the line inside the app.js file, everything then works.

    When I look into the app\view directory I only see:
    Code:
    Main.js
    LoginForm.js
    AccountList.js
    AccountFormPanel.js
    How do remove the 'MyContainer7' if I can't see it? Is this a bug?
    Attached Images

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,369
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    softelephant -

    First to get you up and running click the Application node and search for the views configuration. You will then be able to remove "MyContainer7", save and you should be on your way.

    Second, let's try to figure out how this extraneous view got added. As you delete views they should be removed, so that is a bug. Do you have any ideas as to how to reproduce this condition?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1