Ojdeploy Null Pointer Exception While Creating EAR When Not Being Invoked From Within JDeveloper (Doc ID 1373394.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version 11.1.1.1.0 and later
Information in this document applies to any platform.

Symptoms

NullPointerException in ojdeploy while creating EAR (for example from ANT) outside JDeveloper.
The exception stack looks like:

[ora:ojdeploy] WARNING: #### Deployment incomplete. ####
[ora:ojdeploy]
[ora:ojdeploy] Sep 12, 2011 7:39:52 PM oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl printUnwrappedExceptionMessage
[ora:ojdeploy] SEVERE: null
[ora:ojdeploy] java.lang.NullPointerException
[ora:ojdeploy] at oracle.jdevimpl.deploy.weblogic.ear.WeblogicAssembler.addPlatformXmlFilesImpl(WeblogicAssembler.java:119)
[ora:ojdeploy] at oracle.jdevimpl.deploy.weblogic.ear.WeblogicAssembler.addPlatformXmlFiles(WeblogicAssembler.java:92)
[ora:ojdeploy] at oracle.jdevimpl.deploy.ear.ApplicationAssembler.prepareImpl(ApplicationAssembler.java:187)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.AbstractDeployer.prepare(AbstractDeployer.java:69)
[ora:ojdeploy] at oracle.jdevimpl.deploy.fwk.WrappedDeployer.prepareImpl(WrappedDeployer.java:32)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.AbstractDeployer.prepare(AbstractDeployer.java:69)
[ora:ojdeploy] at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:451)
[ora:ojdeploy] at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:217)
[ora:ojdeploy] at oracle.jdevimpl.deploy.common.ModulePackagerImpl.deployProfiles(ModulePackagerImpl.java:86)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.ModulePackager.deployProfiles(ModulePackager.java:63)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.ModulePackager.deployImpl(ModulePackager.java:52)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[ora:ojdeploy] at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[ora:ojdeploy] at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[ora:ojdeploy] at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
[ora:ojdeploy] at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
[ora:ojdeploy] at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:457)
[ora:ojdeploy] at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl$1.run(DeploymentManagerImpl.java:315)

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