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

    Weblogic Upgradefrom 10.0 to 12c - Spring Issue

    Stack Overflow | 2 years ago | AVI
    java.lang.OutOfMemoryError: PermGen space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  6. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *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 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions()
    2. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:394)
      2. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:316)
      3. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:284)
      4. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
      5. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
      6. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
      6 frames
    3. Spring OSGi Core
      OsgiBundleXmlApplicationContext.loadBeanDefinitions
      1. org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)
      2. org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)
      2 frames
    4. Spring Context
      AbstractApplicationContext.obtainFreshBeanFactory
      1. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:127)
      2. org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:425)
      2 frames