3 Replies Latest reply on Mar 30, 2020 9:49 PM by ChristopherMank

    Error deploying .sbar to Oracle Service Bus

    Bijesh Krishnadas

      Hi All,

       

      I am attempting to use the maven deploy goal to deploy a service bus archive (.sbar) and apply a customization on it. The command I am using looks like this

       

      mvn -f pom.xml com.oracle.servicebus.plugin:oracle-servicebus-plugin:deploy -DoracleServerUrl=http://<REDACTED>:7001 -Doverwrite=true -DconfigJar=<REDACTED>-1.0_6.sbar -DoracleHome=/apps/orcl/soaqs -DprojectName=<REDACTED> -Dcustomization=customisations/<REDACTED>-1.0_6_CUST_DEV.xml -DoracleUsername=<REDACTED> -DoraclePassword=<REDACTED> -X -e

       

      This results in an error

       

      05-03-2019 12:54 [DEBUG] -- end configuration --
      05-03-2019 12:54 [INFO] Service Bus Archive deployed using session Service_Bus_Maven-<REDACTED>-1551750873258.
      05-03-2019 12:54 [INFO] ------------------------------------------------------------------------
      05-03-2019 12:54 [INFO] BUILD FAILURE
      05-03-2019 12:54 [INFO] ------------------------------------------------------------------------
      05-03-2019 12:54 [INFO] Total time: 7.559 s
      05-03-2019 12:54 [INFO] Finished at: 2019-03-05T12:54:35+11:00
      05-03-2019 12:54 [INFO] Final Memory: 29M/341M
      05-03-2019 12:54 [INFO] ------------------------------------------------------------------------
      05-03-2019 12:54 [ERROR] Failed to execute goal com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.2.1-3-0:deploy (default-cli) on project <REDACTED>: Unexpected error during customization: null: NullPointerException -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.2.1-3-0:deploy (default-cli) on project <REDACTED>: Unexpected error during customization: null
              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.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:51)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
              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)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Unexpected error during customization: null
              at oracle.sb.maven.plugin.DeployMojo.customize(DeployMojo.java:290)
              at oracle.sb.maven.plugin.DeployMojo.execute(DeployMojo.java:178)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
              ... 20 more
      Caused by: java.lang.NullPointerException
              at org.apache.xmlbeans.impl.validator.Validator.beginEvent(Validator.java:398)
              at org.apache.xmlbeans.impl.validator.Validator.nextEvent(Validator.java:241)
              at org.apache.xmlbeans.impl.store.Validate.emitEvent(Validate.java:172)
              at org.apache.xmlbeans.impl.store.Validate.process(Validate.java:79)
              at org.apache.xmlbeans.impl.store.Validate.<init>(Validate.java:39)
              at org.apache.xmlbeans.impl.store.Xobj.validate(Xobj.java:1902)
              at org.apache.xmlbeans.impl.values.XmlObjectBase.validate(XmlObjectBase.java:386)
              at com.bea.wli.config.customization.impl.CustomizationsParser.validate(CustomizationsParser.java:153)
              at com.bea.wli.config.customization.impl.CustomizationsParser.parse(CustomizationsParser.java:100)
              at com.bea.wli.config.customization.impl.CustomizationsParser.parse(CustomizationsParser.java:77)
              at com.bea.wli.config.customization.Customization.fromXML(Customization.java:154)
              at oracle.sb.maven.plugin.DeployMojo.customize(DeployMojo.java:284)
              ... 23 more
      05-03-2019 12:54 [ERROR]
      05-03-2019 12:54 [ERROR]
      05-03-2019 12:54 [ERROR] For more information about the errors and possible solutions, please read the following articles:
      05-03-2019 12:54 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

       

       

      I have checked that I can deploy without the customization. I can also apply the customization file through sbconsole without issue.