My Oracle Support Banner

Application Throws "java.lang.OutOfMemoryError: unable to create new native thread" (Doc ID 1373351.1)

Last updated on APRIL 28, 2018

Applies to:

Java Platform, Standard Edition - Version 5.0 to 7 [Release 5.0 to 7]
Java SE JDK and JRE - Version 1.5.0 to 7 [Release 1.5 to 7]
Oracle Solaris on SPARC (32-bit)
Oracle Solaris on x86 (32-bit)
Oracle Solaris on SPARC (64-bit)
Oracle Solaris on x86-64 (64-bit)

Symptoms

In the log file of an application, an error is thrown as shown below.  The root of the error is an "OutOfMemoryError: unable to create new native thread".

<Nov 1, 2011 5:20:43 PM EDT> <Error> <OSB Transform> <BEA-382515> <Callout to java method "public static java.lang.String com.mhe.authentication.MHEAuthService.simpleAuthentication(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)" resulted in exception: null
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor402.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at stages.transform.runtime.JavaCalloutRuntimeStep$1.run(JavaCalloutRuntimeStep.java:173)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
Truncated. see log file for complete stacktrace
Caused By: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:640)
at org.apache.log4j.PropertyConfigurator.configureAndWatch(PropertyConfigurator.java:375)
at com.mhe.authentication.MHEAuthServiceHandler.<init>(MHEAuthServiceHandler.java:35)
at com.mhe.authentication.MHEAuthService.simpleAuthentication(MHEAuthService.java:79)
Truncated. see log file for complete stacktrace

 

Changes

 

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
References


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