--
View this message in context: http://www.nabble.com/1.5-Causes-StackOverflowError-with-Ant-Java-Task-tp14236221p14236320.html
Sent from the groovy - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
--
Guillaume Laforge
Groovy Project Manager
G2One, Inc. Vice-President Technology
http://www.g2one.com
--
Guillaume Laforge
Groovy Project Manager
G2One, Inc. Vice-President Technology
http://www.g2one.com
---------------------------------------------------------------------
Cheers,
Marc.
-- Blog: http://mguillem.wordpress.com
I have reported the bug. A little example is attached to the report.
http://jira.codehaus.org/browse/GROOVY-2370
Regards
Frank Harnack
-----Ursprüngliche Nachricht-----
Von: Marc Guillemot [mailto:mguil...@yahoo.fr]
Gesendet: Montag, 10. Dezember 2007 12:59
An: us...@groovy.codehaus.org
Betreff: Re: [groovy-user] 1.5 Causes StackOverflowError with Ant Java Task
>> k-tp14236221p14236320.html Sent from the groovy - user mailing list
>> archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
***********************************************************************
Die Information in dieser email ist vertraulich und ist ausschließlich
für den/die benannten Adressaten bestimmt. Ein Zugriff auf diese
email durch andere Personen als den/die benannten Adressaten ist
nicht gestattet. Sollten Sie nicht der benannte Adressat sein, löschen
Sie bitte diese email.
***********************************************************************
ARGE Informationssysteme
in der gesetzlichen Krankenversicherung GmbH
Paul-Klinger-Straße 15, 45127 Essen
Amtsgericht Essen HRB 11122
Vorsitzender des Aufsichtsrates: Wolfgang Schmeinck
Geschäftsführer: Frank Krause, Andreas Prenneis
--
View this message in context: http://www.nabble.com/1.5-Causes-StackOverflowError-with-Ant-Java-Task-tp14236221p14258170.html
>>> [java] at java.util.HashMap.hash (HashMap.java:288)
>>> [java] at java.util.HashMap.hash(HashMap.java:292)
>>> [java] at java.util.WeakHashMap.get(WeakHashMap.java:340)
>>> [java] at
>>> java.util.Collections$SynchronizedMap.get (Collections.java:1979)
>>> [java] at
>>> org.apache.tools.ant.Project.getThreadTask(Project.java:2300)
>>> [java] at
>>> org.apache.tools.ant.Project.demuxInput (Project.java:1244)
>>> [java] at
>>> org.apache.tools.ant.taskdefs.Ant.handleInput(Ant.java:251)
>>> [java] at
>>> org.apache.tools.ant.UnknownElement.handleInput (UnknownElement.java:229)
>>> [java] at
>>> org.apache.tools.ant.Project.demuxInput(Project.java:1248)
>>> [java] at
>>> org.apache.tools.ant.DemuxInputStream.read (DemuxInputStream.java:70)
>>> [java] at
>>> java.io.FilterInputStream.read(FilterInputStream.java:111)
>>> [java] at
>>> org.apache.tools.ant.taskdefs.Redirector.handleInput (Redirector.java
>>> :666
>>> )
>>> [java] at
>>> org.apache.tools.ant.taskdefs.Java.handleInput(Java.java:667)
>>> [java] at
>>> org.apache.tools.ant.UnknownElement.handleInput (UnknownElement.java:229)
>>> [java] at
>>> org.apache.tools.ant.Project.demuxInput(Project.java:1248)
>>> [java] at
>>> org.apache.tools.ant.taskdefs.Ant.handleInput (Ant.java:251)
>>> [java] at
>>> org.apache.tools.ant.UnknownElement.handleInput(UnknownElement.java:229)
>>> [java] at
>>> org.apache.tools.ant.Project.demuxInput (Project.java:1248)
>>> [java] at
>>> org.apache.tools.ant.DemuxInputStream.read(DemuxInputStream.java:70)
>>> [java] at
>>> java.io.FilterInputStream.read(FilterInputStream.java :111)
>>> [java] at
>>> org.apache.tools.ant.taskdefs.Redirector.handleInput(Redirector.java
>>> :666
>>> )
>>> [java] at
>>> org.apache.tools.ant.taskdefs.Java.handleInput (Java.java:667)
>>> [java] at
>>> org.apache.tools.ant.UnknownElement.handleInput(UnknownElement.java:229)
>>> [java] at
>>> org.apache.tools.ant.Project.demuxInput (Project.java:1248)
Unfortunately I've just encountered a similar issue and upgrading to Groovy
1.5.1 or 1.6-beta-1-SNAPSHOT doesn't fix it. I'm running Ant 1.7.0 on Sun
JDK 1.5.0_09-b01 on Win XP. I've tried a clean Ant install with just the
groovy JAR added (I tried both the groovy and groovy-all JARs), but the
following test script fails.
<project name="test" default="test" basedir=".">
<target name="test">
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy"/>
<!-- This works -->
<input message="Test input" addproperty="tempPropertyName"/>
<echo>The message was ${tempPropertyName}</echo>
<groovy>
ant.echo("Local script 1")
<!-- This line fails -->
ant.input(message:"Local script input: ",
addproperty:"localScriptProperty")
<!-- This is never seen -->
ant.echo("Local script 2")
</groovy>
</target>
</project>
The script output is:
Buildfile: build.xml
test:
[input] Test input
test
[echo] The message was test
[echo] Local script 1
[input] Local script input:
BUILD FAILED
: java.lang.StackOverflowError
glaforge wrote:
>
> Wonderful!
> We'll certainly roll out a 1.5.1 fix release soon.
> Sorry for the inconvenience.
>
>
> On Dec 11, 2007 11:26 AM, Harnack Frank <Har...@iskv.de> wrote:
>
>> Hello Guillaume,
>>
>> the snapshot groovy-all-1.6-beta-1-SNAPSHOT.jar works in our environment
>> (
>> java version "1.4.2_10", ant 1.6.4, windows xp). The little example works
>> and our very complex build scripts work too.
>>
>> Great!
>>
>> Thanks for your immediate help.
>>
>> Regards
>>
>> Frank
>
>
--
View this message in context: http://www.nabble.com/1.5-Causes-StackOverflowError-with-Ant-Java-Task-tp14236221p14660964.html
--
Guillaume Laforge
Groovy Project Manager
G2One, Inc. Vice-President Technology
http://www.g2one.com
---------------------------------------------------------------------
Hi Guillaume,
The script output is:
Buildfile: build.xml
BUILD FAILED
: java.lang.StackOverflowError
Incidentally, if I replace the ant.input() call with standard Java IO code,
it works:
BufferedReader reader = new BufferedReader( new InputStreamReader( System.in
) )
def a = reader.readLine()
I'm using this as a workaround for the time being.
Thanks,
Al.
Al Rodgers wrote:
> [Please ignore the earlier version of this message - I accidentally sent
> before I was finished. Sorry!]
>
> Incidentally, if I replace the ant.input() call with standard Java IO code,
> it works:
>
> BufferedReader reader = new BufferedReader( new InputStreamReader( System.in
> ) )
> def a = reader.readLine()
>
> I'm using this as a workaround for the time being.
>
> Thanks,
> Al.
>
>
> glaforge wrote:
>
>> Wonderful!
>> We'll certainly roll out a 1.5.1 fix release soon.
>> Sorry for the inconvenience.
>>
>>
>> On Dec 11, 2007 11:26 AM, Harnack Frank <Har...@iskv.de> wrote:
>>
>>
>>> Hello Guillaume,
>>>
>>> the snapshot groovy-all-1.6-beta-1-SNAPSHOT.jar works in our environment
>>> (
>>> java version "1.4.2_10", ant 1.6.4, windows xp). The little example works
>>> and our very complex build scripts work too.
>>>
>>> Great!
>>>
>>> Thanks for your immediate help.
>>>
>>> Regards
>>>
>>> Frank
>>>
>>
>
>
---------------------------------------------------------------------
On Jan 7, 2008 11:06 AM, Al Rodgers <rodge...@googlemail.com> wrote:
>
> [Please ignore the earlier version of this message - I accidentally sent
> before I was finished. Sorry!]
>
>
> Incidentally, if I replace the ant.input() call with standard Java IO code,
> it works:
>
> BufferedReader reader = new BufferedReader( new InputStreamReader( System.in
> ) )
> def a = reader.readLine()
>
> I'm using this as a workaround for the time being.
>
> Thanks,
> Al.
>
>
>
> glaforge wrote:
> >
> > Wonderful!
> > We'll certainly roll out a 1.5.1 fix release soon.
> > Sorry for the inconvenience.
> >
> >
> > On Dec 11, 2007 11:26 AM, Harnack Frank <Har...@iskv.de> wrote:
> >
> >> Hello Guillaume,
> >>
> >> the snapshot groovy-all-1.6-beta-1-SNAPSHOT.jar works in our environment
> >> (
> >> java version "1.4.2_10", ant 1.6.4, windows xp). The little example works
> >> and our very complex build scripts work too.
> >>
> >> Great!
> >>
> >> Thanks for your immediate help.
> >>
> >> Regards
> >>
> >> Frank
> >
> >
>
> --
> View this message in context: http://www.nabble.com/1.5-Causes-StackOverflowError-with-Ant-Java-Task-tp14236221p14660964.html
> Sent from the groovy - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
--
Guillaume Laforge
Groovy Project Manager
G2One, Inc. Vice-President Technology
http://www.g2one.com
---------------------------------------------------------------------