My Oracle Support Banner

Orapki Exception In Thread "main" Java.lang.OutOfMemoryError: Java heap space (Doc ID 1951637.1)

Last updated on FEBRUARY 14, 2018

Applies to:

Oracle HTTP Server - Version 11.1.1.0.0 and later
Information in this document applies to any platform.

Symptoms

When running an orapki command, similar to the following, it fails with "java.lang.OutOfMemoryError: Java heap space":

Example command:

$ /oracle/Middleware/oracle_common/bin/orapki crl hash -crl MYCRL.crl -symlink stweb -wallet stweb
Oracle PKI Tool : Version 11.1.1.x.0
Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
  at java.util.Calendar.(Calendar.java:953)
  at java.util.GregorianCalendar.(GregorianCalendar.java:619)
  at java.util.Calendar.createCalendar(Calendar.java:1030)
  at java.util.Calendar.getInstance(Calendar.java:983)
  at oracle.security.crypto.util.Utils.parseDate(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Date.inputValue(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Date.input(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Date.(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Utils.inputASN1Object(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Sequence.input(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Sequence.(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Utils.inputASN1Object(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Sequence.input(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Sequence.(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Utils.inputASN1Object(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Sequence.input(Unknown Source)
  at oracle.security.crypto.asn1.ASN1Sequence.(Unknown Source)
  at oracle.security.crypto.cert.CRL.input(CRL.java:918)
  at oracle.security.crypto.cert.CRL.(CRL.java:138)
  at oracle.security.pki.OraclePKIX509CrlHelper.readB64CRLFrom(Unknown Sou rce)
  at oracle.security.pki.textui.OraclePKIGenFunc.readCRLAt(Unknown Source)
  at oracle.security.pki.textui.OracleCRLTextUI.hashName(Unknown Source)
  at oracle.security.pki.textui.OracleCRLTextUI.command(Unknown Source)
  at oracle.security.pki.textui.OraclePKITextUI.main(Unknown Source)

 

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!


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