Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.3.0
-
Fix Version/s: 1.0
-
Component/s: None
-
Labels:None
-
Environment:maven 2.2.1
eclipse (helios/Galileo)
Sonar: 2.4.1
-
Number of attachments :
Description
I've installed the Eclipse plugin in both Helios and Galileo.
I've configured the Sonar server in Window > Preferences > Sonar . I'm able to see my server configs and the connection tests got success.
In Eclipse, I've rigth-clicked the mouse on my project > COnfigure > Associate with Sonar. I filled the GroupId and the ArtifactID and click Finish. I got the following exception: (See the atached picture for more details)
org.eclipse.core.internal.resources.ResourceException(/GifeEJB)[566]: java.lang.NullPointerException at org.sonar.ide.eclipse.jdt.internal.JavaElementsAdapterFactory.getAdapter(JavaElementsAdapterFactory.java:83) at org.eclipse.core.internal.runtime.AdapterManager.getAdapter(AdapterManager.java:326) at org.eclipse.core.internal.runtime.AdapterManager.loadAdapter(AdapterManager.java:356) at org.sonar.ide.eclipse.utils.PlatformUtils.adapt(PlatformUtils.java:46) at org.sonar.ide.eclipse.jobs.RefreshAllViolationsJob.visit(RefreshAllViolationsJob.java:80) at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:112) at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:64) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:127) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:110) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94) at org.sonar.ide.eclipse.jobs.AbstractRefreshModelJob.run(AbstractRefreshModelJob.java:72) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
And going to Window > Preferences > Sonar again, there's another blank server just created!!!! See the attached picture for more details
I suppose that you didn't set server in wizard (Project > Configure > Associate with Sonar).