I recently got this somewhat cryptic error message when trying to merge something in Subversion. In the root directory of my working copy, I ran svn merge, something along the lines of:
svn merge -c 1234 http://svn.example.com/myproject/trunk ./
Only to get:
svn: 'http://subversion.tigris.org/xmlns/dav/md5-checksum' was not present on the resource
I had absolutely no idea what it was on about, and a fair bit of Googling turned up nothing. Then, just for fun, I tried going one level up from my working copy and trying again:
cd ../
svn merge -c 1234 http://svn.example.com/myproject/trunk ./myworkingcopy/
And lo and behold – it worked. I haven’t the foggiest idea why, but it does. Any ideas anyone?
Using SVN v1.6.6
I recently installed Eclipse and all of a sudden my Java applications failed to build with the error:
Syntax error, parameterized types are only available if source level is 1.5
After a bit of Googling I figured out that Eclipse installed a different JVM and set it as the default one. On Ubuntu (at least) the way to change the default JVM is by typing this into the console:
sudo update-alternatives --config java
It will show you which JVM is currently selected and allow you to choose a different one as default.
A member of the team came to me the other day with a MySQL error that I’d not seen before:
Lost connection to MySQL server during query
The MySQL manual (http://dev.mysql.com/doc/refman/5.0/en/gone-away.html) says that it can be caused by:
applications that fork child processes, all of which try to use the same connection to the MySQL server
Which was exactly our case as we were creating a benchmarking tool that created child processes to concurrently query the website. So we checked the code to make sure that no database connections were shared between processes, and also that all connections were closed immediately after being used… but we still got the same error.
After a few minutes of scratching our heads, it dawned on us that we were using persistent connections, and of course when connection objects are destroyed the actual connections are not closed but are returned to a pool of connections, ready for re-use.
We changed the connections to non-persistent and Bob was our proverbial uncle!