java.lang.OutOfMemoryError: Java heap space

SpringSource Issue Tracker | annika | 7 years ago
  1. 0

    I tried the dm server 2.0.0.M3 on my Windows Vista and Windows XP computers and it runs very slow in comparison to springsource-dm-server-1.0.2.RELEASE. Sometimes OutOfMemoryError are thrown and a heap_dump.hprof file is created in the servicability folder: 09-07-23 16:33:08.063] fs-watcher <SPDE0010I> Deployment of 'nl.otto.service.plan' version '1' completed. a.lang.OutOfMemoryError: Java heap space ping heap to c:\springsource-dm-server-2.0.0.M3\bin\..\serviceability\heap_dump.hprof ... ble to create c:\springsource-dm-server-2.0.0.M3\bin\..\serviceability\heap_dump.hprof: File exists 09-07-23 16:33:28.559] server-dm-5 <SPDE0020E> Application context creation failure for bundle 'nl.otto.service.plan-1-de.otto.business.service. ernal.dao.jpa'. .springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundleentry://142.fwk2804823/META-INF/spring dule-context.xml]; nested exception is java.lang.OutOfMemoryError: Java heap space at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:394) 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) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:127) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:425) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java: ) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContex ecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContext cutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) sed by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2760) at java.util.Arrays.copyOf(Arrays.java:2734) at java.util.ArrayList.ensureCapacity(ArrayList.java:167) at java.util.ArrayList.add(ArrayList.java:351) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:274) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker.isConsistentInternal(GroupingChecker.java:103) at org.eclipse.osgi.internal.module.GroupingChecker.isConsistent(GroupingChecker.java:85) at org.eclipse.osgi.internal.module.ResolverImpl.addConflicts(ResolverImpl.java:770) at org.eclipse.osgi.internal.module.ResolverImpl.getConflicts(ResolverImpl.java:747) at org.eclipse.osgi.internal.module.ResolverImpl.findBestCombination(ResolverImpl.java:621) at org.eclipse.osgi.internal.module.ResolverImpl.checkUsesConstraints(ResolverImpl.java:568) at org.eclipse.osgi.internal.module.ResolverImpl.resolveBundles0(ResolverImpl.java:538) at org.eclipse.osgi.internal.module.ResolverImpl.resolveBundles(ResolverImpl.java:504) at org.eclipse.osgi.internal.module.ResolverImpl.resolve(ResolverImpl.java:391) at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:458) at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:515) at com.springsource.kernel.osgi.framework.equinox.EquinoxUtils.getDirectDependencies(EquinoxUtils.java:110) 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.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:564) at org.eclipse.osgi.framework.internal.core.BundleHost.getResource(BundleHost.java:273) at org.springframework.osgi.util.BundleDelegatingClassLoader.findResource(BundleDelegatingClassLoader.java:124) at org.springframework.osgi.util.BundleDelegatingClassLoader.getResource(BundleDelegatingClassLoader.java:146) at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1168) at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:96) 09-07-23 16:33:47.973] server-dm-4 <SPDE0020E> Application context creation failure for bundle 'nl.otto.service.plan-1-de.otto.integration.servi infrastructure.hsqldb'. .springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundleentry://148.fwk2804823/META-INF/spring dule-context.xml]; nested exception is java.lang.OutOfMemoryError: Java heap space at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:394) 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) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:127) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:425) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java: ) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContex ecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContext cutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) sed by: java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.<init>(HashMap.java:187) at java.util.HashMap.<init>(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 org.eclipse.osgi.internal.baseadaptor.StateManager.getState(StateManager.java:252) 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.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:564) at org.eclipse.osgi.framework.internal.core.BundleHost.getResource(BundleHost.java:273) at org.springframework.osgi.util.BundleDelegatingClassLoader.findResource(BundleDelegatingClassLoader.java:124) at org.springframework.osgi.util.BundleDelegatingClassLoader.getResource(BundleDelegatingClassLoader.java:146) 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) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) 09-07-23 16:33:55.449] server-dm-8 <SPDE0020E> Application context creation failure for bundle 'nl.otto.service.plan-1-de.otto.integration.servi eclipselink'. .springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundleentry://146.fwk2804823/META-INF/spring dule-context.xml]; nested exception is java.lang.OutOfMemoryError: Java heap space at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:394) 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) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:127) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:425) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java: ) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContex ecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContext cutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) sed by: java.lang.OutOfMemoryError: Java heap space Also, when I start the Server on Windows Vista there is always shown the an error message that the paths are too long: Der Pfad C:\springsource-dm-server-2.0.0.M3\bin\..\work\com.springsource.kernel\Module\com.springsource.server.repository.hosted-2.0.0.M3\com.springsource.serve r.repository.hosted.core-2.0.0.M3.jar\com\springsource\server\repository\hosted\core\internal\HostedRepository$HostedRepositoryIndex.class ist zu lang. Der Pfad C:\springsource-dm-server-2.0.0.M3\bin\..\work\com.springsource.kernel\Module\com.springsource.server.repository.hosted-2.0.0.M3\com.springsource.serve r.repository.hosted.web-2.0.0.M3.war\WEB-INF\classes\com\springsource\server\repository\hosted\web\RepositoryController.class ist zu lang. These errors never occured on the springsource-dm-server-1.0.2.RELEASE

    SpringSource Issue Tracker | 7 years ago | annika
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    I tried the dm server 2.0.0.M3 on my Windows Vista and Windows XP computers and it runs very slow in comparison to springsource-dm-server-1.0.2.RELEASE. Sometimes OutOfMemoryError are thrown and a heap_dump.hprof file is created in the servicability folder: 09-07-23 16:33:08.063] fs-watcher <SPDE0010I> Deployment of 'nl.otto.service.plan' version '1' completed. a.lang.OutOfMemoryError: Java heap space ping heap to c:\springsource-dm-server-2.0.0.M3\bin\..\serviceability\heap_dump.hprof ... ble to create c:\springsource-dm-server-2.0.0.M3\bin\..\serviceability\heap_dump.hprof: File exists 09-07-23 16:33:28.559] server-dm-5 <SPDE0020E> Application context creation failure for bundle 'nl.otto.service.plan-1-de.otto.business.service. ernal.dao.jpa'. .springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundleentry://142.fwk2804823/META-INF/spring dule-context.xml]; nested exception is java.lang.OutOfMemoryError: Java heap space at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:394) 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) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:127) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:425) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java: ) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContex ecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContext cutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) sed by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2760) at java.util.Arrays.copyOf(Arrays.java:2734) at java.util.ArrayList.ensureCapacity(ArrayList.java:167) at java.util.ArrayList.add(ArrayList.java:351) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:274) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker$PackageRoots.isConsistentClassSpace(GroupingChecker.java:295) at org.eclipse.osgi.internal.module.GroupingChecker.isConsistentInternal(GroupingChecker.java:103) at org.eclipse.osgi.internal.module.GroupingChecker.isConsistent(GroupingChecker.java:85) at org.eclipse.osgi.internal.module.ResolverImpl.addConflicts(ResolverImpl.java:770) at org.eclipse.osgi.internal.module.ResolverImpl.getConflicts(ResolverImpl.java:747) at org.eclipse.osgi.internal.module.ResolverImpl.findBestCombination(ResolverImpl.java:621) at org.eclipse.osgi.internal.module.ResolverImpl.checkUsesConstraints(ResolverImpl.java:568) at org.eclipse.osgi.internal.module.ResolverImpl.resolveBundles0(ResolverImpl.java:538) at org.eclipse.osgi.internal.module.ResolverImpl.resolveBundles(ResolverImpl.java:504) at org.eclipse.osgi.internal.module.ResolverImpl.resolve(ResolverImpl.java:391) at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:458) at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:515) at com.springsource.kernel.osgi.framework.equinox.EquinoxUtils.getDirectDependencies(EquinoxUtils.java:110) 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.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:564) at org.eclipse.osgi.framework.internal.core.BundleHost.getResource(BundleHost.java:273) at org.springframework.osgi.util.BundleDelegatingClassLoader.findResource(BundleDelegatingClassLoader.java:124) at org.springframework.osgi.util.BundleDelegatingClassLoader.getResource(BundleDelegatingClassLoader.java:146) at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1168) at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:96) 09-07-23 16:33:47.973] server-dm-4 <SPDE0020E> Application context creation failure for bundle 'nl.otto.service.plan-1-de.otto.integration.servi infrastructure.hsqldb'. .springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundleentry://148.fwk2804823/META-INF/spring dule-context.xml]; nested exception is java.lang.OutOfMemoryError: Java heap space at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:394) 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) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:127) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:425) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java: ) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContex ecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContext cutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) sed by: java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.<init>(HashMap.java:187) at java.util.HashMap.<init>(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 org.eclipse.osgi.internal.baseadaptor.StateManager.getState(StateManager.java:252) 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.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:564) at org.eclipse.osgi.framework.internal.core.BundleHost.getResource(BundleHost.java:273) at org.springframework.osgi.util.BundleDelegatingClassLoader.findResource(BundleDelegatingClassLoader.java:124) at org.springframework.osgi.util.BundleDelegatingClassLoader.getResource(BundleDelegatingClassLoader.java:146) 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) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) 09-07-23 16:33:55.449] server-dm-8 <SPDE0020E> Application context creation failure for bundle 'nl.otto.service.plan-1-de.otto.integration.servi eclipselink'. .springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundleentry://146.fwk2804823/META-INF/spring dule-context.xml]; nested exception is java.lang.OutOfMemoryError: Java heap space at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:394) 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) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:127) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:425) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java: ) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContex ecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContext cutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) sed by: java.lang.OutOfMemoryError: Java heap space Also, when I start the Server on Windows Vista there is always shown the an error message that the paths are too long: Der Pfad C:\springsource-dm-server-2.0.0.M3\bin\..\work\com.springsource.kernel\Module\com.springsource.server.repository.hosted-2.0.0.M3\com.springsource.serve r.repository.hosted.core-2.0.0.M3.jar\com\springsource\server\repository\hosted\core\internal\HostedRepository$HostedRepositoryIndex.class ist zu lang. Der Pfad C:\springsource-dm-server-2.0.0.M3\bin\..\work\com.springsource.kernel\Module\com.springsource.server.repository.hosted-2.0.0.M3\com.springsource.serve r.repository.hosted.web-2.0.0.M3.war\WEB-INF\classes\com\springsource\server\repository\hosted\web\RepositoryController.class ist zu lang. These errors never occured on the springsource-dm-server-1.0.2.RELEASE

    SpringSource Issue Tracker | 7 years ago | annika
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    cassandra-user@incubator.apache.org - Thrift version and OOM errors

    nabble.com | 7 months ago
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When I was testing module installation in TISTUD-1579, I ran into this issue after the module got unzipped to a project. The module involved was ti.jira 1.2.1 ("JIRA Module" in the marketplace). {code} !ENTRY org.eclipse.core.jobs 4 2 2012-05-21 13:36:05.558 !MESSAGE An internal error occurred during: "Building workspace". !STACK 0 java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.<init>(HashMap.java:187) at java.util.HashMap.<init>(HashMap.java:199) at com.aptana.internal.index.core.DiskIndex.readCategoryTable(DiskIndex.java:1099) at com.aptana.internal.index.core.DiskIndex.addQueryResults(DiskIndex.java:303) at com.aptana.index.core.Index.query(Index.java:547) at com.aptana.editor.js.contentassist.index.JSIndexReader.getFunctions(JSIndexReader.java:306) at com.aptana.editor.js.contentassist.JSIndexQueryHelper.getFunctions(JSIndexQueryHelper.java:84) at com.aptana.editor.js.contentassist.JSIndexQueryHelper.getMembers(JSIndexQueryHelper.java:192) at com.aptana.editor.js.contentassist.JSIndexQueryHelper.getGlobals(JSIndexQueryHelper.java:124) at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:641) at com.aptana.editor.js.parsing.ast.JSIdentifierNode.accept(JSIdentifierNode.java:33) at com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176) at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:260) at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:491) at com.aptana.editor.js.parsing.ast.JSFunctionNode.accept(JSFunctionNode.java:46) at com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176) at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processValues(JSSymbolTypeInferrer.java:560) at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:352) at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:389) at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getScopeProperties(JSSymbolTypeInferrer.java:292) at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processParseResults(JSFileIndexingParticipant.java:216) at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.index(JSFileIndexingParticipant.java:104) at com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:104) at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) at com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:520) at com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:432) at com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:409) at com.aptana.core.build.UnifiedBuilder.incrementalBuild(UnifiedBuilder.java:232) at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:168) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) {code}

    Appcelerator JIRA | 5 years ago | Chris Williams
    java.lang.OutOfMemoryError: Java heap space

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at java.util.HashMap.<init>()
    2. Java RT
      HashMap.<init>
      1. java.util.HashMap.<init>(HashMap.java:187)
      2. java.util.HashMap.<init>(HashMap.java:199)
      2 frames
    3. Eclipse OSGi
      StateManager.getState
      1. org.eclipse.osgi.internal.resolver.ImportPackageSpecificationImpl.getDirectives(ImportPackageSpecificationImpl.java:27)
      2. org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createImportPackageSpecification(StateObjectFactoryImpl.java:219)
      3. org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createBundleDescription(StateObjectFactoryImpl.java:96)
      4. org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createState(StateObjectFactoryImpl.java:315)
      5. org.eclipse.osgi.internal.baseadaptor.StateManager.getState(StateManager.java:252)
      5 frames
    4. com.springsource.kernel
      KernelBundleClassLoader.findLocalResource
      1. com.springsource.kernel.osgi.framework.equinox.EquinoxUtils.getDirectDependencies(EquinoxUtils.java:106)
      2. com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.getDependencyBundles(KernelBundleClassLoader.java:347)
      3. com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.findLocalResource(KernelBundleClassLoader.java:181)
      3 frames
    5. Eclipse OSGi
      BundleLoader.findResource
      1. org.eclipse.osgi.internal.loader.BundleLoader.findLocalResource(BundleLoader.java:741)
      2. org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:611)
      3. org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:564)
      3 frames
    6. Eclipse OSGi
      BundleHost.getResource
      1. org.eclipse.osgi.framework.internal.core.BundleHost.getResource(BundleHost.java:273)
      1 frame
    7. Spring OSGi Core
      BundleDelegatingClassLoader.getResource
      1. org.springframework.osgi.util.BundleDelegatingClassLoader.findResource(BundleDelegatingClassLoader.java:124)
      2. org.springframework.osgi.util.BundleDelegatingClassLoader.getResource(BundleDelegatingClassLoader.java:146)
      2 frames
    8. Java RT
      DocumentBuilderFactory.newInstance
      1. java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1168)
      2. javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:96)
      3. java.security.AccessController.doPrivileged(Native Method)
      4. javax.xml.parsers.SecuritySupport.getResourceAsStream(SecuritySupport.java:89)
      5. javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:250)
      6. javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:223)
      7. javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:123)
      7 frames
    9. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:89)
      2. org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)
      3. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:370)
      4. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:316)
      5. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:284)
      6. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
      7. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
      8. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
      8 frames
    10. Spring OSGi Core
      OsgiBundleXmlApplicationContext.loadBeanDefinitions
      1. org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)
      1 frame