IBM Support

RS03209: AFTER DELETING THE 'RULES' FOLDER FROM A RULE PROJECT, THE MAVEN BUILDCOMMAND IS FAILING WITH A NULLPOINTEREXCEPTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When the 'rules' folder from a rule project is deleted, e.g.
    since it only contains the BOM, the Maven build using the
    jrules compiler plugin will fail with a NullPointerException.
    The associated exceptions will look similar to this one:
    [ERROR] Failed to execute goal
    com.ibm.rules.buildcommand:rules-compiler-maven-plugin:8.9.2.1:e
    xport (default-export) on project loan-validation-service:
    Execution default-export of goal
    com.ibm.rules.buildcommand:rules-compiler-maven-plugin:8.9.2.1:e
    xport failed.: NullPointerException -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed
    to execute goal
    com.ibm.rules.buildcommand:rules-compiler-maven-plugin:8.9.2.1:e
    xport (default-export) on project loan-validation-service:
    Execution default-export of goal
    com.ibm.rules.buildcommand:rules-compiler-maven-plugin:8.9.2.1:e
    xport failed.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute
    (MojoExecutor.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute
    (MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute
    (MojoExecutor.java:146)
        at
    org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build
    Project (LifecycleModuleBuilder.java:117)
        at
    org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build
    Project (LifecycleModuleBuilder.java:81)
        at
    org.apache.maven.lifecycle.internal.builder.singlethreaded.Singl
    eThreadedBuilder.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:954)
        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:90)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke (Method.java:508)
        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.mainWithExitCo
    de (Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main
    (Launcher.java:356)
    Caused by: org.apache.maven.plugin.PluginExecutionException:
    Execution default-export of goal
    com.ibm.rules.buildcommand:rules-compiler-maven-plugin:8.9.2.1:e
    xport failed.
        at
    org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
    (DefaultBuildPluginManager.java:148)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute
    (MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute
    (MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute
    (MojoExecutor.java:146)
        at
    org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build
    Project (LifecycleModuleBuilder.java:117)
        at
    org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build
    Project (LifecycleModuleBuilder.java:81)
        at
    org.apache.maven.lifecycle.internal.builder.singlethreaded.Singl
    eThreadedBuilder.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:954)
        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:90)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke (Method.java:508)
        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.mainWithExitCo
    de (Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main
    (Launcher.java:356)
    Caused by: java.lang.NullPointerException
        at sun.nio.fs.WindowsPathParser.parse
    (WindowsPathParser.java:110)
        at sun.nio.fs.WindowsPathParser.parse
    (WindowsPathParser.java:89)
        at sun.nio.fs.WindowsPath.parse (WindowsPath.java:106)
        at sun.nio.fs.WindowsFileSystem.getPath
    (WindowsFileSystem.java:267)
        at sun.nio.fs.AbstractPath.resolve (AbstractPath.java:65)
        at com.ibm.rules.build.RuleProjectBuilder.visitProject
    (RuleProjectBuilder.java:346)
        at com.ibm.rules.build.RuleProjectBuilder.visitProject
    (RuleProjectBuilder.java:355)
        at com.ibm.rules.build.RuleProjectBuilder.visitProject
    (RuleProjectBuilder.java:355)
        at com.ibm.rules.build.RuleProjectBuilder.visitProject
    (RuleProjectBuilder.java:355)
        at com.ibm.rules.build.RuleProjectBuilder.visitProjects
    (RuleProjectBuilder.java:331)
        at com.ibm.rules.build.RuleProjectBuilder.build
    (RuleProjectBuilder.java:290)
        at com.ibm.rules.maven.compiler.ExportMojo.export
    (ExportMojo.java:192)
        at com.ibm.rules.maven.compiler.ExportMojo.execute
    (ExportMojo.java:117)
        at
    org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
    (DefaultBuildPluginManager.java:137)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute
    (MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute
    (MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute
    (MojoExecutor.java:146)
        at
    org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build
    Project (LifecycleModuleBuilder.java:117)
        at
    org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build
    Project (LifecycleModuleBuilder.java:81)
        at
    org.apache.maven.lifecycle.internal.builder.singlethreaded.Singl
    eThreadedBuilder.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:954)
        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:90)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke (Method.java:508)
        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.mainWithExitCo
    de (Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main
    (Launcher.java:356)
    

Local fix

  • Add the 'rules' folder again, by editing the project's
    .ruleproject descriptor and add the following entry
     <modelFoldersxsi:type="ilog.rules.studio.model.base:SourceFold
    er ">
       <name>rules</name>
    </modelFolders>
    
    The 'name' must match the used locale.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of rules.                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The build command is still searching for this deleted object *
    * and not finding it.                                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The code was fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    RS03209

  • Reported component name

    WS DECISION SVR

  • Reported component ID

    5725B6901

  • Reported release

    860

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-10-12

  • Closed date

    2018-10-12

  • Last modified date

    2018-10-12

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WS DECISION SVR

  • Fixed component ID

    5725B6901

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.6","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022