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 175092 - [68cat] SAXParseException's from maven.format.checkstyle.ModuleConvertor.convert
Summary: [68cat] SAXParseException's from maven.format.checkstyle.ModuleConvertor.convert
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL: http://statistics.netbeans.org/except...
Keywords:
: 178118 192412 (view as bug list)
Depends on:
Blocks: 181910
  Show dependency tree
 
Reported: 2009-10-21 11:42 UTC by tomzi
Modified: 2011-01-12 15:39 UTC (History)
27 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 160138


Attachments
stacktrace (3.80 KB, text/plain)
2009-10-21 11:42 UTC, tomzi
Details
stacktrace (3.64 KB, text/plain)
2010-04-21 14:59 UTC, Oleg Khokhlov
Details
stacktrace (4.48 KB, text/plain)
2010-05-13 02:19 UTC, Jesse Glick
Details
stacktrace (3.72 KB, text/plain)
2010-06-21 23:04 UTC, Jesse Glick
Details
stacktrace (4.05 KB, text/plain)
2010-07-14 17:48 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2009-10-21 11:42:17 UTC
Build: NetBeans IDE 6.8 M2 (Build 200910071658)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments:
giorgio42: Started a NB68 built myself on Vista from main-golden. 
If you try to parse something like http://www.puppycrawl.com/dtds/configuration_1_2.dtd you'd probably deserve an exception anyway...

giorgio42: once again, on startup.

GUEST: Generating POM for checkstyle

giorgio42: on startup...



Stacktrace: 
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
        at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(XMLDTDScannerImpl.java:1997)
        at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExternalSubset(XMLDTDScannerImpl.java:320)
Comment 1 tomzi 2009-10-21 11:42:22 UTC
Created attachment 89846 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-10-21 11:42:27 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160138
Comment 3 Sergey Lunegov 2009-10-26 10:19:25 UTC
Next release.
Comment 4 Oleg Khokhlov 2010-04-21 14:59:04 UTC
Created attachment 97810 [details]
stacktrace

- Project Properties on maven project -> Check Style Formatting tab
- checked Use CheckStyle Rules ...
- pressed 'Generate ...' button at the bottom of the tab
Comment 5 Jesse Glick 2010-05-13 02:19:26 UTC
Created attachment 98911 [details]
stacktrace
Comment 6 Jesse Glick 2010-06-21 23:04:31 UTC
Created attachment 100292 [details]
stacktrace

Opened source for findbugs-maven-plugin.
Comment 7 Jesse Glick 2010-07-14 17:48:28 UTC
Created attachment 100836 [details]
stacktrace

Checked out sources of nbm-maven-plugin via repository browser.
Comment 8 Jesse Glick 2010-08-19 00:37:39 UTC
Caused by a redirect to http://users.tpg.com.au/ojburn//dtds/configuration_1_2.dtd which I guess Xerces is not prepared to follow. Anyway this DTD is available locally but the entity resolved was botched.
Comment 9 Jesse Glick 2010-08-19 00:38:33 UTC
core-main #964ad2c2ce6b
Comment 10 Jesse Glick 2010-08-19 00:39:37 UTC
*** Bug 178118 has been marked as a duplicate of this bug. ***
Comment 11 Quality Engineering 2010-08-20 03:13:02 UTC
Integrated into 'main-golden', will be available in build *201008200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/964ad2c2ce6b
User: Jesse Glick <jglick@netbeans.org>
Log: #175092: [68cat] SAXParseException's from maven.format.checkstyle.ModuleConvertor.convert
Comment 12 Jesse Glick 2010-11-29 17:53:13 UTC
*** Bug 192412 has been marked as a duplicate of this bug. ***
Comment 13 osandum 2010-12-13 10:14:28 UTC
In the meantime, is there any way to disable the checkstyle start-up hook entirely?
Comment 14 Jesse Glick 2011-01-07 00:57:05 UTC
(In reply to comment #13)
> In the meantime, is there any way to disable the checkstyle start-up hook
> entirely?

Other than removing CheckStyle-related config from the POM, not that I know of. If this exception is causing enough pain I can mark it as a candidate for backporting to a patch update for 6.9 (though I'm not sure if these are still being produced).
Comment 15 Jesse Glick 2011-01-12 15:39:21 UTC
Marking as a patch candidate just in case another round of patches will be produced. Otherwise the problem should be solved in NB 7.0.