My Oracle Support Banner

Java Out of Memory Error When Configuring ORDS (Doc ID 2624581.1)

Last updated on MAY 27, 2022

Applies to:

Oracle REST Data Services - Version 17.4 to 21.4.3
Information in this document applies to any platform.

Symptoms

 A new version of ORDS has been downloaded from Oracle. When running the configuration command:
java -jar ords.war

The following error stack is seen after entering the configuration directory location:
This Oracle REST Data Services instance has not yet been configured.
Please complete the following prompts

Enter the location to store configuration data: <DIR>
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.dbtools.jarcl.Entrypoint.invoke(Entrypoint.java:66)
at oracle.dbtools.jarcl.Entrypoint.main(Entrypoint.java:77)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.grow(Unknown Source)
at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at java.util.zip.DeflaterOutputStream.deflate(Unknown Source)
at java.util.zip.DeflaterOutputStream.write(Unknown Source)
at java.util.zip.ZipOutputStream.write(Unknown Source)
at java.nio.channels.Channels$WritableByteChannelImpl.write(Unknown Source)
at oracle.dbtools.common.util.IOStreamsProvider.copy(IOStreamsProvider.java:193)
at oracle.dbtools.common.util.IOStreamsProvider.copy(IOStreamsProvider.java:152)
at oracle.dbtools.common.util.StreamCopy.drain(StreamCopy.java:34)
at oracle.dbtools.common.zip.ZipBuilder.addEntry(ZipBuilder.java:58)
at oracle.dbtools.common.zip.MutatedZip.mutate(MutatedZip.java:68)
at oracle.dbtools.common.zip.MutatedZip.<init>(MutatedZip.java:34)
at oracle.dbtools.cmdline.ModifyConfigDir.modified(ModifyConfigDir.java:145)
at oracle.dbtools.cmdline.ModifyConfigDir.modify(ModifyConfigDir.java:117)
at oracle.dbtools.cmdline.Commands.configurationContext(Commands.java:475)
at oracle.dbtools.cmdline.Commands.prepareApplicationContext(Commands.java:387)
at oracle.dbtools.cmdline.Commands.main(Commands.java:365)
... 6 more

The following commands do not fail:

java -jar ords.war version
java -jar ords.war configdir



Changes

 Configuring a new version on an existing machine. Previous versions were configured successfully.

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

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