Skip to content

discoverDomain.sh fails with java.lang.NullPointerException #1240

Closed
@dbeniteza

Description

@dbeniteza

Running WDT 2.4.0 discoverDomain tool over a WLS 11g domain fails with the following exception:

$ cat VERSION.txt
WebLogic Deploy Tooling 2.4.0
$ /admin/utils/weblogic-deploy/bin/discoverDomain.sh  \
> -oracle_home /software/WL_10_3_6 \
> -domain_home /domains/wld-pre-32 \
> -skip_archive  \
> -admin_user weblogic \
> -admin_url t3://wls-pre-32-sa-adm-n0:13200 \
> -model_file /export/home/bea/test_dani/model_32.yaml
JDK version is 1.8.0_251-b08
JAVA_HOME = /admin/jdk/jdk8
WLST_EXT_CLASSPATH = /admin/utils/weblogic-deploy/lib/weblogic-deploy-core.jar
CLASSPATH = /admin/utils/weblogic-deploy/lib/weblogic-deploy-core.jar
WLST_PROPERTIES = -Dcom.oracle.cie.script.throwException=true -Djava.util.logging.config.class=oracle.weblogic.deploy.logging.WLSDeployLoggingConfig
/software/WL_10_3_6/oracle_common/common/bin/wlst.sh /admin/utils/weblogic-deploy/lib/python/discover.py -oracle_home /software/WL_10_3_6 -domain_home /domains/wld-pre-32 -skip_archive -admin_user weblogic -admin_url t3://wls-pre-32-sa-adm-n0:13200 -model_file /export/home/bea/test_dani/model_32.yaml

CLASSPATH=/software/WL_10_3_6/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/software/WL_10_3_6/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/admin/jdk/jdk8/lib/tools.jar:/software/WL_10_3_6/wlserver_10.3/server/lib/weblogic_sp.jar:/software/WL_10_3_6/wlserver_10.3/server/lib/weblogic.jar:/software/WL_10_3_6/modules/features/weblogic.server.modules_10.3.6.0.jar:/software/WL_10_3_6/wlserver_10.3/server/lib/webservices.jar:/software/WL_10_3_6/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/software/WL_10_3_6/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/admin/utils/weblogic-deploy/lib/weblogic-deploy-core.jar:/software/WL_10_3_6/oracle_common/modules/oracle.jrf_11.1.1/jrf-wlstman.jar:/software/WL_10_3_6/oracle_common/common/wlst/lib/adf-share-mbeans-wlst.jar:/software/WL_10_3_6/oracle_common/common/wlst/lib/adfscripting.jar:/software/WL_10_3_6/oracle_common/common/wlst/lib/mdswlst.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/auditwlst.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/igfwlsthelp.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/jps-wls-trustprovider.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/jps-wlst.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/jrf-wlst.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/oamap_help.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/ossoiap.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/ossoiap_help.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/sslconfigwlst.jar:/software/WL_10_3_6/oracle_common/common/wlst/resources/wsm-wlst.jar:/software/WL_10_3_6/utils/config/10.3/config-launch.jar::/software/WL_10_3_6/wlserver_10.3/common/derby/lib/derbynet.jar:/software/WL_10_3_6/wlserver_10.3/common/derby/lib/derbyclient.jar:/software/WL_10_3_6/wlserver_10.3/common/derby/lib/derbytools.jar::
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

####<Nov 4, 2022 8:19:30 AM> <INFO> <WebLogicDeployToolingVersion> <logVersionInfo> <WLSDPLY-01750> <The WebLogic Deploy Tooling discoverDomain version is 2.4.0:.1c675c8:Nov 02, 2022 16:51 UTC>
####<Nov 4, 2022 8:19:30 AM> <INFO> <WLSDeployLoggingConfig> <logLoggingDirectory> <WLSDPLY-01755> <The discoverDomain program will write its log to directory /export/home/bea/test_dani/logs>
####<Nov 4, 2022 8:19:30 AM> <INFO> <ModelContext> <__copy_from_args> <WLSDPLY-01050> <WebLogic version for aliases is 10.3.6.0>
Please enter the WebLogic administrator password:
####<Nov 4, 2022 8:19:34 AM> <INFO> <ModelContext> <__copy_from_args> <WLSDPLY-01050> <WebLogic version for aliases is 10.3.6.0>
####<Nov 4, 2022 8:19:34 AM> <INFO> <discover> <main> <WLSDPLY-06024> <No variable file provided. Model passwords will contain the token '-- FIX ME --'>

####<Nov 4, 2022 8:19:37 AM> <INFO> <discover> <_get_domain_name> <WLSDPLY-06022> <Discover domain wld-pre-32>
####<Nov 4, 2022 8:19:37 AM> <SEVERE> <PyReflectedFunction> <__call__> <WLSDPLY-20035> <discoverDomain encountered an unexpected runtime exception.  Please file an issue on GitHub and attach the log file and stdout. Exception: java.lang.NullPointerException>

Issue Log for discoverDomain version 2.4.0 running WebLogic version 10.3.6.0 online mode:

SEVERE Messages:

        1. WLSDPLY-20035: discoverDomain encountered an unexpected runtime exception.  Please file an issue on GitHub and attach the log file and stdout. Exception: java.lang.NullPointerException

Total:       WARNING :     0    SEVERE :     1

discoverDomain.sh failed (exit code = 2)

See attached discoverDomain.log file.
The same command on a WLS 12c domain results OK, without any fail.
discoverDomain.log

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions