[
https://issues.redhat.com/browse/DROOLS-3531?page=com.atlassian.jira.plug...
]
Mario Fusco resolved DROOLS-3531.
---------------------------------
Resolution: Out of Date
I tested it with latest release and it works for me. I attached to the ticket a zip file
with the maven project with which I tried.
template example nullpointexception when execute maven install
command in kjar project
--------------------------------------------------------------------------------------
Key: DROOLS-3531
URL:
https://issues.redhat.com/browse/DROOLS-3531
Project: Drools
Issue Type: Bug
Components: decision tables
Affects Versions: 7.16.0.Final
Reporter: canyu canyu
Assignee: Mario Fusco
Priority: Major
Attachments: template.zip
drools-template example changes packaging tag with kjar in pom.xml, adding
maven-compiler-plugin. When executes maven install command(-X install), outputs following
exception:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.247 s
[INFO] Finished at: 2019-01-18T17:28:50+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.16.0.Final:build
(default-build) on project drools-rule-mer: Execution default-build of goal
org.kie:kie-maven-plugin:7.16.0.Final:build failed.: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.kie:kie-maven-plugin:7.16.0.Final:build (default-build) on project drools-rule-mer:
Execution default-build of goal org.kie:kie-maven-plugin:7.16.0.Final:build failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-build of
goal org.kie:kie-maven-plugin:7.16.0.Final:build failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: java.lang.NullPointerException
at org.drools.decisiontable.parser.DefaultRuleSheetListener.flushRule
(DefaultRuleSheetListener.java:304)
at org.drools.decisiontable.parser.DefaultRuleSheetListener.finishSheet
(DefaultRuleSheetListener.java:284)
at org.drools.decisiontable.parser.xls.ExcelParser.finishSheet
(ExcelParser.java:285)
at org.drools.decisiontable.parser.xls.ExcelParser.processSheet
(ExcelParser.java:220)
at org.drools.decisiontable.parser.xls.ExcelParser.parseWorkbook
(ExcelParser.java:111)
at org.drools.decisiontable.parser.xls.ExcelParser.parseFile (ExcelParser.java:85)
at org.drools.decisiontable.SpreadsheetCompiler.parseResource
(SpreadsheetCompiler.java:126)
at org.drools.decisiontable.SpreadsheetCompiler.compile
(SpreadsheetCompiler.java:110)
at org.drools.decisiontable.SpreadsheetCompiler.compile
(SpreadsheetCompiler.java:83)
at org.drools.decisiontable.DecisionTableProviderImpl.compileResource
(DecisionTableProviderImpl.java:78)
at org.drools.decisiontable.DecisionTableProviderImpl.loadFromResource
(DecisionTableProviderImpl.java:44)
at org.drools.compiler.compiler.DecisionTableFactory.loadFromResource
(DecisionTableFactory.java:36)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.decisionTableToPackageDescr
(KnowledgeBuilderImpl.java:399)
at
org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl$ResourceToPkgDescrMapper.lambda$static$4
(CompositeKnowledgeBuilderImpl.java:327)
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildResource
(CompositeKnowledgeBuilderImpl.java:199)
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildPackageDescr
(CompositeKnowledgeBuilderImpl.java:186)
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build
(CompositeKnowledgeBuilderImpl.java:108)
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build
(CompositeKnowledgeBuilderImpl.java:100)
at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages
(AbstractKieProject.java:251)
at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify
(AbstractKieProject.java:74)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject
(KieBuilderImpl.java:267)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll
(KieBuilderImpl.java:235)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll
(KieBuilderImpl.java:184)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.getKieModule
(KieBuilderImpl.java:438)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.getKieModule
(KieBuilderImpl.java:428)
at org.kie.maven.plugin.BuildMojo.buildDrl (BuildMojo.java:169)
at org.kie.maven.plugin.BuildMojo.execute (BuildMojo.java:118)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)