java.lang.OutOfMemoryError: unable to create new native thread

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 787468, 1 year ago
via wordpress.com by Unknown author, 1 year ago
via Atlassian JIRA by Alexander Much, 1 year ago
unable to create new native thread
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at com.sun.jndi.ldap.Connection.(Connection.java:215)
at com.sun.jndi.ldap.LdapClient.(LdapClient.java:118)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2652)
at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:293)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)
at javax.naming.directory.InitialDirContext.(InitialDirContext.java:82)
at com.retek.rsw.persistence.ldap.LdapRswSecurityDao.getStoresFromHierGroup(LdapRswSecurityDao.java:321)
at com.retek.rsw.persistence.ldap.LdapRswSecurityDao.getStoresFromHierGroup(LdapRswSecurityDao.java:356)
at com.retek.rsw.persistence.ldap.LdapRswSecurityDao.getStoresFromHierGroup(LdapRswSecurityDao.java:356)
at com.retek.rsw.persistence.ldap.LdapRswSecurityDao.getStoreNumbersFromGroupNames(LdapRswSecurityDao.java:298)
at com.retek.rsw.persistence.ldap.LdapRswSecurityDao.authenticateAndReadUser(LdapRswSecurityDao.java:98)
at com.retek.rsw.service.RswSecurity.getUser(RswSecurity.java:47)
at com.retek.rsw.ui.control.security.LoginDoneAction.perform(LoginDoneAction.java:37)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at com.retek.struts.action.ActionServlet.process(ActionServlet.java:227)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)

Users with the same issue

10 times, 1 week ago
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Once, 1 month ago
Once, 1 month ago
39 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.