[hibernate-issues] [Hibernate-JIRA] Commented: (HV-362) Including Annotation Processor in Eclipse results in java.lang.OutOfMemoryError: Java heap space

Gunnar Morling (JIRA) noreply at atlassian.com
Sun Sep 5 05:50:19 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38295#action_38295 ] 

Gunnar Morling commented on HV-362:
-----------------------------------

I checked the AP sources and didn't find any remarkable static maps or similar. 

A minimal source project which shows the error when the AP is applied would be of great help. Does the OutOfMemoryError also occur when using the AP with javac or only within Eclipse? 


> Including Annotation Processor in Eclipse results in java.lang.OutOfMemoryError: Java heap space
> ------------------------------------------------------------------------------------------------
>
>                 Key: HV-362
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-362
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: annotation-processor
>    Affects Versions: 4.1.0.Final
>         Environment: eclipse.buildId=I20100608-0911
> java.version=1.6.0_15
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
> Framework arguments:  -product org.eclipse.epp.package.jee.product
> Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
>            Reporter: Marcel Tietze
>            Assignee: Gunnar Morling
>            Priority: Minor
>
> I added the annotation processor like in http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html/ch08.html chapter 8.4.2.1. Eclipse described. After a while the build process stops and the following exception occures:
> {code}
> An internal error occurred during: "Building Workspace".
> java.lang.OutOfMemoryError: Java heap space
> 	at org.eclipse.jdt.core.dom.ASTNode$NodeList.<init>(ASTNode.java:1112)
> 	at org.eclipse.jdt.core.dom.Block.<init>(Block.java:70)
> 	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:511)
> 	at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:180)
> 	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2709)
> 	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1266)
> 	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:876)
> 	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:577)
> 	at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:888)
> 	at org.eclipse.jdt.apt.core.internal.env.BaseProcessorEnv.createASTs(BaseProcessorEnv.java:859)
> 	at org.eclipse.jdt.apt.core.internal.env.BuildEnv.createASTs(BuildEnv.java:356)
> 	at org.eclipse.jdt.apt.core.internal.env.AbstractCompilationEnv.newBuildEnv(AbstractCompilationEnv.java:111)
> 	at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.build(APTDispatchRunnable.java:271)
> 	at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.run(APTDispatchRunnable.java:217)
> 	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
> 	at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.runAPTDuringBuild(APTDispatchRunnable.java:142)
> 	at org.eclipse.jdt.apt.core.internal.AptCompilationParticipant.processAnnotations(AptCompilationParticipant.java:193)
> 	at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.processAnnotations(AbstractImageBuilder.java:627)
> 	at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:338)
> 	at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:60)
> 	at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:254)
> 	at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:178)
> 	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
> 	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
> 	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
> 	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:344)
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list