incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Anuff ...@anuff.com>
Subject Re: Ant error in Eclipse when building Cassandra
Date Sat, 07 May 2011 15:50:35 GMT
Yes, it is, those last two lines repeat forever:

     at org.apache.tools.ant.PropertyHelper.getPropertyHook(PropertyHelper.java:189)
     at org.apache.maven.artifact.ant.POMPropertyHelper.getPropertyHook(POMPropertyHelper.java:50)

It's trying to look up a property value somewhere and getting caught
in a loop.  It's odd that it only happens in Eclipse's auto-rebuild
cycle though, not when it's run explicitly or from the command line,
so somethings being set or not set by Eclipse for Ant.  I'll try it on
my PC and see if the same thing happens.

Ed

On Fri, May 6, 2011 at 10:49 PM, Jonathan Ellis <jbellis@gmail.com> wrote:
> Default stack is huge, so maven-ant-tasks-retrieve-build is probably
> recursing infinitely somewhere :(
>
> On Fri, May 6, 2011 at 2:42 PM, Ed Anuff <ed@anuff.com> wrote:
>> I finally got around to getting Eclipse set up to build Cassandra
>> following the directions on the wiki and it seems to be working,
>> Eclipse isn't showing any errors except that when it fires off the
>> automatic ant build I get the following error:
>>
>> maven-ant-tasks-retrieve-build:
>>
>> BUILD FAILED
>> java.lang.StackOverflowError
>>        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1346)
>>        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>>        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>>        at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>>        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>>        at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:662)
>>        at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
>>        at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.runInSameVM(AntLaunchDelegate.java:321)
>>        at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:274)
>>        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
>>        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
>>        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:695)
>>        at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.launchBuild(ExternalToolBuilder.java:181)
>>        at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.doBuildBasedOnScope(ExternalToolBuilder.java:169)
>>        at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:88)
>>        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
>>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
>>        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
>>        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
>>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
>>        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
>>        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
>>        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
>>        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>> Caused by: java.lang.StackOverflowError
>>        at org.apache.tools.ant.PropertyHelper.getPropertyHook(PropertyHelper.java:189)
>>        at org.apache.maven.artifact.ant.POMPropertyHelper.getPropertyHook(POMPropertyHelper.java:50)
>>
>>
>> I never get this error when building from the command line and if I
>> right click on build.xml in Eclipse and select Run As Ant Build it
>> works fine as well.  Any ideas?  This is on a Mac.
>>
>> Ed
>>
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
>

Mime
View raw message