Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-56948

NodeJS is failing to start during build on windows

    Details

      Description

      Build fails with the following message

      BUILD FAILED
      c:\liferay\liferay-portal\build.xml:240: The following error occurred while executing this line:
      c:\liferay\liferay-portal\build.xml:502: The following error occurred while executing this line:
      c:\liferay\liferay-portal\tools\sdk\build-common.xml:3405: The following error occurred while executing this line:
      : The following error occurred while executing this line:
      c:\liferay\liferay-portal\tools\sdk\build-common.xml:1518: The following error occurred while executing this line:
      : The following error occurred while executing this line:
      c:\liferay\liferay-portal\tools\sdk\build-common.xml:3349: The following error occurred while executing this line:
      : The following error occurred while executing this line:
      c:\liferay\liferay-portal\modules\frontend\frontend-js-web\build.xml:217: The following error occurred while executing this line:
      c:\liferay\liferay-portal\modules\frontend\frontend-js-web\build.xml:199: The following error occurred while executing this line:
      c:\liferay\liferay-portal\tools\sdk\build-common-node.xml:170: The following error occurred while executing this line:
      c:\liferay\liferay-portal\tools\sdk\build-common-node.xml:194: Execute failed: java.io.IOException: Cannot run program "c:\liferay\liferay-portal\tools\
      node-v0.12.6\bin\npm" (in directory "c:\liferay\liferay-portal\tools\node-v0.12.6"): CreateProcess error=2, The system cannot find the file specified
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
              at java.lang.Runtime.exec(Runtime.java:617)
              at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:41)
              at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
              at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
              at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:628)
              at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
              at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.MacroInstance.execute(MacroInstance.java:396)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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:197)
              at sun.reflect.GeneratedMethodAccessor700.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.MacroInstance.execute(MacroInstance.java:396)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.MacroInstance.execute(MacroInstance.java:396)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
              at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
              at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at groovy.util.AntBuilder.performTask(AntBuilder.java:260)
              at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220)
              at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
              at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:170)
              at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
              at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
              at embedded_script_in_c__liferay_liferay_portal_tools_sdk_build_common_dot_xml.run(embedded_script_in_c__liferay_liferay_portal_tools_sdk_build_
      common_dot_xml:24)
              at org.codehaus.groovy.ant.Groovy.parseAndRunScript(Groovy.java:440)
              at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:414)
              at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:280)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.MacroInstance.execute(MacroInstance.java:396)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
              at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
              at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at groovy.util.AntBuilder.performTask(AntBuilder.java:260)
              at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220)
              at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
              at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:170)
              at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
              at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
              at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
              at embedded_script_in_c__liferay_liferay_portal_tools_sdk_build_common_dot_xml.run(embedded_script_in_c__liferay_liferay_portal_tools_sdk_build_
      common_dot_xml:24)
              at org.codehaus.groovy.ant.Groovy.parseAndRunScript(Groovy.java:440)
              at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:414)
              at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:280)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.MacroInstance.execute(MacroInstance.java:396)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.GeneratedMethodAccessor574.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.MacroInstance.execute(MacroInstance.java:396)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at groovy.util.AntBuilder.performTask(AntBuilder.java:260)
              at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220)
              at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
              at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:170)
              at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
              at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:854)
              at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:831)
              at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:164)
              at embedded_script_in_c__liferay_liferay_portal_tools_sdk_build_common_dot_xml.run(embedded_script_in_c__liferay_liferay_portal_tools_sdk_build_
      common_dot_xml:27)
              at org.codehaus.groovy.ant.Groovy.parseAndRunScript(Groovy.java:440)
              at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:414)
              at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:280)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.MacroInstance.execute(MacroInstance.java:396)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
              at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
              at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
              at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
              at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
              at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
              at org.apache.tools.ant.Main.runBuild(Main.java:851)
              at org.apache.tools.ant.Main.startAnt(Main.java:235)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
              at java.lang.ProcessImpl.create(Native Method)
              at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
              at java.lang.ProcessImpl.start(ProcessImpl.java:136)
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
              ... 247 more
      
      Total time: 13 minutes 33 seconds
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                mate.thurzo Mate Thurzo (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 1 week, 5 days ago

                  Packages

                  Version Package
                  7.0.0 M7