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

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

XMLWordPrintable

    • 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:
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...
      "@" ...

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

              Created:
              Updated:
              Resolved: