Menu

An internal error occurred during: &quo...

Anonymous
2011-07-15
2013-02-04
  • Anonymous

    Anonymous - 2011-07-15

    I have got such as error please help me?

    eclipse 3.6 / checkstyle 5.3

    An internal error occurred during: "Checking files...".
    No enum const class
    com.puppycrawl.tools.checkstyle.api.SeverityLevel.WARNİNG

     
  • Lars Koedderitzsch

    Is there a stack trace available? Pls check the error log view for a
    corresponding entry.

     
  • Marius Grama

    Marius Grama - 2013-02-04

    Checkstyle here:

    !ENTRY org.eclipse.core.jobs 4 2 2013-02-04 15:33:34.665
    !MESSAGE An internal error occurred during: "Checking files...".
    !STACK 0
    java.lang.IllegalArgumentException: No enum constant com.puppycrawl.tools.checkstyle.api.SeverityLevel.IGNORE,WARNING
    at java.lang.Enum.valueOf(Unknown Source)
    at com.puppycrawl.tools.checkstyle.api.SeverityLevel.getInstance(SeverityLevel.java:67)
    at com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader.endElement(ConfigurationLoader.java:193)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.puppycrawl.tools.checkstyle.api.AbstractLoader.parseInputSource(AbstractLoader.java:98)
    at com.puppycrawl.tools.checkstyle.ConfigurationLoader.parseInputSource(ConfigurationLoader.java:273)
    at com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration(ConfigurationLoader.java:397)
    at net.sf.eclipsecs.core.builder.CheckerFactory.createCheckerInternal(CheckerFactory.java:283)
    at net.sf.eclipsecs.core.builder.CheckerFactory.createChecker(CheckerFactory.java:140)
    at net.sf.eclipsecs.core.builder.Auditor.runAudit(Auditor.java:142)
    at net.sf.eclipsecs.core.builder.CheckstyleBuilder.handleBuildSelection(CheckstyleBuilder.java:288)
    at net.sf.eclipsecs.core.jobs.RunCheckstyleOnFilesJob.runInWorkspace(RunCheckstyleOnFilesJob.java:116)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

     
  • Marius Grama

    Marius Grama - 2013-02-04

    My issue was linked to :
    http://sourceforge.net/p/checkstyle/bugs/682/

    After removing manually the element:

     <module name="DoubleCheckedLocking">
         <property name="severity" value="ignore"/>
         <property name="severity" value="warning"/>
         <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity"  value="inherit"/>
     </module>
    

    from my checkstyle configuration, the problem dissapeared.

     

    Last edit: Marius Grama 2013-02-04

Log in to post a comment.