openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Martin" <bal...@gmail.com>
Subject [Possible Bug] OutOfMemoryError + class enhancement
Date Wed, 24 Oct 2007 11:00:16 GMT
Hello,
I am trying to enhance entities classes at build time using Maven (I also
tried at runtime through tomcat and I still get out of mem errors).
I keep getting out of memory errors even though my machine has more than 2
GB of RAM.
Is this a bug?
Julien.

----------------------------------------------------------------------------
Building CdR
   task-segment: [install]
----------------------------------------------------------------------------

Using default encoding to copy filtered resources.
Nothing to compile - all classes are up to date
Executing tasks
     [java] 15  CdRWebPU  WARN   [main] openjpa.Runtime - The property named
"openjpa.ClassLoadEnhancement" was not recognized and will be ignored,
although the name closely matches a valid property called "
openjpa.ClassResolver".
     [java] 31  CdRWebPU  TRACE  [main] openjpa.Runtime - Setting the
following properties from
"file:/C:/dev/calyonfinancial/CdR/target/classes/META-INF/persistence.xml"
into configuration: { openjpa.ConnectionUserName=jmartin,
openjpa.ConnectionPassword=martin8, openjpa.Log=DefaultLevel=TRACE,
Tool=TRACE, openjpa.MetaDataFactory=jpa(Types=
com.calyonfinancial.cdr.entities.MtiersRx;com.calyonfinancial.cdr.entities.Amount;com.calyonfinancial.cdr.entities.CountryCodeRef;com.calyonfinancial.cdr.entities.DepartmentCodeRef;com.calyonfinancial.cdr.entities.Statement;com.calyonfinancial.cdr.entities.AmountCategoryCodeRef;com.calyonfinancial.cdr.entities.AmountTypeCodeRef;com.calyonfinancial.cdr.entities.Company),
javax.persistence.provider=org.apache.openjpa.persistence.PersistenceProviderImpl,
openjpa.ClassLoadEnhancement=false,
openjpa.ConnectionURL=jdbc:as400://AS400D.CALYONFINANCIAL.COM,
openjpa.ConnectionDriverName=com.ibm.as400.access.AS400JDBCDriver ,
openjpa.Id=CdRWebPU}
     [java] 109  CdRWebPU  INFO   [main] openjpa.Tool - No targets were
given.  Running on all classes in your persistent classes list, or all
metadata files in classpath directories if you have not listed your
persistent classes.  Use -help to display tool usage information.
     [java] 109  CdRWebPU  TRACE  [main] openjpa.MetaData - Scanning
resource "META-INF/orm.xml" for persistent types.
     [java] 124  CdRWebPU  TRACE  [main] openjpa.MetaData -
parsePersistentTypeNames() found [
com.calyonfinancial.cdr.entities.AmountCategoryCodeRef,
com.calyonfinancial.cdr.entities.Amount,
com.calyonfinancial.cdr.entities.MtiersRx,
com.calyonfinancial.cdr.entities.Statement,
com.calyonfinancial.cdr.entities.AmountTypeCodeRef ,
com.calyonfinancial.cdr.entities.CountryCodeRef,
com.calyonfinancial.cdr.entities.DepartmentCodeRef,
com.calyonfinancial.cdr.entities.Company].
     [java] 124  CdRWebPU  TRACE  [main] openjpa.MetaData - Found 8 classes
with metadata in 15 milliseconds.
     [java] 140  CdRWebPU  TRACE  [main] openjpa.Tool - Enhancer running on
type "com.calyonfinancial.cdr.entities.AmountCategoryCodeRef".
     [java] 234  CdRWebPU  TRACE  [main] openjpa.MetaData - Loading metadata
for "class com.calyonfinancial.cdr.entities.AmountCategoryCodeRef" under
mode "[META]".
     [java] 249  CdRWebPU  TRACE  [main] openjpa.MetaData - Parsing class "
com.calyonfinancial.cdr.entities.AmountCategoryCodeRef ".
     [java] 249  CdRWebPU  TRACE  [main] openjpa.MetaData - Parsing package
"com.calyonfinancial.cdr.entities.AmountCategoryCodeRef".
     [java] 328  CdRWebPU  TRACE  [main] openjpa.MetaData - Generating
default metadata for type "
com.calyonfinancial.cdr.entities.AmountCategoryCodeRef".
     [java] 328  CdRWebPU  TRACE  [main] openjpa.MetaData - Using reflection
for metadata generation.
     [java] 359  CdRWebPU  TRACE  [main] openjpa.MetaData - Set
persistence-capable superclass of "
com.calyonfinancial.cdr.entities.AmountCategoryCodeRef" to "null".
     [java] 374  CdRWebPU  TRACE  [main] openjpa.MetaData - Resolving
metadata for "
com.calyonfinancial.cdr.entities.AmountCategoryCodeRef@17103608".
     [java] 374  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field "com.calyonfinancial.cdr.entities.AmountCategoryCodeRef@17103608.amountCategoryCode
".
     [java] 390  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field "com.calyonfinancial.cdr.entities.AmountCategoryCodeRef@17103608.amountCategoryDescription
".
     [java] 390  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field "com.calyonfinancial.cdr.entities.AmountCategoryCodeRef@17103608.amountCollection
".
     [java] 390  CdRWebPU  TRACE  [main] openjpa.MetaData - Loading metadata
for "class com.calyonfinancial.cdr.entities.Amount " under mode "[META]".
     [java] 390  CdRWebPU  TRACE  [main] openjpa.MetaData - Parsing class "
com.calyonfinancial.cdr.entities.Amount".
     [java] 406  CdRWebPU  TRACE  [main] openjpa.MetaData - Generating
default metadata for type "com.calyonfinancial.cdr.entities.Amount".
     [java] 406  CdRWebPU  TRACE  [main] openjpa.MetaData - Using reflection
for metadata generation.
     [java] 453  CdRWebPU  TRACE  [main] openjpa.MetaData - Generating
default metadata for type "com.calyonfinancial.cdr.entities.AmountPK".
     [java] 453  CdRWebPU  TRACE  [main] openjpa.MetaData - Using reflection
for metadata generation.
     [java] 468  CdRWebPU  TRACE  [main] openjpa.MetaData - Set
persistence-capable superclass of "com.calyonfinancial.cdr.entities.Amount"
to "null".
     [java] 468  CdRWebPU  TRACE  [main] openjpa.MetaData - Loading metadata
for "class com.calyonfinancial.cdr.entities.AmountPK" under mode "[META]".
     [java] 468  CdRWebPU  TRACE  [main] openjpa.MetaData - Parsing class "
com.calyonfinancial.cdr.entities.AmountPK".
     [java] 468  CdRWebPU  TRACE  [main] openjpa.MetaData - Generating
default metadata for type "com.calyonfinancial.cdr.entities.AmountPK".
     [java] 468  CdRWebPU  TRACE  [main] openjpa.MetaData - Using reflection
for metadata generation.
     [java] 468  CdRWebPU  TRACE  [main] openjpa.MetaData - Set
persistence-capable superclass of "com.calyonfinancial.cdr.entities.AmountPK"
to "null".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData - Resolving
metadata for " com.calyonfinancial.cdr.entities.Amount@12170552".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.Amount@12170552.amount ".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field "com.calyonfinancial.cdr.entities.Amount@12170552.amountCategoryCodeRef
".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.Amount@12170552.amountPK ".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData - Set
persistence-capable superclass of "com.calyonfinancial.cdr.entities.AmountPK"
to "null".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData - Resolving
embedded metadata for "com.calyonfinancial.cdr.entities.AmountPK@2654289".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData - Set
persistence-capable superclass of "
com.calyonfinancial.cdr.entities.AmountPK" to "null".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData - Resolving
metadata for "com.calyonfinancial.cdr.entities.AmountPK@16795115".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field "com.calyonfinancial.cdr.entities.AmountPK@16795115.amountCategoryCode
".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.AmountPK@16795115.amountTypeCode ".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.AmountPK@16795115.internalReference
".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.AmountPK@16795115.statementId ".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.AmountPK@2654289.amountCategoryCode
".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.AmountPK@2654289.amountTypeCode ".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.AmountPK@2654289.internalReference
".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.AmountPK@2654289.statementId ".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.Amount@12170552.amountTypeCodeRef
".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData - Loading metadata
for "class com.calyonfinancial.cdr.entities.AmountTypeCodeRef" under mode
"[META]".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData - Parsing class "
com.calyonfinancial.cdr.entities.AmountTypeCodeRef".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData - Generating
default metadata for type "
com.calyonfinancial.cdr.entities.AmountTypeCodeRef ".
     [java] 484  CdRWebPU  TRACE  [main] openjpa.MetaData - Using reflection
for metadata generation.
     [java] 499  CdRWebPU  TRACE  [main] openjpa.MetaData - Set
persistence-capable superclass of "
com.calyonfinancial.cdr.entities.AmountTypeCodeRef " to "null".
     [java] 499  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.Amount@12170552.company ".
     [java] 499  CdRWebPU  TRACE  [main] openjpa.MetaData - Loading metadata
for "class com.calyonfinancial.cdr.entities.Company" under mode "[META]".
     [java] 499  CdRWebPU  TRACE  [main] openjpa.MetaData - Parsing class "
com.calyonfinancial.cdr.entities.Company".
     [java] 499  CdRWebPU  TRACE  [main] openjpa.MetaData - Generating
default metadata for type "com.calyonfinancial.cdr.entities.Company ".
     [java] 499  CdRWebPU  TRACE  [main] openjpa.MetaData - Using reflection
for metadata generation.
     [java] 515  CdRWebPU  TRACE  [main] openjpa.MetaData - Set
persistence-capable superclass of "
com.calyonfinancial.cdr.entities.Company" to "null".
     [java] 515  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.Amount@12170552.declarationType ".
     [java] 515  CdRWebPU  TRACE  [main] openjpa.MetaData -     Resolving
field " com.calyonfinancial.cdr.entities.Amount@12170552.statement ".
     [java] 515  CdRWebPU  TRACE  [main] openjpa.MetaData - Loading metadata
for "class com.calyonfinancial.cdr.entities.Statement" under mode "[META]".
     [java] 515  CdRWebPU  TRACE  [main] openjpa.MetaData - Parsing class "
com.calyonfinancial.cdr.entities.Statement".
     [java] 531  CdRWebPU  TRACE  [main] openjpa.MetaData - Generating
default metadata for type "com.calyonfinancial.cdr.entities.Statement ".
     [java] 531  CdRWebPU  TRACE  [main] openjpa.MetaData - Using reflection
for metadata generation.
     [java] 531  CdRWebPU  TRACE  [main] openjpa.MetaData - Set
persistence-capable superclass of "
com.calyonfinancial.cdr.entities.Statement " to "null".
     [java] Exception in thread "main" java.lang.OutOfMemoryError: Java heap
space
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Error executing ant tasks

Embedded error: Java returned: 1
------------------------------------------------------------------------
Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant
tasks
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:564)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java :278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke (
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java
:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
        at org.codehaus.classworlds.Launcher.main (Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
ant tasks
        at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(
AbstractAntMojo.java:114)
        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java
:83)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: Java returned: 1
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(
AbstractAntMojo.java :108)
        ... 19 more
------------------------------------------------------------------------
Total time: 4 minutes 4 seconds
Finished at: Wed Oct 24 12:25:24 CEST 2007
Final Memory: 7M/14M
------------------------------------------------------------------------

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message