You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Siegmann Daniel, NY" <Da...@fja-us.com> on 2005/09/13 18:28:52 UTC
StackOverflowError on large file
When compiling a project with Maven (java:compile), I get a
java.lang.StackOverflowException. It's just one file that has the problem,
but it's a very large source file (~8000 lines). This is generated code, so
it won't be changed (in fact, I expect it to get larger). I've tried setting
-Xss option as high as 10 megs, but it did nothing.
This problem only occurs in Maven - Eclipse is fine. It only has a problem
with that one file, but even if everything (except that file) is already
compiled and Maven restarted, it will fail trying to compile that file.
A full copy of what happens is below. Note that I set the compiler to
verbose (though I still don't get the full stack trace). I've spent the last
few hours Googling, to no avail. Any help would be very much appreciated.
>From the console:
=====
D:\projects\Suncorp\CIPricingEngineR1>set MAVEN_HOME=..\..\tools\maven\1.0.2
D:\projects\Suncorp\CIPricingEngineR1>set JAVA_HOME=..\..\tools\jdk\1.4.2_05
D:\projects\Suncorp\CIPricingEngineR1>call ..\..\tools\maven\1.0.2\bin\maven
console __ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
The following commands are available:
list - list all available goals
help - this message
<goalname> - attain a goal
quit - quits the console
Suncorp 1.020 >
java:compile
build:start:
console:
console:help:
java:prepare-filesystem:
java:compile:
[echo] Compiling to D:\projects\Suncorp\CIPricingEngineR1/target/classes
[echo] ==========================================================
NOTE: Targetting JVM 1.4, classes
will not run on earlier JVMs
==========================================================
[javac] Compiling 1 source file to
D:\projects\Suncorp\CIPricingEngineR1\target\classes
[javac] [parsing started
D:\projects\Suncorp\CIPricingEngineR1\src\java\com\suncorp\cipricing\model\v
o\PremiumComponentVO.java]
[javac] [parsing completed 172ms]
[javac] [loading
D:\Profiles\BIS01824\.maven\repository\productmachine\jars\productmachine-4.
00_032.jar(com/fja/pm/util/AbstractDiscreteValue.class)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/text/ParseException.class
)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/lang/Comparable.class)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/lang/Object.class)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/io/Serializable.class)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/lang/String.class)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/lang/IllegalArgumentExcep
tion.class)]
[javac] [checking com.suncorp.cipricing.model.vo.PremiumComponentVO]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/lang/Throwable.class)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/lang/Exception.class)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/lang/RuntimeException.cla
ss)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/lang/Error.class)]
[javac] [loading
D:\projects\tools\jdk\1.4.2_05\jre\lib\rt.jar(java/lang/StringBuffer.class)]
[javac]
[javac]
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.StackOverflowError
org.apache.commons.jelly.JellyTagException:
D:\Profiles\BIS01824\.maven\cache\maven-java-plugin-1.5\plugin.jelly:63:48:
<ant:javac> Compile failed; see the compiler error output for details.
Suncorp 1.020 >
=====
Note that the file being compiled is PremiumComponentVO, and it imports
AbstractDiscreteValue and ParseException - I assume the rest of the loading
is from inports in those classes. We're using Sun JDK 1.4.2_05 (as seen
above).
--
Daniel Siegmann
FJA-US, Inc.
(212) 840-2618 ext. 125
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org