Results 1 to 6 of 6

Thread: sencha app build - failure

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    40
    Answers
    2

    Default Answered: sencha app build - failure

    I'm trying to build an extjs 6 app, running sencha app build or sencha app build classic

    but it fails with:

    PHP Code:

    [ERRBUILD FAILED[ERRjava.lang.NullPointerException
    [ERR]   at org.apache.[ERRtools.ant.Task.perform(Task.java:348)
    [
    ERR
    [
    ERRTotal time33 seconds
    [ERRThe following error occurred while executing this line:/home/.../.sencha/app/build-impl.xml:399The following error occurred while executing this line:/home/.../.sencha/app/page-impl.xml:232The following error occurred while executing this line:/home/.../.sencha/app/page-impl.xml:104The following error occurred while executing this line:/home/.../.sencha/app/page-impl.xml:17The following error occurred while executing this line:/home/.../.sencha/app/page-impl.xml:18java.lang.NullPointerException 

    Any suggestions?

  2. My workspace was generated using cmd 5, I created a new workspace using cmd 6 and now it works.

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    You may get better debugging information by adding the --debug flag when you build. What version of Java do you have installed? What version of Cmd is this?

  4. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    40
    Answers
    2

    Default

    Java version:

    java version "1.7.0_80"
    Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

    Sencha CMD version:

    Sencha Cmd v6.0.0.202


    The detailed error after using --debug:


    PHP Code:
    [DBGsanityCheckAst
    [DBGsanityCheckVars
    [INFBuilding output markup to /***/classic/../index.html
    [INFWriting content to /home/***/classic/../index.html
    [ERR
    [
    ERRBUILD FAILED
    [ERRjava.lang.NullPointerException
    [ERR]  at com.sencha.util.FileUtil.writeFile(FileUtil.java:249)
    [
    ERR]  at com.sencha.util.FileUtil.writeFile(FileUtil.java:243)
    [
    ERR]  at com.sencha.util.FileUtil.writeFile(FileUtil.java:231)
    [
    ERR]  at com.sencha.command.compile.app.BaseAppOutputCommand.writeContent(BaseAppOutputCommand.java:104)
    [
    ERR]  at com.sencha.command.compile.app.MarkupCommand.execute(MarkupCommand.java:73)
    [
    ERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [
    ERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    ERR]  at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
    [
    ERR]  at com.sencha.cli.Command.dispatch(Command.java:43)
    [
    ERR]  at com.sencha.cli.Commands.dispatch(Commands.java:64)
    [
    ERR]  at com.sencha.command.compile.CompileCommands.dispatch(CompileCommands.java:312)
    [
    ERR]  at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:124)
    [
    ERR]  at com.sencha.ant.CompileTask$CompileToken.dispatchCommand(CompileTask.java:164)
    [
    ERR]  at com.sencha.ant.CompileTask.doExecute(CompileTask.java:123)
    [
    ERR]  at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:34)
    [
    ERR]  at com.sencha.ant.CompileTask.execute(CompileTask.java:36)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.taskdefs.Sequential.execute(Sequential.java:68)
    [
    ERR]  at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    ERR]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [
    ERR]  at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.taskdefs.Sequential.execute(Sequential.java:68)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.taskdefs.Sequential.execute(Sequential.java:68)
    [
    ERR]  at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    ERR]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [
    ERR]  at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.taskdefs.Sequential.execute(Sequential.java:68)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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]  at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [
    ERR]  at com.sencha.ant.CallTask.execute(CallTask.java:137)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.taskdefs.Sequential.execute(Sequential.java:68)
    [
    ERR]  at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    ERR]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [
    ERR]  at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.taskdefs.Sequential.execute(Sequential.java:68)
    [
    ERR]  at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    ERR]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [
    ERR]  at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    ERR]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [
    ERR]  at org.apache.
    [
    ERRtools.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]  at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [
    ERR]  at com.sencha.ant.CallTask.execute(CallTask.java:137)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.taskdefs.Sequential.execute(Sequential.java:68)
    [
    ERR]  at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    [
    ERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [
    ERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    ERR]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [
    ERR]  at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [
    ERR]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [
    ERR]  at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    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.AntScript.execute(AntScript.java:116)
    [
    ERR]  at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
    [
    ERR]  at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
    [
    ERR]  at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:280)
    [
    ERR]  at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:738)
    [
    ERR]  at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:97)
    [
    ERR]  at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:346)
    [
    ERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [
    ERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    ERR]  at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
    [
    ERR]  at com.sencha.cli.Command.dispatch(Command.java:43)
    [
    ERR]  at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:201)
    [
    ERR]  at com.sencha.cli.Commands.dispatch(Commands.java:64)
    [
    ERR]  at com.sencha.cli.Commands.dispatch(Commands.java:64)
    [
    ERR]  at com.sencha.command.Sencha.dispatch(Sencha.java:73)
    [
    ERR]  at com.sencha.command.Sencha.main(Sencha.java:141)
    [
    ERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [
    ERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [
    ERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [
    ERR]  at java.lang.reflect.Method.invoke(Method.java:606)
    [
    ERR]  at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    [
    ERR]  at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
    [
    ERR

  5. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Anything in the lines before the BUILD FAILED section that sheds more light on when the build started going pear-shaped?

  6. #5

    Default Same issue

    I'm getting the same error here.

    PHP Code:
    [DBGrenameVars
    [DBGJS var assignments:
    L 13 => a
    L 14 
    => b
    L 15 
    => c
    L 16 
    => d
    L 17 
    => e
    [DBGrenameLabels
    [DBGlatePeepholeOptimizations
    [DBGstripSideEffectProtection
    [DBGsanityCheckAst
    [DBGsanityCheckVars
    [INFBuilding output markup to /Users/a/ext/app/classic/index.html
    [INFWriting content to /Users/a/ext/app/classic/index.html
    [ERR]
    [
    ERRBUILD FAILED
    [ERRjava.lang.NullPointerException
    [ERR]     at com.sencha.util.FileUtil.writeFile(FileUtil.java:249)
    [
    ERR]     at com.sencha.util.FileUtil.writeFile(FileUtil.java:243)
    [
    ERR]     at com.sencha.util.FileUtil.writeFile(FileUtil.java:231)
    [
    ERR]     at com.sencha.command.compile.app.BaseAppOutputCommand.writeContent(BaseAppOutputCommand.java:104)
    [
    ERR]     at com.sencha.command.compile.app.MarkupCommand.execute(MarkupCommand.java:73)[ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [
    ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62
    However, it seems like it is actually building the page (I can load the build index.html).

  7. #6
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    40
    Answers
    2

    Default

    My workspace was generated using cmd 5, I created a new workspace using cmd 6 and now it works.

Similar Threads

  1. Replies: 8
    Last Post: 22 Jul 2015, 10:36 PM
  2. Replies: 5
    Last Post: 28 Oct 2014, 11:21 PM
  3. getting build failure in build system.
    By vipul.suthar in forum Sencha Cmd
    Replies: 3
    Last Post: 2 Apr 2014, 4:33 PM

Posting Permissions

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