Results 1 to 9 of 9

Thread: NPE during package build

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2015
    Posts
    27

    Default NPE during package build

    Since a while, i always face the issue that i can not build the packages locally.

    It always fails here:

    Code:
    [DBG] Using local repository /home/bnz/bin/Sencha/Cmd/repo
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] java.lang.NullPointerException
    [ERR]   at com.sencha.ant.MakePkgTask.doExecute(MakePkgTask.java:77)
    [ERR]   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:34)
    [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:497)
    [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:497)
    [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.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [ERR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]   at java.lang.reflect.Method.invoke(Method.java:497)
    [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:62)
    [ERR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]   at java.lang.reflect.Method.invoke(Method.java:497)
    [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.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [ERR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]   at java.lang.reflect.Method.invoke(Method.java:497)
    [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:282)
    [ERR]   at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:759)
    [ERR]   at com.sencha.command.pkg.BuildCommand.execute(BuildCommand.java:141)
    [ERR]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [ERR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]   at java.lang.reflect.Method.invoke(Method.java:497)
    [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.cli.Commands.dispatch(Commands.java:64)
    [ERR]   at com.sencha.command.Sencha.dispatch(Sencha.java:79)
    [ERR]   at com.sencha.command.Sencha.main(Sencha.java:147)
    [ERR]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [ERR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]   at java.lang.reflect.Method.invoke(Method.java:497)
    [ERR]   at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    [ERR]   at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
    [ERR] 
    [ERR] Total time: 46 seconds
    [DBG] Triggering build cleanup
    [DBG] Build cleanup complete
    [ERR] The following error occurred while executing this line:
    /home/bnz/projects/bpc-fe-core/packages/remote/theme-virtimo-triton/.sencha/package/build-impl.xml:305: The following error occurred while executing this line:
    /home/bnz/projects/bpc-fe-core/packages/remote/theme-virtimo-triton/.sencha/package/build-impl.xml:300: java.lang.NullPointerException
         at com.sencha.exceptions.BasicException.wrap(BasicException.java:54)
         at com.sencha.ant.AntScript.execute(AntScript.java:120)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:282)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:759)
         at com.sencha.command.pkg.BuildCommand.execute(BuildCommand.java:141)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         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:79)
         at com.sencha.command.Sencha.main(Sencha.java:147)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
         at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
       Caused by: The following error occurred while executing this line:
    /home/bnz/projects/bpc-fe-core/packages/remote/theme-virtimo-triton/.sencha/package/build-impl.xml:305: The following error occurred while executing this line:
    /home/bnz/projects/bpc-fe-core/packages/remote/theme-virtimo-triton/.sencha/package/build-impl.xml:300: java.lang.NullPointerException
         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.AntScript.execute(AntScript.java:116)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:282)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:759)
         at com.sencha.command.pkg.BuildCommand.execute(BuildCommand.java:141)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         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:79)
         at com.sencha.command.Sencha.main(Sencha.java:147)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
         at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
       Caused by: The following error occurred while executing this line:
    /home/bnz/projects/bpc-fe-core/packages/remote/theme-virtimo-triton/.sencha/package/build-impl.xml:300: java.lang.NullPointerException
         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at com.sencha.ant.CallTask.execute(CallTask.java:137)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.AntScript.execute(AntScript.java:116)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:282)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:759)
         at com.sencha.command.pkg.BuildCommand.execute(BuildCommand.java:141)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         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:79)
         at com.sencha.command.Sencha.main(Sencha.java:147)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
         at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
       Caused by: java.lang.NullPointerException
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
         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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at com.sencha.ant.CallTask.execute(CallTask.java:137)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.AntScript.execute(AntScript.java:116)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:282)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:759)
         at com.sencha.command.pkg.BuildCommand.execute(BuildCommand.java:141)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         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:79)
         at com.sencha.command.Sencha.main(Sencha.java:147)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
         at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
       Caused by: null
         at com.sencha.ant.MakePkgTask.doExecute(MakePkgTask.java:77)
         at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:34)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at com.sencha.ant.CallTask.execute(CallTask.java:137)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         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.AntScript.execute(AntScript.java:116)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:282)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:759)
         at com.sencha.command.pkg.BuildCommand.execute(BuildCommand.java:141)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         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:79)
         at com.sencha.command.Sencha.main(Sencha.java:147)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
         at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
    Whats happening here?
    (Why does a build need the examples folder?)

    If i add to skip the package build it works.
    But i need to build it locally in order to build other packages.

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

    Default

    Where are you seeing the examples/ folder? Which versions of Cmd and Ext JS are you running. Which operating system and version of Java?

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2015
    Posts
    27

    Default

    Ubuntu:
    1604 LTS

    Java:
    Java(TM) SE Runtime Environment (build 1.8.0_66-b17)

    Cmd:
    sencha-6.1.3.42

    ExtJs:
    6.0.1 commercial

    Its stops at processing the examples. But i just wanna build a package (theme).
    I have the same issue using an older cmd version.

    If i add skip.pkg=1 in the sencha.cfg, everything works as expected, but in my case i need to build a package which will be later used in an app, therefore i need to build the pkg to promote it to the local repo.

  4. #4
    Sencha Premium Member
    Join Date
    Nov 2015
    Posts
    27

    Default

    Any news?

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2015
    Posts
    27

    Default

    any news on that issue?

  6. #6
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Have you successfully built this package before? Do you see anything more informative if you build with the debug flag (sencha -d)?

  7. #7
    Sencha Premium Member
    Join Date
    Nov 2015
    Posts
    27

    Default

    I have added the debug output already in my first post.
    As i said if i add skip pkg it works.
    So the issue is somewhere there.

    ---

    I have downloaded our sdk again, and i created a diff.
    the only diff is that we removed the examples folder from the sdk.

    it looks like that this fixes the problem.

    why do i need the examples folder to create a package?

  8. #8
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    33

    Default

    I had this bug with Sencha CMD 6.6.0.13. This occurs when the local repository is not initialized. This could be done by
    Code:
    sencha repo init --name NameOfYourRepo
    After this, the build runs without the NPE.

  9. #9
    Sencha Premium Member
    Join Date
    Nov 2015
    Posts
    27

    Default

    sorry and thanks for the reply.
    forget to update this q.

    found this fix already.

    but now i use common js build tools, instead of this cmd crap.
    works much better and faster than, for apps as well als modules and themes.

    last public version here:
    https://www.npmjs.com/package/muzkat-ext-app

Similar Threads

  1. Replies: 3
    Last Post: 6 Oct 2016, 8:28 AM
  2. Replies: 1
    Last Post: 23 Sep 2015, 11:54 AM
  3. build production act differently than build package in wp8.1
    By lovelyhibabe in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 16 Jun 2014, 4:36 PM
  4. sencha app build native vs sencha package build packager.json
    By kramprabhu in forum Sencha Touch 2.x: Discussion
    Replies: 1
    Last Post: 15 May 2013, 12:41 AM
  5. Difference between package build and native build
    By quadzilla in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 24 Apr 2013, 4:57 AM

Posting Permissions

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