Menu

#13 Can not find checkstyle.properties

open
nobody
None
5
2006-02-09
2006-02-09
No

It seems there is no checkstyle.properties file
included with the netbean plug-in. I have done a
websearch, but I have failed to find an appropriate
file. The best I find is a reference on the project
page to one being in the "docs" directory. But there
is no "docs" directory either... I tried creating a
dummy empty file, but that doesn't work either.

Bill

Discussion

  • Dr Bill C Riemers

    Logged In: YES
    user_id=290784

    BTW. The relevant error message is:

    An error occurred during initialization.
    Make sure there is a configuration file set under
    Tools->Options->Building->Checkstyle Settings
    Done.

     
  • Dr Bill C Riemers

    Logged In: YES
    user_id=290784

    I found there is a checkstyle.properties file as part of the
    CVS tree. However, that file does not seem to be formatted
    correctly. This is the error I got when attempting to use
    the file from CVS:

    An error occurred during initialization.
    Make sure there is a configuration file set under
    Tools->Options->Building->Checkstyle Settings
    com.puppycrawl.tools.checkstyle.api.CheckstyleException:
    unable to parse C:\Program
    Files\netbeans-4.1\nb4.1\config\Modules\checkstyle.properties
    - Content is not allowed in prolog.:1:1

    at
    com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration(ConfigurationLoader.java:261)

    at
    com.goulbourn.docenforcer.CheckstyleAction.runChecker(CheckstyleAction.java:322)

    at
    com.goulbourn.docenforcer.CheckstyleAction.performAction(CheckstyleAction.java:282)

    at
    org.openide.util.actions.NodeAction$3.run(NodeAction.java:450)

    at
    org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247)

    at
    org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74)

    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:585)

    at
    org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:179)

    at
    org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31)

    at
    org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241)

    at
    org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111)

    at org.openide.util.Task.run(Task.java:189)

    at
    org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)

    at
    org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)

    Caused by: org.xml.sax.SAXParseException: Content is not
    allowed in prolog.

    at
    com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)

    at
    com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)

    at
    com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)

    at
    com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)

    at
    com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)

    at
    com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:899)

    at
    com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)

    at
    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)

    at
    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

    at
    com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)

    at
    com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)

    at
    com.puppycrawl.tools.checkstyle.api.AbstractLoader.parseInputSource(AbstractLoader.java:96)

    at
    com.puppycrawl.tools.checkstyle.ConfigurationLoader.parseInputStream(ConfigurationLoader.java:219)

    at
    com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration(ConfigurationLoader.java:248)

    ... 16 more

    Done.

     

Log in to post a comment.

MongoDB Logo MongoDB