1. #1
    Ext JS Premium Member
    Join Date
    Aug 2010
    Posts
    52
    Vote Rating
    2
    mikih is on a distinguished road

      0  

    Exclamation BUILD FAILED com.sencha.exceptions.ExBuild: java.lang.NullPointerException

    BUILD FAILED com.sencha.exceptions.ExBuild: java.lang.NullPointerException


    Hi there,

    it has been a very frustrating day with getting Sencha CMD to function....

    I am using:

    • OS X 10.8.1
    • Sencha CMD 3.0.0.141
    • Ext Js 4.1.1a

    What I did is creating an app skeleton with sencha generate app and then migrated that into my exisiting application... I ran thru it many many times and can not find a missmatch


    Is it also true that the app.json file is not even used by ext js? why is it then generated and how can you decide wheter you want to generate a ST or ext app with the sencha geenrate app command? I dont see a flag in the docs or in the console help instructions.

    I get the following error:

    PHP Code:
    [ERROR]        Error executing page compilation null[ERROR]        BUILD FAILEDcom.sencha.exceptions.ExBuildjava.lang.NullPointerException    at com.sencha.command.compile.CompileCommands$PageCommand.execute(CompileCommands.java:863)    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.cli.Command.dispatch(Command.java:78)    at com.sencha.cli.Commands.dispatch(Commands.java:49)    at com.sencha.cli.Commands.dispatch(Commands.java:49)    at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)    at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:59)    at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:21)    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)    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.AntRunner.run(AntRunner.java:156)    at com.sencha.ant.AntRunner.run(AntRunner.java:72)    at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:60)    at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:95)    at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:84)    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.cli.Command.dispatch(Command.java:78)    at com.sencha.cli.Commands.dispatch(Commands.java:49)    at com.sencha.cli.Commands.dispatch(Commands.java:49)    at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)    at com.sencha.command.Sencha.main(Sencha.java:57)Caused byjava.lang.NullPointerException    at com.sencha.tools.compiler.MetaClassDefinition.addImplicitRequirement(MetaClassDefinition.java:450)    at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:671)    at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:682)    at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:682)    at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:751)    at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:778)    at com.sencha.tools.compiler.sources.SourceFileCache.resolveImplicitDependencies(SourceFileCache.java:443)    at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:168)    at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:129)    at com.sencha.command.compile.CompileCommands$PageCommand.execute(CompileCommands.java:848)    ... 36 moreTotal time15 seconds[ERROR]        com.sencha.exceptions.BasicExceptioncom.sencha.exceptions.ExBuildjava.lang.NullPointerException 
    Thanks a lot for any help


    Cheers

    Florian
    Last edited by mikih; 25 Sep 2012 at 6:12 AM. Reason: added env specs
    -->

  2. #2
    Ext JS Premium Member
    Join Date
    Aug 2010
    Posts
    52
    Vote Rating
    2
    mikih is on a distinguished road

      0  

    Default


    It was a loading issue... I had Models in my App from testing sencha generate model
    -->