0

我正在项目的构建 XML 文件中运行声纳蚂蚁任务。项目建设是从哈德逊工作完成的。但发生以下异常:

[sonar:sonar] 17:57:00.994 WARN  - [JOURNAL_FLUSHER] WARNING Journal flush operation took 3,655ms last 8 cycles average is 457ms
[sonar:sonar] 17:58:40.972 WARN  - [JOURNAL_FLUSHER] WARNING Journal flush operation took 3,680ms last 8 cycles average is 461ms
[sonar:sonar] 18:00:47.808 WARN  - [JOURNAL_FLUSHER] WARNING Journal flush operation took 17,739ms last 8 cycles average is 2,217ms
[sonar:sonar] 18:01:12.556 WARN  - [JOURNAL_FLUSHER] WARNING Journal flush operation took 19,645ms last 8 cycles average is 4,673ms
[sonar:sonar] 18:09:46.711 WARN  - [JOURNAL_FLUSHER] WARNING Journal flush operation took 22,400ms last 8 cycles average is 2,800ms

BUILD FAILED
    java.lang.NoSuchMethodError: java.lang.reflect.InvocationTargetException.targetLjava/lang/Throwable;
    at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:54)
    at sun.reflect.GeneratedMethodAccessor6.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.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:809)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
4

1 回答 1

0

您使用的是什么版本的 Sonar 和 Ant?那些版本似乎不对。检查 Sonar 期望的 Ant 版本。

于 2013-11-20T13:45:13.623 回答