2016-01-18 63 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