|
Hello, I’m trying to launch an analysis on a .NET Solution (Client-Server in WCF) I got this error, I can’t find the problem : Exception in thread "main" org.sonar.runner.RunnerException: java.lang.NullPointerException Can you help me ? I’m looking for days… Thanks, Nicolas Here is my sonar-project.properties : # required metadata sonar.projectKey=beCAD:AMToolFull sonar.projectName=AMTool Full sonar.projectVersion=1.0 # path to source directories (required) sonar.sources=. # List of the module identifiers sonar.modules=AMTool,AMToolCalculation, AMToolCommon, CalculsInterface, DatabaseAccess, WFCL_WebBrowser, GE_DEMO, MessageCenter, UIControls, AMToolServer, AMToolServerService, AMToolWeb, AZMAN.Facade, AZMAN.IFacade, DataGridThemes, TestAmTool # Properties can obviously be overriden for # each module - just prefix them with the module ID AMTool.sonar.projectName=AMTool.Client AMToolCalculation.sonar.projectName=AMToolCalculation AMToolCommon.sonar.projectName=AMToolCommon CalculsInterface.sonar.projectName=CalculsInterface DatabaseAccess.sonar.projectName=DatabaseAccess GE_DEMO.sonar.projectName=GE_DEMO MessageCenter.sonar.projectName=MessageCenter UIControls.sonar.projectName=UIControls AMToolServer.sonar.projectName=AMToolServer AMToolServerService.sonar.projectName=AMToolServerService AMToolWeb.sonar.projectName=AMToolWeb DataGridThemes.sonar.projectName=DataGridThemes35 AZMAN.Facade.sonar.projectName=AZMAN.TestArc4u.Facade AZMAN.IFacade.sonar.projectName= AZMAN.TestArc4u.IFacade TestAmTool.sonar.projectName=TestAmTool WFCL_WebBrowser.sonar.projectName=WFCL_WebBrowser # Uncomment this line to analyse a project which is not a java project. # The value of the property must be the key of the language. sonar.language=cs # C# Settings sonar.dotnet.visualstudio.solution.file=AMTool.sln sonar.silverlight.4.mscorlib.location=C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/Silverlight/v4.0 sonar.dotnet.excludeGeneratedCode=true sonar.dotnet.4.0.sdk.directory=C:/Windows/Microsoft.NET/Framework/v4.0.30319 sonar.dotnet.version=4.0 # C# Plugins # Gendarme sonar.gendarme.mode=skip # Gallio sonar.gallio.mode=skip sonar.gallio.converage.tool=OpenCover sonar.gallio.runner=Local sonar.dotnet.visualstudio.testProjectPattern=*UnitTest*;Testing* #sonar.opencover.installDirectory= # FXCop sonar.fxcop.installDirectory=C:/Program Files (x86)/Microsoft Fxcop 10.0 sonar.fxcop.mode=empty sonar.fxcop.assemblyDependencyDirectories=AMTool/bin/Debug, AMToolServerService/bin/Debug, AMToolWeb/bin, DataGridThemes/bin/Debug, AZMAN.Facade/bin/Debug # StyleCop sonar.stylecop.installDirectory=C:/Program Files (x86)/StyleCop 4.7 sonar.stylecop.mode=skip # NDeps sonar.ndeps.mode=skip
|
|
Hi Nicolas,
without more log, it's difficult to tell you the exact reason for this failure, but I'm pretty sure this has to do with the following point: you should not use "sonar.modules" for C# projects. Indeed, modules are guessed from the SLN file of your solution, so you don't need to list them all.
Give this a try, and get back to us if it still does not work (but with more log please ;-)). Best regards,
On Thu, Oct 11, 2012 at 3:20 PM, Nicolas HAENEN <[hidden email]> wrote:
|
| Powered by Nabble | Edit this page |
