我在项目的构建XML文件中运行sonar ant任务。项目建设是从哈德森工作完成的。但是发生了以下异常:
[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)
答案 0 :(得分:0)
您使用的是什么版本的Sonar和Ant?似乎那些版本不对。检查Sonar期望的Ant版本。