java.lang.OutOfMemoryError: Java heap space

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via SpringSource Issue Tracker by annika, 1 year ago
Java heap space
via SpringSource Issue Tracker by annika, 1 year ago
Java heap space
via Oracle Community by 843851, 4 months ago
via Coderanch by Brian Sterner, 1 year ago
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.(HashMap.java:187)
at java.util.HashMap.(HashMap.java:199)
at org.eclipse.osgi.internal.resolver.ImportPackageSpecificationImpl.getDirectives(ImportPackageSpecificationImpl.java:27)
at org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createImportPackageSpecification(StateObjectFactoryImpl.java:219)
at org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createBundleDescription(StateObjectFactoryImpl.java:96)
at org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createState(StateObjectFactoryImpl.java:315)
at com.springsource.kernel.osgi.framework.equinox.EquinoxUtils.getDirectDependencies(EquinoxUtils.java:106)
at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.getDependencyBundles(KernelBundleClassLoader.java:347)
at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.findLocalResource(KernelBundleClassLoader.java:181)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalResource(BundleLoader.java:741)
at org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:611)
at org.springframework.osgi.util.BundleDelegatingClassLoader.findResource(BundleDelegatingClassLoader.java:124)
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1168)
at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:96)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.parsers.SecuritySupport.getResourceAsStream(SecuritySupport.java:89)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:250)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:223)
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:123)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:89)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:370)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:316)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:284)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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