Can you try running it under a different user account?

- Brett

2008/9/29 greeklinux <[EMAIL PROTECTED]>:
>
> Hello,
>
> thanks for the reply.
>
> I tried a 2.0.9 version and the 2.1 preview releases, but the error still
> show up.
> "Error getting environment vars for profile activation java.io.IOException:
> Cannot run program "env": java.io.IOException: error=12, Cannot allocate
> memory"
>
> I read in other posts, that there was a bug with the environment variables.
> But mine are fine.
>
> The good thing is the error do not crash maven this time.
> The env command cannot run because maven cannot spawn other processes. I do
> not know
> how to modify this behaviour.
>
>
>
>
>
>
> Brett Porter wrote:
>>
>> I believe someone encountered this recently and it was a result of
>> running as the super user which had a very limited environment. You
>> might find more information in the archives.
>>
>> Cheers,
>> Brett
>>
>> 2008/9/29 greeklinux <[EMAIL PROTECTED]>:
>>>
>>> Hello,
>>>
>>> I am using maven, and I setup an CI system on a virtual server.
>>> When the build process starts, maven fails with the
>>> following error:
>>>
>>> Parsing POMs
>>> ERROR: Failed to parse POMs
>>> java.io.IOException: Cannot run program "env": java.io.IOException:
>>> error=12, Cannot allocate memory
>>>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
>>>        at java.lang.Runtime.exec(Runtime.java:593)
>>>        at java.lang.Runtime.exec(Runtime.java:431)
>>>        at java.lang.Runtime.exec(Runtime.java:328)
>>>        at
>>> org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:250)
>>>        at
>>> org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:216)
>>>        at
>>> org.apache.maven.project.interpolation.RegexBasedModelInterpolator.<init>(RegexBasedModelInterpolator.java:63)
>>>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>>        at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>        at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>        at java.lang.Class.newInstance0(Class.java:355)
>>>        at java.lang.Class.newInstance(Class.java:308)
>>>        at
>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
>>>        at
>>> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>>>        at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>>>        at
>>> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
>>>        at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>>        at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
>>>        at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
>>>        at
>>> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
>>>        at
>>> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
>>>        at
>>> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
>>>        at
>>> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>>>        at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
>>>        at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>>>        at
>>> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
>>>        at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>>        at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
>>>        at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:655)
>>>        at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:75)
>>>        at
>>> hudson.tasks.Maven$MavenInstallation.createEmbedder(Maven.java:337)
>>>        at
>>> hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:691)
>>>        at
>>> hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:640)
>>>        at hudson.FilePath.act(FilePath.java:363)
>>>        at
>>> hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:390)
>>>        at
>>> hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:285)
>>>        at
>>> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:240)
>>>        at hudson.model.Run.run(Run.java:793)
>>>        at
>>> hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205)
>>>        at
>>> hudson.model.ResourceController.execute(ResourceController.java:70)
>>>        at hudson.model.Executor.run(Executor.java:88)
>>> Caused by: java.io.IOException: java.io.IOException: error=12, Cannot
>>> allocate memory
>>>        at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
>>>        at java.lang.ProcessImpl.start(ProcessImpl.java:65)
>>>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
>>>        ... 41 more
>>>
>>>
>>> Is this because maven cannot create a new process? Or some other problem?
>>>
>>> Thanks
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Cannot-run-program-%22env%22-tp19712302p19712302.html
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>> --
>> Brett Porter
>> Blog: http://blogs.exist.com/bporter/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Cannot-run-program-%22env%22-tp19712302p19722446.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to