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

Gaz in Oz

You will need to supply more information.

. sqlcl version

  sql -v

  or from within sqlcl

  show version

. How do you start the bash shell?

. copy/paste how you start bash. (xterm emulator? cmd.exe? Conemu64?...)

. copy/paste how you start sqlcl

Basically, to help you, you need to show us what you are doing, not just tell us.

For example, up-arrow works for me on windows 10 with bash 3.1:

F:\Oracle>bash

bash-3.1$ sql gaz/gaz@xe

SQLcl: Release 17.2.0 Production on Mon Oct 02 17:45:15 2017

Copyright (c) 1982, 2017, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL> show version

Oracle SQLDeveloper Command-Line (SQLcl) version: 17.2.0.184.0917

SQL> -- pressing up arrow

SQL> show version

calinm

Hi,

I start using the shortcut on the desktop:

C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -

$ java -version

java version "1.8.0_131"

echo $TERM

xterm

$ echo $BASH_VERSION

4.3.46(7)-release

After pressing arrow up 4 times, the cursor goes up 4 lines, as seen in the screenshot

pastedImage_0.png

I also tried to start it using cygwin.bat which contains:

@echo off

C:

chdir C:\cygwin64\bin

bash --login -i

this time, arrow up does nothing.

I have nothing in .bash_profile, or any other init scripts.

Thank you,

Calin

1 - 2

Post Details

Added on Apr 22 2021
4 comments
6,181 views