hIPster icon The Official Hipster Blog

Sunday, November 05, 2006

Subversion problems with CruiseControl

I am setting up a CruiseControl server on my iMac to automatically check out and build the hIPster source each day. Up until now I have failed to get it working because the call to subversion was failing with:

org.jdom.input.JDOMParseException: Error on line 3: XML document structures must start and end within the same entity.

After hacking the source code for CruiseControl I discovered what was happening. I post it here in case it is of use to someone else.

It turns out the svn command was returning the following before it output the XML:

svn: PROPFIND request failed on '/svn/trunk'svn: PROPFIND of '/svn/trunk': Server certificate verification failed: issuer is not trusted (https://hipster.googlecode.com)

The solution is to sign in with the same username that you use to run the CruiseControl server and do a manual:

svn update

You will then get the chance to sign in as the subversion user and permanently add the subversion user.

I have heard that the same thing can occur on Windows machines if the source was checked out by a GUI user, but the CruiseControl server is started as a system server. Same fix should work there.

Thursday, November 02, 2006

Refactoring madness

Currently refactoring the system and adding unit tests throughout. The bizarre thing is that it is actually (for the moment) making the code less stable. A couple of bugs have appeared. I suppose it demonstrates that agile methods don't neccessarily create code with fewer bugs, they just make sure that the old ones don't pay return visits...