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

Last updated on NOVEMBER 05, 2016

Applies to:

Java Platform, Standard Edition - Version 5.0 and later
Java SE JDK and JRE - Version 5.0 and later
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 your application you see something like this. The important error message is printed in bold.

<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

 

Cause

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 hundreds of Community platforms