My Oracle Support Banner

Weblogic.Deployer Command-Line Listapps Throwing Java.lang.NullPointerException (Doc ID 2190233.1)

Last updated on OCTOBER 11, 2023

Applies to:

Oracle WebLogic Server - Version 12.2.1.0.0 to 12.2.1.2.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

On : 12.2.1.0.0 version

When running the weblogic.Deployer command-line listapps command, under certain conditions it is throwing a java.lang.NullPointerException (NPE).  This happens with a versioned application.  Non-versioned applications do not get the NPE.

Note: A domain consists of an Admin Server and cluster with X number of managed servers.  The Admin Server is NOT part of the cluster.  The versioned application is deployed to the cluster.

 
Here is the full stack-trace:

Changes

The issue can be reproduced at will with the following steps:

1. Deploy a versioned application to a Cluster

Running the following command with a versioned application- example:

java weblogic.Deployer -adminurl t3://<ADMIN SERVER HOST>:<PORT> -username <USERNAME> -password <PASSWORD> -listapps weblogic.Deployer invoked with options: -adminurl t3://<ADMIN SERVER HOST>:<PORT> -username <USERNAME> -listapps
java.lang.NullPointerException

2. Running the command with the same scenario, but the application is not versioned:

java weblogic.Deployer -adminurl t3://<ADMIN SERVER HOST>:<PORT> -username <USERNAME> -password <PASSWORD> -listapps weblogic.Deployer invoked with options: -adminurl t3://<ADMIN SERVER HOST>:<PORT> -username <USERNAME>-listapps

<APPLICATION NAME>
Number of Applications Found : 1

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.