Quantcast

Gendrame error in the Sonar for c# project

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

Gendrame error in the Sonar for c# project

Masood
Hello,
I am using Sonar 2.14 and FxCop 10.0. But while analysis one C# project with Sonar, the analysis get struck in the beginning.

----------------------------------------------------------------------------------------
                                            Error
--------------------------------------------------------------------------------------
INFO] [16:05:04.645] Stack trace: System.ArgumentException: attribute
[INFO] [16:05:04.645]    at Gendarme.Rules.Security.Cas.SecurityDeclarationRocks.CreatePermission(SecurityDeclaration declaration, SecurityAttribute attribute)
[INFO] [16:05:04.645]    at Gendarme.Rules.Security.Cas.SecurityDeclarationRocks.CreatePermissionSet(SecurityDeclaration declaration)
[INFO] [16:05:04.645]    at Gendarme.Rules.Security.Cas.SecurityDeclarationRocks.ToPermissionSet(SecurityDeclaration self)
[INFO] [16:05:04.645]    at Gendarme.Rules.Security.Cas.AddMissingTypeInheritanceDemandRule.CheckType(TypeDefinition type)
[INFO] [16:05:04.645]    at Gendarme.Framework.Runner.OnType(RunnerEventArgs e)
[INFO] [16:05:04.645]    at Gendarme.Framework.Runner.Run()
[INFO] [16:05:04.645]    at Gendarme.ConsoleRunner.Run()
[INFO] [16:05:04.645]    at Gendarme.ConsoleRunner.Execute(String[] args)
[DEBUG] [16:05:05.191] To prevent a memory leak, the JDBC Driver [com.mysql.jdbc.Driver] has been forcibly deregistered
[DEBUG] [16:05:09.996] Delete temporary directory: C:\Users\m1019063\AppData\Local\Temp\sonar-batch501740433841799538019164504056583
[DEBUG] [16:05:10.058] Delete temporary directory: C:\Users\m1019063\AppData\Local\Temp\sonar-batch890077820324091270918719168050060
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Can not execute Sonar

Embedded error: Gendarme execution failed.
Gendarme analysis failed: execution was interrupted by a non-handled exception. This is likely a bug inside Gendarme and should be reported on Novell's bugzilla (http://bugzilla.novell.com) or on the mailing-list.
[INFO] -------------
-----------------------------------------------------------------------------------------------------
I have attach the detail log with this post.

Thanks Ahead,ErrorLog.txt

With Regards,
Masood
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gendrame error in the Sonar for c# project

Alexandre Victoor-2
Masood,
That looks like a gendarme issue. You should drop a mail to the gendarme google group (*)
Regards

Alex

https://groups.google.com/forum/?fromgroups#!forum/gendarme 


On Sun, Aug 12, 2012 at 7:54 PM, Masood <[hidden email]> wrote:
Hello,
I am using Sonar 2.14 and FxCop 10.0. But while analysis one C# project with
Sonar, the analysis get struck in the beginning.

----------------------------------------------------------------------------------------
                                            Error
--------------------------------------------------------------------------------------
INFO] [16:05:04.645] Stack trace: System.ArgumentException: attribute
[INFO] [16:05:04.645]    at
Gendarme.Rules.Security.Cas.SecurityDeclarationRocks.CreatePermission(SecurityDeclaration
declaration, SecurityAttribute attribute)
[INFO] [16:05:04.645]    at
Gendarme.Rules.Security.Cas.SecurityDeclarationRocks.CreatePermissionSet(SecurityDeclaration
declaration)
[INFO] [16:05:04.645]    at
Gendarme.Rules.Security.Cas.SecurityDeclarationRocks.ToPermissionSet(SecurityDeclaration
self)
[INFO] [16:05:04.645]    at
Gendarme.Rules.Security.Cas.AddMissingTypeInheritanceDemandRule.CheckType(TypeDefinition
type)
[INFO] [16:05:04.645]    at Gendarme.Framework.Runner.OnType(RunnerEventArgs
e)
[INFO] [16:05:04.645]    at Gendarme.Framework.Runner.Run()
[INFO] [16:05:04.645]    at Gendarme.ConsoleRunner.Run()
[INFO] [16:05:04.645]    at Gendarme.ConsoleRunner.Execute(String[] args)
[DEBUG] [16:05:05.191] To prevent a memory leak, the JDBC Driver
[com.mysql.jdbc.Driver] has been forcibly deregistered
[DEBUG] [16:05:09.996] Delete temporary directory:
C:\Users\m1019063\AppData\Local\Temp\sonar-batch501740433841799538019164504056583
[DEBUG] [16:05:10.058] Delete temporary directory:
C:\Users\m1019063\AppData\Local\Temp\sonar-batch890077820324091270918719168050060
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Can not execute Sonar

