Closed
Description
Hello WDT support, I just updated WDT from 2.2.0 to 2.3.0 and I'm trying simple to run discoverDomain.sh on the existing domain and it is failing with 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:
Full error:
[oracle@o2c-domain-as bin]$ /u01/oracle/scripts/weblogic-deploy/bin/discoverDomain.sh -oracle_home $FMW_HOME -domain_home "$DOMAIN_ROOT/$DOMAIN_NAME" -admin_url t3://10.100.4.189:7101 -model_file DiscoveredO2C_PAT.yaml -skip_archive
JDK version is 1.8.0_341-b25
JAVA_HOME = /usr/java/latest/
WLST_EXT_CLASSPATH = /u01/oracle/scripts/weblogic-deploy/lib/weblogic-deploy-core.jar
CLASSPATH = /u01/oracle/scripts/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
/u01/oracle/fmw/oracle_common/common/bin/wlst.sh /u01/oracle/scripts/weblogic-deploy/lib/python/discover.py -oracle_home /u01/oracle/fmw -domain_home /u01/oracle/domains/o2c-domain -admin_url t3://10.100.4.189:7101 -model_file DiscoveredO2C_PAT.yaml -skip_archive
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
####<Aug 25, 2022 10:44:33 AM> <INFO> <WebLogicDeployToolingVersion> <logVersionInfo> <WLSDPLY-01750> <The WebLogic Deploy Tooling discoverDomain version is 2.3.2:.229089c:Jul 20, 2022 15:29 UTC>
Please enter the WebLogic administrator username: weblogic
Please enter the WebLogic administrator password:
####<Aug 25, 2022 10:44:41 AM> <INFO> <ModelContext> <__copy_from_args> <WLSDPLY-01050> <WebLogic version for aliases is 12.2.1.4.0.220602>
####<Aug 25, 2022 10:44:41 AM> <INFO> <discover> <main> <WLSDPLY-06024> <No variable file provided. Model passwords will contain the token '-- FIX ME --'6>
####<Aug 25, 2022 10:44:43 AM> <INFO> <discover> <_get_domain_name> <WLSDPLY-06022> <Discover domain o2c-domain>
####<Aug 25, 2022 10:44:44 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 null version 2.3.2 running WebLogic version null offline 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)
in logs it is visibile this:
####<Aug 25, 2022 10:44:44 AM> <FINER> <WLSDeployArchive> <addDomainBinScript> <> <ENTRY /u01/oracle/domain
s/o2c-domain/bin/setUserOverrides.sh>
####<Aug 25, 2022 10:44:44 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>
####<Aug 25, 2022 10:44:44 AM> <FINER> <PyReflectedFunction> <__call__> <WLSDPLY-20036> <discoverDomain encountered an unexpected runtime exception. Stacktrace: array(java.lang.StackTraceElement,[oracle.weblogic.deploy.util.WLSDeployArchive.getArchiveFileName(WLSDeployArchive.java:229), oracle.weblogic.deploy.util.WLSDeployArchive.addDomainBinScript(WLSDeployArchive.java:895), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), org.python.core.PyReflectedFunction.__call__(Unknown Source), org.python.core.PyMethod.__call__(Unknown Source), org.python.core.PyObject.__call__(Unknown Source), org.python.core.PyInstance.invoke(Unknown Source), wlsdeploy.tool.discover.domain_info_discoverer$py.get_user_env_scripts$6(/u01/oracle/scripts/weblogic-deploy/lib/python/wlsdeploy/tool/discover/domain_info_discoverer.py:131), wlsdeploy.tool.discover.domain_info_discoverer$py.call_function(/u01/oracle/scripts/weblogic-deploy/lib/python/wlsdeploy/tool/discover/domain_info_discoverer.py), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyFunction.__call__(PyFunction.java:199), org.python.core.PyMethod.__call__(Unknown Source), org.python.core.PyObject.__call__(Unknown Source), org.python.core.PyObject.invoke(Unknown Source), wlsdeploy.tool.discover.domain_info_discoverer$py.discover$3(/u01/oracle/scripts/weblogic-deploy/lib/python/wlsdeploy/tool/discover/domain_info_discoverer.py:60), wlsdeploy.tool.discover.domain_info_discoverer$py.call_function(/u01/oracle/scripts/weblogic-deploy/lib/python/wlsdeploy/tool/discover/domain_info_discoverer.py), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyFunction.__call__(PyFunction.java:199), org.python.core.PyMethod.__call__(Unknown Source), org.python.core.PyObject.__call__(Unknown Source), org.python.core.PyObject.invoke(Unknown Source), org.python.pycode._pyx139.__discover$7(/u01/oracle/scripts/weblogic-deploy/lib/python/discover.py:243), org.python.pycode._pyx139.call_function(/u01/oracle/scripts/weblogic-deploy/lib/python/discover.py), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyFunction.__call__(PyFunction.java:193), org.python.core.PyObject.__call__(Unknown Source), org.python.pycode._pyx139.main$18(/u01/oracle/scripts/weblogic-deploy/lib/python/discover.py:618), org.python.pycode._pyx139.call_function(/u01/oracle/scripts/weblogic-deploy/lib/python/discover.py), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyFunction.__call__(PyFunction.java:181), org.python.pycode._pyx139.f$0(/u01/oracle/scripts/weblogic-deploy/lib/python/discover.py:645), org.python.pycode._pyx139.call_function(/u01/oracle/scripts/weblogic-deploy/lib/python/discover.py), org.python.core.PyTableCode.call(Unknown Source), org.python.core.PyCode.call(Unknown Source), org.python.core.Py.runCode(Py.java:1226), org.python.util.PythonInterpreter.execfile(Unknown Source), weblogic.management.scripting.WLST.main(WLST.java:186), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), weblogic.WLST.main(WLST.java:47)]) >
####<Aug 25, 2022 10:44:44 AM> <FINER> <discover> <> <> <RETURN 2>
####<Aug 25, 2022 10:44:44 AM> <FINER> <WLSDeployExit> <exit> <> <ENTRY 2 oracle.weblogic.deploy.util.WLSDeployExit exit>
I was running discoverDomain.sh with very similar syntax with WDT 2.2.0 without any issue.
Thank you in advance for help.
Regards,
Piotr Michalski