2016-01-18 104 views
0

我在运行ccap时遇到问题...声纳异常...没有这种方法错误。CCAP声纳异常

请查找日志内容。

Exception in thread "main" org.sonar.runner.RunnerException: java.lang.NoSuchMethodError: java/util/Properties.load(Ljava/io/Reader;)V 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.runner.Runner.delegateExecution(Runner.java:288) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.runner.Runner.execute(Runner.java:151) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.runner.Main.execute(Main.java:84) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.runner.Main.main(Main.java:56) 13:44:02,035 INFO ProgressExecutor:? - Caused by: java.lang.NoSuchMethodError: java/util/Properties.load(Ljava/io/Reader;)V 13:44:02,035 INFO ProgressExecutor:? - at com.pmd.rules.custom.HibernateStmtRule.loadSqlInProperties(HibernateStmtRule.java:161) 13:44:02,035 INFO ProgressExecutor:? - at com.pmd.rules.custom.HibernateStmtRule.(HibernateStmtRule.java:152) 13:44:02,035 INFO ProgressExecutor:? - at java.lang.Class.newInstanceImpl(Native Method) 13:44:02,035 INFO ProgressExecutor:? - at java.lang.Class.newInstance(Class.java:1243) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.parseSingleRuleNode(RuleSetFactory.java:309) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.parseRuleNode(RuleSetFactory.java:253) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(RuleSetFactory.java:209) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:157) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:146) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.parseRuleReferenceNode(RuleSetFactory.java:365) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.parseRuleNode(RuleSetFactory.java:255) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(RuleSetFactory.java:209) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:157) 13:44:02,035 INFO ProgressExecutor:? - at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:146) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.plugins.pmd.PmdExecutor.readRuleSet(PmdExecutor.java:115) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.plugins.pmd.PmdExecutor.createRulesets(PmdExecutor.java:107) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.plugins.pmd.PmdExecutor.executeRules(PmdExecutor.java:89) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.plugins.pmd.PmdExecutor.executePmd(PmdExecutor.java:75) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.plugins.pmd.PmdExecutor.execute(PmdExecutor.java:61) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.plugins.pmd.PmdSensor.analyse(PmdSensor.java:52) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.phases.Phases.execute(Phases.java:91) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:129) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.bootstrap.Module.start(Module.java:68) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:147) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:136) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.bootstrap.Module.start(Module.java:68) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:83) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.bootstrap.Module.start(Module.java:68) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.batch.Batch.execute(Batch.java:106) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.runner.internal.batch.Launcher.executeBatch(Launcher.java:69) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.runner.internal.batch.Launcher.execute(Launcher.java:61) 13:44:02,035 INFO ProgressExecutor:? - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 13:44:02,035 INFO ProgressExecutor:? - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 13:44:02,035 INFO ProgressExecutor:? - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 13:44:02,035 INFO ProgressExecutor:? - at java.lang.reflect.Method.invoke(Method.java:615) 13:44:02,035 INFO ProgressExecutor:? - at org.sonar.runner.Runner.delegateExecution(Runner.java:285) 13:44:02,051 INFO ProgressExecutor:? - ... 3 more 13:44:02,831 INFO DatabaseController:? - Database Shutdown initiated... 13:44:03,080 INFO ProgressExecutor:? - Job not completed and CANCEl_STATUS. 13:44:03,112 INFO ProgressExecutor:? - Exception occured during CCAPAction Analysis:CCAP Analysis error occured, please refer the ccap log for more details

+1

请提供您尝试运行的代码并适当地设置您的帖子的格式。 – Suever

+0

它显示所有代码 – Neeraj

回答

0

您需要将Java升级到至少Java6。你得到了errormessage的是通知您下面的方法:

java/util/Properties.load(Ljava/io/Reader;) 

不可用。这是因为该功能被添加到Java6中,并且不存在于Java5中。

+0

M在RAD eclipse中运行CCAP ...你是否意味着RAD的第六版... ...? – Neeraj

+0

您的* Java *版本的确很旧。如果你不明白这个陈述,你不应该做这样复杂的事情。我不是在开玩笑或抱怨,我是认真的。 –

+0

,但它在上个月在相同的java eclipse中工作..它的RAD eclipse版本1 – Neeraj