maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stäbler, Christoph (IT/R2A) <christoph.staeb...@ww-informatik.de>
Subject ParseException in cobertura with some generics
Date Mon, 22 Aug 2011 09:09:56 GMT
Hi,

I am using the cobertura-maven-plugin (version 2.4) for code test coverage.
The compile works. But I get an error when I try to generate the site.

Error:
[DEBUG] Calling NCSSExecuter with encoding : UTF-8 ParseException in ....classname.java Encountered
" "<" "< "" at line 83, column 14.
Was expecting one of:
    "assert" ...
    <IDENTIFIER> ...
    ";" ...
    "=" ...
    "++" ...
    "--" ...
    "+=" ...
    "-=" ...
    "*=" ...
    "/=" ...
    "&=" ...
    "|=" ...
    "^=" ...
    "%=" ...
    "<<=" ...
    ">>=" ...
    ">>>=" ...

Here is the line that the error is coming from:
this.<SomeDataType> foo( pValue );

Has anybody have had the same problem or possible solutions for this problem?

I saw, that I can exclude or ignore some files, but that is probably not the best way to handle
this error :)

Stacktrace:

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page generation
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	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:597)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at hudson.maven.agent.Main.launch(Main.java:173)
	at hudson.maven.MavenBuilder.call(MavenBuilder.java:164)
	at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:974)
	at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:905)
	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:270)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error during page generation
	at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:123)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	... 28 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error rendering Maven report:
Error while JavaNCSS was executing
	at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:171)
	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:330)
	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:134)
	at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:154)
	at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:118)
	... 31 more
Caused by: org.apache.maven.reporting.MavenReportException: Error while JavaNCSS was executing
	at org.codehaus.mojo.javancss.NcssExecuter.execute(NcssExecuter.java:112)
	at org.codehaus.mojo.javancss.NcssReportMojo.generateSingleReport(NcssReportMojo.java:264)
	at org.codehaus.mojo.javancss.NcssReportMojo.executeReport(NcssReportMojo.java:180)
	at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
	at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at hudson.maven.agent.ComponentInterceptor.invoke(ComponentInterceptor.java:47)
	at hudson.maven.agent.PluginManagerInterceptor$3.invoke(PluginManagerInterceptor.java:229)
	at $Proxy12.generate(Unknown Source)
	at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:161)
	... 35 more
Caused by: javancss.parser.ParseException: Encountered " "<" "< "" at line 774, column
14.
Was expecting one of:
    "assert" ...
    <IDENTIFIER> ...
    ";" ...
    "=" ...
    "++" ...
    "--" ...
    "+=" ...
    "-=" ...
    "*=" ...
    "/=" ...
    "&=" ...
    "|=" ...
    "^=" ...
    "%=" ...
    "<<=" ...
    ">>=" ...
    ">>>=" ...
    
	at javancss.parser.JavaParser.generateParseException(JavaParser.java:10248)
	at javancss.parser.JavaParser.jj_consume_token(JavaParser.java:10124)
	at javancss.parser.JavaParser.Statement(JavaParser.java:3761)
	at javancss.parser.JavaParser.BlockStatement(JavaParser.java:3949)
	at javancss.parser.JavaParser.Block(JavaParser.java:3899)
	at javancss.parser.JavaParser.MethodDeclaration(JavaParser.java:2000)
	at javancss.parser.JavaParser.ClassBodyDeclaration(JavaParser.java:1043)
	at javancss.parser.JavaParser.ClassBody(JavaParser.java:902)
	at javancss.parser.JavaParser.UnmodifiedClassDeclaration(JavaParser.java:815)
	at javancss.parser.JavaParser.ClassDeclaration(JavaParser.java:722)
	at javancss.parser.JavaParser.TypeDeclaration(JavaParser.java:569)
	at javancss.parser.JavaParser.CompilationUnit(JavaParser.java:314)
	at javancss.parser.JavaParser.parse(JavaParser.java:98)
	at javancss.Javancss._measureSource(Javancss.java:237)
	at javancss.Javancss._measureSource(Javancss.java:174)
	at javancss.Javancss._measureFiles(Javancss.java:300)
	at javancss.Javancss._measureRoot(Javancss.java:325)
	at javancss.Javancss.<init>(Javancss.java:649)
	at org.codehaus.mojo.javancss.NcssExecuter.execute(NcssExecuter.java:106)
	... 45 more

Thanks,
Chris
*******************************************************************************
Diese eMail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese eMail irrtuemlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht
gestattet.

This email may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this email 
in error) please notify the sender immediately and destroy this e-mail. 
Any unauthorized copying, disclosure or distribution of the material 
in this email is strictly forbidden.
*******************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message