Open jayasimhagithub opened 3 years ago
Please share the application code to reproduce the issue. You can share it via TIBCO support case and share the case number here if the artifacts can't be shared on github.
Hi Pawar,
we are not allowed to share the code outside of our client network. So if we have a working session we can walk through the issue .
Hi ,
I want to follow-up for the issue - #539
Still we are facing the null pointer exception when we run the mvn package through Linux to build the application ear.
It is failing while building plugin com.tibco.custom.jms.provider and adding it to application Module.. As we don't see any clue with the below error logs , If anybody came across the same issue please share your resolution steps if any .
I have specified the pom.xml below which are using in our project , Could you please let us know if we can have a zoom call to resolve the issue as we have stringent timeline to get this done.
--Customplugin pom.xml--
<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
--Application Pom.xml--
<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
--Parent pom.xml:---
<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
--Erro Log:--
[INFO] --- bw6-maven-plugin:2.7.1:bwear (default-bwear) @ YardBroker.application --- [DEBUG] Configuring mojo com.tibco.plugins:bw6-maven-plugin:2.7.1:bwear from plugin realm ClassRealm[extension>com.tibco.plugins:bw6-maven-plugin:2.7.1, parent: sun.misc.Launcher$AppClassLoader@7852e922] [DEBUG] Configuring mojo 'com.tibco.plugins:bw6-maven-plugin:2.7.1:bwear' with basic configurator --> [DEBUG] (f) outputDirectory = /opt/sample/tibco/Yard_Maven_Project_Dec12/YardBroker.application/target [DEBUG] (f) project = MavenProject: com.tibco.bw:YardBroker.application:1.0.0-SNAPSHOT @ /opt/sample/tibco/Yard_Maven_Project_Dec12/YardBroker.application/pom.xml [DEBUG] (f) projectBasedir = /opt/sample/tibco/Yard_Maven_Project_Dec12/YardBroker.application [DEBUG] (f) session = org.apache.maven.execution.MavenSession@3ed03652 [DEBUG] -- end configuration -- [INFO] BWEARPackager Mojo started ... [INFO] Updated the Manifest version [INFO] The OSGi verion is 1.0.0.202012181615 for Maven version of 1.0.0.202012181615 [INFO] Adding Modules to the EAR file [DEBUG] Adding Modules to the Application EAR [INFO] Adding Module JAR with name YardBroker_1.0.0.202012181615.jar with version 1.0.0.202012181615 [INFO] Adding Module JAR with name com.tibco.custom.jms.provider-1.0.0.jar with version 1.0.0 [DEBUG] Dependency file is /home/tibco/.m2/repository/com/tibco/plugins/com.tibco.bw.palette.shared/6.1.100/com.tibco.bw.palette.shared-6.1.100.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/tibjms/0.0.0/tibjms-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/TIBCrypt/0.0.0/TIBCrypt-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/spring-web-1.2.3/0.0.0/spring-web-1.2.3-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/ojdbc6/0.0.0/ojdbc6-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/log4j-core-2.2/0.0.0/log4j-core-2.2-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/log4j-api-2.2/0.0.0/log4j-api-2.2-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/log4j-1.2.15/0.0.0/log4j-1.2.15-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/fwmetrics-5.1.0/0.0.0/fwmetrics-5.1.0-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/frameworkutilities-4.0.0/0.0.0/frameworkutilities-4.0.0-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/tempbw/css-4.0.0/0.0.0/css-4.0.0-0.0.0.jar [DEBUG] Dependency file is /home/tibco/.m2/repository/com/tibco/bw/com.tibco.bw.sharedresource.jms.runtime/1.0.0/com.tibco.bw.sharedresource.jms.runtime-1.0.0.jar [ERROR] Failed to add modules to the Application [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for YardBroker.application.parent 1.0.0-SNAPSHOT: [INFO] [INFO] YardBroker.application.parent ...................... SUCCESS [ 0.134 s] [INFO] com.tibco.custom.jms.provider ...................... SUCCESS [ 2.962 s] [INFO] YardBroker ......................................... SUCCESS [ 1.602 s] [INFO] YardBroker.application ............................. FAILURE [ 0.354 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:18 min [INFO] Finished at: 2020-12-18T16:15:58Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.tibco.plugins:bw6-maven-plugin:2.7.1:bwear (default-bwear) on project YardBroker.application: Failed to create BW EAR Archive : NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.tibco.plugins:bw6-maven-plugin:2.7.1:bwear (default-bwear) on project YardBroker.application: Failed to create BW EAR Archive 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:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) 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:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create BW EAR Archive at com.tibco.bw.maven.plugin.application.BWEARPackagerMojo.execute (BWEARPackagerMojo.java:117) 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:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) 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:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: java.lang.NullPointerException at com.tibco.bw.maven.plugin.utils.BWProjectUtils.getModuleVersion (BWProjectUtils.java:30) at com.tibco.bw.maven.plugin.application.BWEARPackagerMojo.addModules (BWEARPackagerMojo.java:231) at com.tibco.bw.maven.plugin.application.BWEARPackagerMojo.execute (BWEARPackagerMojo.java:110) 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:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) 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:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :YardBroker.application -bash-4.2$