From: Dan R. (JIRA) <ji...@ma...> - 2007-07-29 02:59:14
|
[ http://jira.public.thoughtworks.org/browse/CC-684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_14757 ] Dan Rollo commented on CC-684: ------------------------------ After changing the CC top level build.xml to use the "final" cc-config jar, I ran into the "Out-of-Memory" error below consistently (running Ubuntu). I think the memory issue could be fixed by adding an arg to the "test" target - <junit> in cc-config/build.xml, like: <target name="test" depends="build.tests"> <delete dir="${junit.results}"/> <mkdir dir="${junit.results}"/> <junit fork="yes" haltonfailure="yes" printsummary="on"> <jvmarg value="-Xmx256m"/> <!-- I added this and it also seemed to work, could probably get away with less mem too...--> <classpath>... For now, I managed to get around the probem by altering the CC top level build.xml to not inheritAll (which seems to have freed up just enough memory for the test suite to complete). I'll bank the fix from Brian above, as well as my change to the CC build.xml. Here's the error I was getting: test: [delete] Deleting directory /home/dan/devtools/cruisecontrol/target/cc-config/junit [mkdir] Created dir: /home/dan/devtools/cruisecontrol/target/cc-config/junit [junit] Running net.sourceforge.cruisecontrol.gui.UserPropertiesTest [junit] Exception in thread "main" java.lang.OutOfMemoryError [junit] at java.util.zip.ZipFile.open(Native Method) [junit] at java.util.zip.ZipFile.<init>(ZipFile.java:112) [junit] at java.util.jar.JarFile.<init>(JarFile.java:127) [junit] at java.util.jar.JarFile.<init>(JarFile.java:65) [junit] at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:578) [junit] at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:545) [junit] at sun.misc.URLClassPath$3.run(URLClassPath.java:323) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at sun.misc.URLClassPath.getLoader(URLClassPath.java:312) [junit] at sun.misc.URLClassPath.getLoader(URLClassPath.java:289) [junit] at sun.misc.URLClassPath.getResource(URLClassPath.java:159) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:191) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) BUILD FAILED /home/dan/devtools/cruisecontrol/build.xml:179: The following error occurred while executing this line: /home/dan/devtools/cruisecontrol/target/cc-config/build.xml:86: Test net.sourceforge.cruisecontrol.gui.UserPropertiesTest failed Total time: 9 seconds dan@ubuntudan:~/devtools/cruisecontrol$ java -version java version "1.6.0" Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode) dan@ubuntudan:~/devtools/cruisecontrol$ ant -version Apache Ant version 1.6.5 compiled on October 26 2005 Dan > cc-config\3rdparty\libsystray4j.so causes build to break on Windows > ------------------------------------------------------------------- > > Key: CC-684 > URL: http://jira.public.thoughtworks.org/browse/CC-684 > Project: CruiseControl > Issue Type: Bug > Components: Core Application > Environment: Current download from head; Java 1.5, ant 1.6.5 > Reporter: Brian Egge > Priority: Critical > > I get this failure when doing a checkout from the trunk: > build: > [javac] Compiling 167 source files to D:\Program Files\cruisecontrol-head\target\cc-config\build\classes > [javac] error: error reading D:\Program Files\cruisecontrol-head\target\cc-config\3rdparty\libsystray4j.so; error in opening zip file > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 1 error > I worked around it by adding includes="**/*.jar" to the build file, and prevent CC from overwriting the changed build file in cc-config. > <!-- ================ --> > <!-- compile the code --> > <!-- ================ --> > <target name="build" depends="init"> > <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true"> > <classpath> > - <fileset dir="${3rdparty.dir}"/> > + <fileset dir="${3rdparty.dir}" includes="**/*.jar"/> > </classpath> > </javac> > </target> > > <target name="build.tests"> > <javac srcdir="${test.src.dir}" destdir="${test.classes.dir}" debug="true"> > <classpath> > - <fileset dir="${3rdparty.dir}" /> > + <fileset dir="${3rdparty.dir}" includes="**/*.jar"/> > <pathelement location="${classes.dir}" /> > </classpath> > </javac> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.public.thoughtworks.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |