-
Jul 28th, 2010, 12:26 AM
#1
Java Heap space
HI
can anybody tell is me the solution of this problem when i am performing test
in project using roo or compiling using maven (of course)this is roo project i am getting following things
While performing tests
roo> perform tests
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ontrac
[INFO] task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [aspectj:compile {execution: default}]
[ERROR] ABORT
[ERROR] unexpected exception
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36 seconds
[INFO] Finished at: Wed Jul 28 11:09:28 IST 2010
[INFO] Final Memory: 63M/63M
[INFO] ------------------------------------------------------------------------
and while compiling
C:\rooWorkspace\ontrac1>mvn tomcat:run
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ontrac
[INFO] task-segment: [tomcat:run]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing tomcat:run
[INFO] [aspectj:compile {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 5 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 97 source files to C:\rooWorkspace\ontrac1\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\rooWorkspace\ontrac1\src\main\java\com\ontrac\d omain\MonitoringTracking.java:[53,18] cannot find symbol
symbol : method getTeamMemberFullName()
location: class com.ontrac.domain.MonitoringTracking
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 16 seconds
[INFO] Finished at: Wed Jul 28 11:04:34 IST 2010
[INFO] Final Memory: 22M/40M
[INFO] ------------------------------------------------------------------------
I am confused please help me
thanx in advance
-
Jul 28th, 2010, 02:48 AM
#2
I don't know whether is related with maven, but try to give this program more Java memory.
Add an environment variable to the operating system (I use windows, you know: control panel -> System -> Advanced tab and so on): MAVEN_OPTS with the value -Xmx256m.
Maybe it helps you.
-
Jul 28th, 2010, 03:35 AM
#3
Thanx
Thanx for your suggestion I have tried that my program is compiling now
Thank you very much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules