OutOfMemoryError when creating EntityManagerFactory within an OSGi container

Solution Unverified - Updated -

Issue

The Fuse ESB container throws an OutOfMemoryError with the following stack:


00:05:39,933 | WARN | l Console Thread | container | 263 - org.apache.aries.jpa.container - 1.0.0 | Error while crea ting entity manager factories. This error will be ignored. java.lang.OutOfMemoryError at java.util.zip.Inflater.init(Native Method)[:1.6.0_23] at java.util.zip.Inflater.<init>(Inflater.java:83)[:1.6.0_23] at java.util.zip.ZipFile.getInflater(ZipFile.java:279)[:1.6.0_23] at java.util.zip.ZipFile.getInputStream(ZipFile.java:225)[:1.6.0_23] at java.util.zip.ZipFile.getInputStream(ZipFile.java:193)[:1.6.0_23] at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.getInputStream(WeakZipFileFactory.java:270) at org.apache.felix.framework.cache.JarContent.getEntryAsStream(JarContent.java:198) at org.apache.felix.framework.PatchAwareContent.getEntryAsStream(PatchAwareContent.java:116) at org.apache.felix.framework.BundleRevisionImpl.getInputStream(BundleRevisionImpl.java:643) at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:150) at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:161) at java.net.URL.openStream(URL.java:1010)[:1.6.0_23] at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1195)[:1.6.0_23] at org.apache.aries.jpa.container.unit.impl.TempBundleDelegatingClassLoader.findClass(TempBundleDelegatingClassLoader.java:52) at java.lang.ClassLoader.loadClass(ClassLoader.java:307)[:1.6.0_23] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)[:1.6.0_23] at java.lang.Class.forName0(Native Method)[:1.6.0_23] at java.lang.Class.forName(Class.java:247)[:1.6.0_23] at org.apache.aries.jpa.container.annotation.impl.JPAAnnotationScanner.findJPAAnnotatedClasses(JPAAnnotationScanner.java:45) at org.apache.aries.jpa.container.unit.impl.PersistenceUnitInfoImpl.getManagedClassNames(PersistenceUnitInfoImpl.java:164) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:564) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) at org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.createEntityManagerFactories(EntityManagerFactoryManager.java:330

Environment

  • Fuse ESB Enterprise 7.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.