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.

Bug 182425 - java.net.MalformedURLException: no protocol: config/sun_checks.xml
Summary: java.net.MalformedURLException: no protocol: config/sun_checks.xml
Status: REOPENED
Alias: None
Product: third-party
Classification: Unclassified
Component: sqe tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: sreimers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-20 18:18 UTC by sebglon
Modified: 2010-06-17 16:25 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 165063


Attachments
stacktrace (911 bytes, text/plain)
2010-03-20 18:18 UTC, sebglon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sebglon 2010-03-20 18:18:00 UTC
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)
Comment 1 sebglon 2010-03-20 18:18:08 UTC
Created attachment 95485 [details]
stacktrace
Comment 2 Jesse Glick 2010-06-17 16:08:38 UTC
Not sure about fix, maybe mkleint can review: sqe #83f148a11be7
Comment 3 Milos Kleint 2010-06-17 16:16:40 UTC
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..
Comment 4 Jesse Glick 2010-06-17 16:25:43 UTC
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.