You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/05/06 08:34:00 UTC
[jira] [Resolved] (CAMEL-12483) route-coverage : endChoice()
problem
[ https://issues.apache.org/jira/browse/CAMEL-12483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-12483.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.22.0
2.21.2
Thanks for reporting and with the sample project - that was great help to reproduce and fix the bug
> route-coverage : endChoice() problem
> ------------------------------------
>
> Key: CAMEL-12483
> URL: https://issues.apache.org/jira/browse/CAMEL-12483
> Project: Camel
> Issue Type: Improvement
> Components: tooling
> Affects Versions: 2.21.0
> Reporter: Søren Mortensen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.21.2, 2.22.0
>
> Attachments: coverage.zip
>
>
> When running
> {code:java}
> mvn camel:route-coverage{code}
> on routes that use endChoice() you get a NullPointerException.
> {code:java}
> [WARNING] Error parsing java file c:\workspace\kk\coverage\src\main\java\dk\smor\MySpringBootRouter.java code due null
> java.lang.NullPointerException
> at org.apache.camel.parser.helper.CamelJavaTreeParserHelper.parseCamelRouteTree(CamelJavaTreeParserHelper.java:132)
> at org.apache.camel.parser.RouteBuilderParser.parseRouteBuilderTree(RouteBuilderParser.java:80)
> at org.apache.camel.maven.RouteCoverageMojo.execute(RouteCoverageMojo.java:158)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> {code}
> I have attached a zip file with some example code to re-produce the problem.
> The example code has 2 routes, 1 with endChoice() and 1 without. The 2 route should behave equally.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)