Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: ANT-TASK-1.4
-
Component/s: Ant Task
-
Labels:None
-
Number of attachments :
Description
For instance, we get the following exception when the sonar.projectKey property is not defined :
Caused by: java.lang.RuntimeException: wrapper at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:130) ... 39 more Caused by: java.lang.NullPointerException at org.sonar.batch.bootstrap.ProjectFilter.getArtifactId(ProjectFilter.java:68) at org.sonar.batch.bootstrap.ProjectFilter.isExcluded(ProjectFilter.java:43) at org.sonar.batch.ProjectTree.applyExclusions(ProjectTree.java:98) at org.sonar.batch.ProjectTree.doStart(ProjectTree.java:92) at org.sonar.batch.ProjectTree.start(ProjectTree.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ... 38 more
Issue Links
- relates to
-
SONARPLUGINS-1464
When launching the Sonar Runner without providing the sonar-project.properties and/or the project kee, a NullPointerException is thrown without any additional information
-
-
SONARPLUGINS-1466
When launching the Sonar Runner, a meaningful error message must be throw if one of the mandatory properties has not been defined
-
- supercedes
-
SONARPLUGINS-1674
When the mandatory 'key' and/or 'version' properties of the Sonar Ant task are not define we get a NullPointerException instead of a meaningful message
-
IT added.