Embedded error: Gendarme execution failed.
Gendarme analysis failed: execution was interrupted by a non-handled
exception. This is likely a bug inside Gendarme and should be reported on
Novell's bugzilla (http://bugzilla.novell.com) or on the mailing-list.
[INFO] -------------
-----------------------------------------------------------------------------------------------------
I have attach the detail log with this post.

Thanks Ahead, http://sonar.15.n6.nabble.com/file/n5001879/ErrorLog.txt
ErrorLog.txt

With Regards,
Masood



--
View this message in context: http://sonar.15.n6.nabble.com/Gendrame-error-in-the-Sonar-for-c-project-tp5001879.html
Sent from the Sonar user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



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

Re: Gendrame error in the Sonar for c# project

Masood
Thanks Alex,
I will raise the issue in Gendrame forum.
 But, i have one question. In my log, i have seen that Gendrame is not able find the dll of project.
(Although it is present in the project).
Can i guide Sonar with
"<msbuild.configurations>Debug</msbuild.configurations>" to pick the dll and perform the analysis?
If so, can you plz give me one sample example to do it?
Or any other tag to guide for same?


Thanks Ahead,

With Regards,
Masood
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gendrame error in the Sonar for c# project

Masood
Dear Team,

In continuation my last post, i want to know is there any xml tag in Maven or Ant(for Sonar),
by which I can re direct gendrame to dll location when it is not able to search
from the solution file of the project.

Thanks ahead,
Masood
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gendrame error in the Sonar for c# project

Fabrice Bellingard-4
Hi Masood,

Have you tried the "sonar.dotnet.assemblies" parameter? (see documentation on this page: http://docs.codehaus.org/display/SONAR/sonar-csharp-core-plugin)


Best regards,

Fabrice BELLINGARD | SonarSource
http://sonarsource.com



On Wed, Aug 29, 2012 at 8:38 AM, Masood <[hidden email]> wrote:
Dear Team,

In continuation my last post, i want to know is there any xml tag in Maven
or Ant(for Sonar),
by which I can re direct gendrame to dll location when it is not able to
search
from the solution file of the project.

Thanks ahead,
Masood



--
View this message in context: http://sonar.15.n6.nabble.com/Gendrame-error-in-the-Sonar-for-c-project-tp5001879p5002432.html
Sent from the Sonar user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



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

Re: Gendrame error in the Sonar for c# project

Masood
Hi Fabrice,

Thanks for your reply.

I have tried with the "sonar.dotnet.assemblies" tag also. But, it is not working.
I have my all dll in one single folder( inside bin folder). So it is difficult for me to use "sonar.exclusion" command.
Is there any xml tag to exclude particular dll from the analysis?
May be by excluding the dll(one which is causing the issue) gendrame works for rest.

Thanks Ahead,
Masood
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gendrame error in the Sonar for c# project

Fabrice Bellingard-4
"sonar.exclusions" won't work on assemblies, it only works on source files.

When using "sonar.dotnet.assemblies", you can use placeholders in the patterns. You can see this at the botton of the following page: http://docs.codehaus.org/display/SONAR/2.+Configure. Please note that some of the placeholders described in this section may not work with the current version of the C# plugins but will be available shortly with the upcoming version 1.4.


Best regards,

Fabrice BELLINGARD | SonarSource
http://sonarsource.com



On Thu, Aug 30, 2012 at 8:24 AM, Masood <[hidden email]> wrote:
Hi Fabrice,

Thanks for your reply.

I have tried with the "sonar.dotnet.assemblies" tag also. But, it is not
working.
I have my all dll in one single folder( inside bin folder). So it is
difficult for me to use "sonar.exclusion" command.
Is there any xml tag to exclude particular dll from the analysis?
May be by excluding the dll(one which is causing the issue) gendrame works
for rest.

Thanks Ahead,
Masood




--
View this message in context: http://sonar.15.n6.nabble.com/Gendrame-error-in-the-Sonar-for-c-project-tp5001879p5002497.html
Sent from the Sonar user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



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

Re: Gendrame error in the Sonar for c# project

Masood
Hello Fabrice,

The Error get resolved by installing a fresh copy of:
1. Gendarme 2.11 (Snapshot)
2. FxCop 1.36

Thanks for your help.


With Regards,
Masood
Loading...