Well…I’m encountering soooo many troubles trying to compile Hackystat.
let’s start from the library versions that I’m using.
I’m using all the suggested versions except for the following ones:
checkstyle suggestedVersion: 5.0-beta01 version_that_I_use: 5.0
pmd suggestedVersion: 4.2.3 version_that_I_use: 4.2.5
restlet suggestedVersion: 1.0.11 version_that_I_use: 1.1.4
svnKit suggestedVersion: 1.1.4 version_that_I_use: 1.6.1
That’s just because I can’t manage to find online the suggested versions. In particular I’ve collect the necessary files for tools such as derby-10.3.1.4, findbugs-1.3.2, sclc-2.6.1116, downloading them from various repositories because their suggested versions are no longer published online. Consequently I’m not really sure about the completeness of those tool folders (in other words, I’m not sure to have retrieved ALL the required files for each tool), even if it must be notice that my local Hackystat server collects sensor data through derby 10.3.1.4 without any trouble.
O.S. Debian Lenny; kernel 2.6.26-2-686
I can compile successfully the Utilities package
I can’t compile successfully the Sensorbase package.
I got the following error:
hackystat-sensorbase-uh/junit.build.xml:18: Test org.hackystat.sensorbase.db.derby.TestConstructLikeClauses failed
Then I deleted the sensorbase, dpd and telemetry folders, and rerun an “ant checkout.anonymous” to download the most updated versions of those folders (to clean some changes I did during my compilation tentatives on some .xml files).
After that I can successfully compile the utilities package as usually; but the compilation of the sensorbase package stops earlier, while the compiler is reading the build.xml file, with the following error:
[javac] 15 warnings
[ant] Exiting /home/myrtill/HackystatHackerCertification/hackystat-projects/hackystat-sensorbase-uh/verify.build.xml.
BUILD FAILED
/home/myrtill/HackystatHackerCertification/hackystat-projects/build.xml:169: The following error occurred while executing this line:
/home/myrtill/HackystatHackerCertification/hackystat-projects/macros.build.xml:205: The following error occurred while executing this line:
/home/myrtill/HackystatHackerCertification/hackystat-projects/hackystat-sensorbase-uh/build.xml:98: Compile failed; see the compiler error output for details.
that in verbose mode is followed by:
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:541)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
which seems to always being printed out when ant build fails in verbose mode; and then this output should not be considered interesting. The problem is that I have no other mean to understand “where” precisely, the error was thrown….the only two things I know is that before re-downloaded everything this didn’t happen, and that ant stops at the 98th line of the build.xml file which is:
javac srcdir="${src.dir}" destdir="${build.dir}/classes" source="1.5" target="1.5" debug="on" includeAntRuntime="no"
I’ve tried to change 1.5 in 1.6 imagining that it could be referred to the java version (I use the 1.6 java version, sun microsystem edition), but getting the same error again.
Well…With Windows XP
I have the same libraries’ versions etc. but the compilation stops very soon, while building the utilities package, with the following error:
[junit] Running org.hackystat.utilities.email.TestValidateEmailSyntax
[junit] junit.framework.TestListener: tests to run: 1
[junit] junit.framework.TestListener: startTest(initializationError)
[junit] junit.framework.TestListener: addError(initializationError, No runna
ble methods)
[junit] junit.framework.TestListener: endTest(initializationError)
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,078 sec
[Hackystat Build Sensor] TaskFinished - junit; error = true
[Hackystat Build Sensor] TargetFinished - junit.tool
If I run in verbose mode I get in addition only the lines that are always printed out as i stated some rows before ( e.g. “at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:541)” etc. ).