dev@glassfish.java.net

Re: java.lang.StackOverflowError while building (packaging step?)

From: Jane Young <Jane.Young_at_Sun.COM>
Date: Fri, 31 Jul 2009 13:28:05 -0700

FWIW, Hudson jobs use the following environment:

MAVEN_OPTS='-Xmx512m -Xms256m -XX:MaxPermSize=512m'



Kedar Mhaswade wrote:
>
>
> Lloyd Chambers wrote:
>> Vivek,
>>
>> Thank you.
>>
>> Is it MVN_OPTS or MAVEN_OPTS?
>
> The latter. Also add -XX:MaxPermSize=192m just in case ...
>
> So, for me: export MAVEN_OPTS="-Xmx512m -Xmx512m -XX:MaxPermSize=192m"
> works well.
>
> -Kedar
>
>>
>> Lloyd
>>
>> On Jul 31, 2009, at 11:54 AM, Vivek Pandey wrote:
>>
>>> You are seeing StackOverflowError, and this is maven based build
>>> system. you may like to configure MAVEN_OPTS:
>>>
>>> export MAVEN_OPTS=-Xmx512m -Xss1024k
>>>
>>> -Xss is to configure the stack size for each thread. I guess default
>>> of 512k is not working for you.
>>>
>>> -vivek.
>>>
>>> Lloyd Chambers wrote:
>>>> Unfortunately, that does not seem to be the problem. Looks like
>>>> I'll have to blow away my repo again.
>>>>
>>>> llcMP:gmbal~gf_common llc$ cat ~/.antrc
>>>> ANT_OPTS=-Xmx768m
>>>> export ANT_OPTS
>>>>
>>>>
>>>>
>>>> Downloading:
>>>> http://deadlock.netbeans.org/maven2/opensymphony/quartz-all/1.6.0/quartz-all-1.6.0.pom
>>>>
>>>> Downloading:
>>>> http://maven.glassfish.org/content/groups/glassfish/opensymphony/quartz-all/1.6.0/quartz-all-1.6.0.pom
>>>>
>>>> Downloading:
>>>> https://maven-repository.dev.java.net/nonav/repository/opensymphony/poms/quartz-all-1.6.0.pom
>>>>
>>>> Downloading:
>>>> http://repo1.maven.org/maven2/opensymphony/quartz-all/1.6.0/quartz-all-1.6.0.pom
>>>>
>>>> Downloading:
>>>> http://download.java.net/maven/2/opensymphony/quartz-all/1.6.0/quartz-all-1.6.0.pom
>>>>
>>>> Downloading:
>>>> http://repo1.maven.org/maven2/opensymphony/quartz-all/1.6.0/quartz-all-1.6.0.pom
>>>>
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [ERROR] BUILD ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] An Ant BuildException has occured: The following error
>>>> occurred while executing this line:
>>>> java.lang.StackOverflowError
>>>>
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] For more information, run Maven with the -e switch
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] Total time: 3 minutes 54 seconds
>>>> [INFO] Finished at: Fri Jul 31 11:33:06 PDT 2009
>>>> [INFO] Final Memory: 231M/554M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> cp: ./target/*.jar: No such file or directory
>>>> --- Copying jars to /v3/glassfishv3/glassfish/modules ---
>>>>
>>>>
>>>>
>>>> On Jul 31, 2009, at 11:24 AM, Lloyd Chambers wrote:
>>>>
>>>>> Ludo,
>>>>>
>>>>> Thank you, I'll try it.
>>>>>
>>>>> ANT_OPTS=-Xmx768m
>>>>> export ANT_OPTS
>>>>>
>>>>>
>>>>>
>>>>> Lloyd
>>>>>
>>>>> On Jul 31, 2009, at 11:18 AM, Ludovic Champenois wrote:
>>>>>
>>>>>> On 7/31/09 11:05 AM, Lloyd Chambers wrote:
>>>>>>> I just blew away my repo 2 days ago, and now it's happening again!
>>>>>>>
>>>>>>> It takes WAY to long to "fix" things like this. Is this a maven
>>>>>>> problem, and ant problem or something else? Unworkable.
>>>>>>>
>>>>>>>
>>>>>> Not sure this is it, but I have this:
>>>>>>
>>>>>> dhcp-usca14-132-130:v3 ludo$ more ~/.antrc
>>>>>> ANT_OPTS=-Xmx512m
>>>>>> export ANT_OPTS
>>>>>>
>>>>>>
>>>>>> Ludo
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>
>>>>>
>>>>> Lloyd Chambers
>>>>> lloyd.chambers_at_sun.com
>>>>> GlassFish Team
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>> Lloyd Chambers
>>>> lloyd.chambers_at_sun.com
>>>> GlassFish Team
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> Lloyd Chambers
>> lloyd.chambers_at_sun.com
>> GlassFish Team
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>