This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 6.8 (Build 200912041610) VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03 OS: Linux User Comments: GUEST: Impossible to configure a configuration file for the SQE Checkstyle plugin - it results either in a MalformedURLException or NullPointerException. GUEST: just loaded the SQE plugin Stacktrace: java.net.MalformedURLException: no protocol: config/sun_checks.xml at java.net.URL.<init>(URL.java:567) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at org.nbheaven.sqe.tools.checkstyle.codedefects.projects.maven.CheckstyleSettingsProviderImpl.getCheckstyleSettings(CheckstyleSettingsProviderImpl.java:90) at org.nbheaven.sqe.tools.checkstyle.codedefects.core.CheckstyleScannerJob.init(CheckstyleScannerJob.java:83) at org.nbheaven.sqe.tools.checkstyle.codedefects.core.CheckstyleScannerJob.scan(CheckstyleScannerJob.java:143)
Created attachment 95485 [details] stacktrace
Not sure about fix, maybe mkleint can review: sqe #83f148a11be7
this value is a valid one and points to the checkstyle plugin jar. So the proper fix would be to construct the jar: protocol url to the checkstyle plugin jar.. or something similar, I don't recall the codebase anymore..
The code already looks through MavenUtilities.findDependencyArtifacts(p, "org.apache.maven.plugins", "maven-checkstyle-plugin", true) and looks for the named path as a ZIP entry. Clearly it doesn't always work, since the exception mentions a path that is supposed to exist. I don't know enough about Checkstyle or its usage from Maven to evaluate further. The MFUE will no longer be reported but otherwise the behavior is the same.