geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ljuba (JIRA)" <>
Subject [jira] Created: (GERONIMO-4275) PCEnhancer java.lang.OutOfMemoryError: Java heap space
Date Tue, 02 Sep 2008 14:51:44 GMT
PCEnhancer java.lang.OutOfMemoryError: Java heap space

                 Key: GERONIMO-4275
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: persistence
    Affects Versions: 2.1.2
         Environment: Sun jdk 1.5
jtds driver 1.2.2 (MSSQL)
Windows XP
-Xms1024m -Xmx1024m

            Reporter: Ljuba

I got this error when I am deploying application:

02 Sep 2008 10:11:38,046 INFO [RMI TCP Connection(14)-] (
- Assembling app: C:\Documents and Settings\xxx\Local Settings\Temp\geronimo-deploymentUtil27842.jar
257594 xxx WARN [RMI TCP Connection(14)-] openjpa.Enhance - An exception was
thrown while attempting to perform class file transformation on "net/.../yyy":
java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.ensureCapacity(
at java.util.ArrayList.add(
at org.apache.openjpa.meta.MetaDataRepository.processBuffer(
at org.apache.openjpa.meta.MetaDataRepository.resolveMeta(
at org.apache.openjpa.meta.MetaDataRepository.resolve(
at org.apache.openjpa.meta.MetaDataRepository.getMetaData(
at org.apache.openjpa.enhance.PCEnhancer.<init>(
at org.apache.openjpa.enhance.PCEnhancer.<init>(
at org.apache.openjpa.enhance.PCClassFileTransformer.transform(
at org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(
at org.apache.geronimo.persistence.TransformerWrapper.transform(
at org.apache.geronimo.transformer.TransformerCollection.transform(
at sun.instrument.TransformerManager.transform(
at sun.instrument.InstrumentationImpl.transform(
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(
at org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(
at org.apache.geronimo.kernel.classloader.JarFileClassLoader$
at Method)
at org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(
at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(
at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(
at java.lang.Class.privateGetPublicMethods(
at java.lang.Class.getMethods(
at org.apache.openejb.assembler.classic.Assembler.createApplication(

There is nothing special in relation @OneToMany @ManyToOne (Hibernate tool generated mappings
for two tables - In database there is relation on this two tables):

First class has this property:

	private Set<yyy> yyy= new HashSet<yyy>(0);

	private Set<CustomerAccount> customerAccounts = new HashSet<CustomerAccount>(0);
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "xxx")
	public Set<yyy> getYyys() {
		return this.yyy;

	public void setYys(Set<yyy> yyys) {
		this.yyys = yyy;

Second class has this propertie:

	private Xxx xxx;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns( { @JoinColumn(name = "aaa", referencedColumnName = "aaa"),
			@JoinColumn(name = "bbb", referencedColumnName = "bbb") })
	public Customer getXxx() {

	public void setXxx(XXX xxx) { xxx;

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message