NullPointerException publishing a project with ANT tasks in J2EE (Doc ID 856217.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Oracle Business Process Management Suite - Version 5.7 to 10.3
Information in this document applies to any platform.
***Checked for relevance on 21-Jul-2011***
***Checked for relevance on 25-Feb-2013***

Symptoms

When attempting to publish and deploy a project in ALBPM 5.7 for Weblogic using Ant tasks, even though the build.xml and build.properties files are OK, the Ant task fails with a NPE.

The command being executing to run the task is:

# ant -lib /opt/albpm5.7/j2eewl/lib:/opt/albpm5.7/j2eewl/ext:/opt/albpm5.7/j2eewl/j2ee/common/tools/ant:/opt/albpm5.7/j2eewl/webapps/webconsole/WEB-INF/lib/fuegocommonj2eedeployer.jar -verbose publish-and-deploy

 The output error is: 

publish-and-deploy:
[fuego:session] [passport] =>[directoryid ] default [preset ] engine
[fuego:session] fuego base dir [/opt/albpm5.7/j2eewl]

BUILD FAILED
/home/test/albpm/build.xml:98: java.lang.NullPointerException
at org.apache.tools.ant.Task.perform(Task.java:373)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NullPointerException
at fuego.tools.ant.BaseFuegoTask.getClassLoader(BaseFuegoTask.java:50)
at fuego.tools.ant.BaseFuegoTask.executeTask(BaseFuegoTask.java:180)
at fuego.tools.ant.enterprise.taskdefs.DirectorySessionTask.executeImpl(DirectorySessionTask.java:217)
at fuego.tools.ant.BaseFuegoTask.execute(BaseFuegoTask.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
... 10 more
--- Nested Exception ---
java.lang.NullPointerException
at fuego.tools.ant.BaseFuegoTask.getClassLoader(BaseFuegoTask.java:50)
at fuego.tools.ant.BaseFuegoTask.executeTask(BaseFuegoTask.java:180)
at fuego.tools.ant.enterprise.taskdefs.DirectorySessionTask.executeImpl(DirectorySessionTask.java:217)
at fuego.tools.ant.BaseFuegoTask.execute(BaseFuegoTask.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 1 second

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms