Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.NullPointerException when installing Oracle XE 18c on Windows 10

Sam WheatApr 22 2021

I am trying to install Oracle XE 18c on Windows 10. I am not an Administrator however I run setup.exe as Administrator.
I received the error messages shown in the logs below. I've spent quite a bit of time with Google trying to fix this and have found these issues which appear to be similar but don't provide answers that work in my case.
https://community.oracle.com/tech/developers/discussion/4206663/error-error-code-1603-when-installing-oracle-database-xe-18c-in-a-windows-server-2019-docker-conta
https://community.oracle.com/tech/developers/discussion/4277262/18c-xe-installation-doesnt-complete

I have also made the correction suggested here:
https://support.quest.com/appassure/kb/119453/understanding-error-1603-fatal-error-during-installation

Thanks in advance for the assist.

=== Logs ===

Contents of Windows Installation log
INFO: Oracle Listener configuration started
SEVERE: Oracle listener configuration was not successful. Verify the corresponding logs under C:\app\Player1\product\18.0.0\cfgtoollogs\netca and try again
CustomAction RunNETCAScript returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 17:11:51: InstallFinalize. Return value 3.
Action 17:11:51: Rollback. Rolling back action:
Action ended 17:12:24: INSTALL. Return value 3.

Contents of C:\app\Player1\product\18.0.0\cfgtoollogs\netca\netca_OraDB18Home2-2104215PM1130.log

Parsing command line arguments:
Parameter "orahome" = C:\app\Player1\product\18.0.0\dbhomeXE
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = C:\app\Player1\product\18.0.0\dbhomeXE\network\install\netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraDB18Home3
Parameter "ouiinternal" = true
Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Parameter "lisport" = 1521
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Listener "LISTENER" already exists.
ServiceAliasException: Could not initialize Service Alias: TNS-04404: no error
caused by: oracle.net.config.ConfigException: TNS-04414: File error
caused by: TNS-04610: No literals left, reached end of NV pair
Error: null
Check the trace file for details: C:\app\Player1\product\18.0.0\cfgtoollogs\netca\trace_OraDB18Home2-2104215PM1130.log
Oracle Net Services configuration failed. The exit code is 1

Contents of C:\app\Player1\product\18.0.0\cfgtoollogs\netca\trace_OraDB18Home2-2104215PM1130.log

main] [ 2021-04-21 17:11:51.669 PDT ] [WindowsSystem.isCRSConfigured:2047] isOCRConfigured=false
[main] [ 2021-04-21 17:11:51.669 PDT ] [cluster.Version.isPre:-1] version to be checked 18.0.0.0.0 major version to check against 11
[main] [ 2021-04-21 17:11:51.669 PDT ] [cluster.Version.isPre:-1] isPre.java: Returning FALSE
[main] [ 2021-04-21 17:11:51.669 PDT ] [cluster.Version.isPre:-1] version to be checked 18.0.0.0.0 major version to check against 11 minor version to check against 2
[main] [ 2021-04-21 17:11:51.669 PDT ] [cluster.Version.isPre:-1] isPre: Returning FALSE for major version check
[main] [ 2021-04-21 17:11:51.669 PDT ] [WindowsSystem.isHAConfigured:2071] olrKey = HKEY_LOCAL_MACHINE\Software\Oracle\Olr
[main] [ 2021-04-21 17:11:51.669 PDT ] [WindowsSystem.regKeyExists:1618] WindowsSystem.regKeyExists: mainkey= HKEY_LOCAL_MACHINE subkey = Software\Oracle\Olr
[main] [ 2021-04-21 17:11:51.669 PDT ] [nativesystem.WindowsNative.Native]
Native function: inside RegKeyExists Software\Oracle\Olr HKEY_LOCAL_MACHINE

[main] [ 2021-04-21 17:11:51.669 PDT ] [nativesystem.WindowsNative.Native] InitializeSecurity - successful

[main] [ 2021-04-21 17:11:51.669 PDT ] [nativesystem.WindowsNative.Native] Opening registry key...

[main] [ 2021-04-21 17:11:51.669 PDT ] [nativesystem.WindowsNative.Native] Key 'Software\Oracle\Olr' does not exist

[main] [ 2021-04-21 17:11:51.669 PDT ] [WindowsSystem.isHAConfigured:2098] isOLRConfigured=false
[main] [ 2021-04-21 17:11:51.669 PDT ] [ConfigureListener.isHASConfigured:1718] Is Oracle Restart configured: false
[main] [ 2021-04-21 17:11:51.669 PDT ] [ConfigureListener.isHASRunning:1747] Is Oracle Restart running: false
[main] [ 2021-04-21 17:11:51.669 PDT ] [ConfigureListener.listenerExists:444] Is listener "LISTENER" already exists: true
[main] [ 2021-04-21 17:11:51.669 PDT ] [SilentConfigure.performSilentConfigure:214] Typical service alias configuration.
java.lang.NullPointerException
at oracle.net.ca.ConfigureServiceAlias.setEndpoints(ConfigureServiceAlias.java:187)
at oracle.net.ca.ConfigureServiceAlias.buildCommonNSNDescription(ConfigureServiceAlias.java:158)
at oracle.net.ca.ConfigureServiceAlias.typicalConfigure(ConfigureServiceAlias.java:90)
at oracle.net.ca.SilentConfigure.performSilentConfigure(SilentConfigure.java:217)
at oracle.net.ca.InitialSetup.<init>(NetCA.java:4325)
at oracle.net.ca.NetCA.main(NetCA.java:460)

This post has been answered by Sam Wheat on Apr 22 2021
Jump to Answer

Comments

Sam Wheat
Answer

Well of course the moment after I posted this I found this thread:
https://community.oracle.com/tech/developers/discussion/4271793/oracle-18c-express-edition-setup-rollback-during-installation#latest
which suggests removing the TNS_ADMIN variable which fixes the problem.
I checked the installation guide again here:
https://docs.oracle.com/en/database/oracle/oracle-database/18/xeinw/installing-oracle-database-xe.html#GUID-7BF9ACDC-1281-494C-AF96-77A25B1BD67D
A search for "tns_admin" returns no results. It is noteworthy that the documentation calls out ORACLE_HOME to be removed but omits TNS_ADMIN.
Also noteworthy is that there is a warning notice that says the page has been superseded by a newer release but clicking on the View Latest
link brings up a page for a completely different product.

From the installation guide:

1. Log on to Windows with Administrator privileges. (...)

2. If the ORACLE_HOME environment variable has been set, then delete it.

3. Download the Microsoft Windows version of Oracle Database XE.

I really feel like my time was wasted by a documentation omission that is known and should have been fixed. And really guys - is it that hard to add a line of code to the installer to check for the offending variable and report it to the user and terminate the installation? If you can't do that perhaps mention it in the log near the null reference ex? Just sayn.

Marked as Answer by Sam Wheat · Apr 22 2021

Sorry about this. We are handling this issue automatically in the next XE release.

User_RHUG4

Hello, i have a same problem. So, how can i fix this too?

User_RHUG4

Hello, say me please how you finally fix this problem.

1 - 4

Post Details

Added on Apr 22 2021
4 comments
6,215 views