Sunday, December 9, 2007

Sventon for my homies

I'm a big fan of sventon, the guys have created one of the kickingest svn repository viewers around.

Much to my dismay after an upgrade to 1.3.0, stuff stopped working. I didn't have time to look at it until recently but I dived into the tomcat logs and pulled up this.

org.springframework.beans.MethodInvocationException: Property 'archiveFileCharset' threw exception; nested exception is java.nio.charset.UnsupportedCharsetException: cp437


Not so cool.

cp437 is the old dos-us character set which sure isn't installed on our svn box, hence the error.

So if this saves anyone else some time, go into the WEB-INF directory of sventon and edit sventon-servlet.xml. There is a property called archiveFileCharset. Change the value to whatever is appropriate for you. In my case it was cp1252 which is en-au amongst others, but should be good enough for most engrish speakers.

I thought Unicode had pretty much made Windows Code Pages obsolete, oh well.

2 comments:

Jesper said...

Hi!

Thanks for using sventon!

We are aware of the issue. It occurs if your servlet container is configured to use a JRE 1.5 instead of a JDK >= 1.5 or a JRE >= 1.6 (i.e. the charsets.jar is missing from the JAVA_HOME/lib directory). It is unfortunate, but the (PK)Zip file spec does not support UTF-8, but only CP850/437. To fix this we will add a fallback charset in the upcoming 1.4 release.

Regards
Jesper/sventon team

dan said...

Thanks for the explanation Jesper.

Keep up the good work, I look forward to the next release.