Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30187

Cobetura plugin giving [ERROR] net.sourceforge.cobertura.javancss.parser.ParseException while using java 7.

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • cobertura-plugin
    • None

      [ERROR] net.sourceforge.cobertura.javancss.parser.ParseException: Encountered " "class" "class "" at line 14, column 14.
      Was expecting one of:
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...

      at net.sourceforge.cobertura.javancss.parser.JavaParser.generateParseException(JavaParser.java:10296)
      at net.sourceforge.cobertura.javancss.parser.JavaParser.jj_consume_token(JavaParser.java:10172)
      at net.sourceforge.cobertura.javancss.parser.JavaParser.AnnotationTypeDeclaration(JavaParser.java:4895)
      at net.sourceforge.cobertura.javancss.parser.JavaParser.TypeDeclaration(JavaParser.java:629)
      at net.sourceforge.cobertura.javancss.parser.JavaParser.CompilationUnit(JavaParser.java:353)
      at net.sourceforge.cobertura.javancss.parser.JavaParser.parse(JavaParser.java:137)
      at net.sourceforge.cobertura.javancss.Javancss._measureSource(Javancss.java:256)
      at net.sourceforge.cobertura.javancss.Javancss._measureRoot(Javancss.java:339)
      at net.sourceforge.cobertura.javancss.Javancss.<init>(Javancss.java:419)
      at net.sourceforge.cobertura.reporting.ComplexityCalculator.getAccumlatedCCNForSource(ComplexityCalculator.java:102)
      at net.sourceforge.cobertura.reporting.ComplexityCalculator.getAccumlatedCCNForSingleFile(ComplexityCalculator.java:139)
      at net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForSourceFileNameInternal(ComplexityCalculator.java:224)
      at net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForPackageInternal(ComplexityCalculator.java:194)
      at net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForProject(ComplexityCalculator.java:164)
      at net.sourceforge.cobertura.reporting.xml.XMLReport.<init>(XMLReport.java:80)
      at net.sourceforge.cobertura.reporting.Main.parseArguments(Main.java:107)
      at net.sourceforge.cobertura.reporting.Main.main(Main.java:174)
      net.sourceforge.cobertura.javancss.parser.ParseException: Encountered " "class" "class "" at line 11, column 14.
      Was expecting one of:
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...

      [cobertura] WARN [main] net.sourceforge.cobertura.reporting.ComplexityCalculator - JavaNCSS got an error while parsing the java file

      Encountered " "class" "class "" at line 14, column 14.
      Was expecting one of:
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...

          [JENKINS-30187] Cobetura plugin giving [ERROR] net.sourceforge.cobertura.javancss.parser.ParseException while using java 7.

          Last two releases (separated by over a year) were by olivergondza so looks like the maintainer

          Stephen Connolly added a comment - Last two releases (separated by over a year) were by olivergondza so looks like the maintainer

          This is an issue with core cobertura parsing your source code. Please file a bug in the cobertura repository and provide this error message along with the line code code it is trying to parse (line 11 column 14).
           

          Steven Christou added a comment - This is an issue with core cobertura parsing your source code. Please file a bug in the cobertura repository and provide this error message along with the line code code it is trying to parse (line 11 column 14).  

            schristou Steven Christou
            sakirali989 Shakir Ali
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: