Debugging ant tasks.. [message #688531] |
Fri, 24 June 2011 17:32  |
Eclipse User |
|
|
|
This probably has a really obvious answer but how can I get better diagnositcs out of ant? I've tried a bunch of configuration stuff, but this is all I'm getting == hardly enough to go on.. I am getting Debug level on my local IDE, but naturally a different problem is occurring there.
ERROR: org.eclipse.core.runtime.CoreException: /Users/milesparker/.hudson/jobs/amp-new/workspace/investigator/releng/com.metascape.amp.ide.site/build/product.ant:25: Java returned: 13
org.eclipse.core.runtime.CoreException: /Users/milesparker/.hudson/jobs/amp-new/workspace/investigator/releng/com.metascape.amp.ide.site/build/product.ant:25: Java returned: 13
at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:195)
at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:108)
at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:91)
at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:200)
at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:317)
at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:136)
at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:156)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: /Users/milesparker/.hudson/jobs/amp-new/workspace/investigator/releng/com.metascape.amp.ide.site/build/product.ant:25: Java returned: 13
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
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:1251)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:663)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:496)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318)
... 25 more
[Updated on: Fri, 24 June 2011 17:33] by Moderator
|
|
|
Re: Debugging ant tasks.. [message #689237 is a reply to message #688531] |
Mon, 27 June 2011 03:32  |
Eclipse User |
|
|
|
Hi Miles,
I usually pass debug options to the jvm when I start ant:
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y
and then I just create a remote debugging session from the Eclipse IDE and attach to port 8000 (default). Sometimes,
when ant is forking new java processes (such as when it launches buckminster or the p2 director), you'll need to debug
those processes individually. I do that by adding this line to the ant <java> element:
<jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/>
and then attach as usual.
HTH,
Thomas Hallgren
On 2011-06-24 23:32, Miles Parker wrote:
> This probably has a really obvious answer but how can I get better diagnositcs out of ant? I've tried a bunch of
> configuration stuff, but this is all I'm getting == hardly enough to go on.. I am getting Debug level on my local IDE,
> but naturally a different problem is occurring there.
>
> ERROR: org.eclipse.core.runtime.CoreException:
> /Users/milesparker/.hudson/jobs/amp-new/workspace/investigator/releng/com.metascape.amp.ide.site/build/product.ant:25:
> Java returned: 13
> org.eclipse.core.runtime.CoreException:
> /Users/milesparker/.hudson/jobs/amp-new/workspace/investigator/releng/com.metascape.amp.ide.site/build/product.ant:25:
> Java returned: 13
> at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
> at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
> at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
> at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:195)
> at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
> at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
> at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
> at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
> at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:108)
> at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:91)
> at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:200)
> at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:317)
> at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:136)
> at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:156)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 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.equinox.launcher.Main.invokeFramework(Main.java:622)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
> Caused by:
> /Users/milesparker/.hudson/jobs/amp-new/workspace/investigator/releng/com.metascape.amp.ide.site/build/product.ant:25:
> Java returned: 13
> at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> 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:390)
> at org.apache.tools.ant.Target.performTasks(Target.java:411)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> 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:1251)
> at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:663)
> at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:496)
> at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318)
> ... 25 more
|
|
|
Powered by
FUDForum. Page generated in 0.02628 seconds