Quantcast

NullPointerException

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

NullPointerException

Nicolas HAENEN

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

 

 


Cordialement,

Nicolas HAENEN
Project Manager

Description : Description : http://www.becad.be/images/Liege2017_email.jpg

 

  Nicolas HAENEN   beCAD
  Rue du Centre, 22
  4140 SPRIMONT (BELGIUM)

  Tél: +32.4.285.94.46
  Fax: +32.4.285.94.47
  Mob: +32.498.26.61.16
  eMail: [hidden email]

Description : Description : http://www.becad.be/images/beCAD_email.gif

Description : Description : http://www.becad.be/images/envir_email.pngConsider the environment before printing this email

 

 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NullPointerException

Fabrice Bellingard-4
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,

Fabrice BELLINGARD | SonarSource
http://sonarsource.com



On Thu, Oct 11, 2012 at 3:20 PM, Nicolas HAENEN <[hidden email]> wrote:

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

 

 


Cordialement,

Nicolas HAENEN
Project Manager

Description : Description : http://www.becad.be/images/Liege2017_email.jpg

 

  Nicolas HAENEN   beCAD
  Rue du Centre, 22
  4140 SPRIMONT (BELGIUM)

  Tél: <a href="tel:%2B32.4.285.94.46" value="+3242859446" target="_blank">+32.4.285.94.46
  Fax: <a href="tel:%2B32.4.285.94.47" value="+3242859447" target="_blank">+32.4.285.94.47
  Mob: <a href="tel:%2B32.498.26.61.16" value="+32498266116" target="_blank">+32.498.26.61.16
  eMail: [hidden email]

Description : Description : http://www.becad.be/images/beCAD_email.gif

Description : Description : http://www.becad.be/images/envir_email.pngConsider the environment before printing this email

 

 


Loading...