Java NIO with Linux 2.6 kernel

Posted by Pepijn Oomen Wed, 29 Dec 2004 22:53:00 GMT

After some successful experiments with blojsom on my (MacOSX) desktop, I spent quite some time getting stuff working on my Linux server. I had some peculiar problems with switching themes, i.e. FileNotFoundException after a seemingly successful switchover.

Scanning through the code (don't you just love open source) I found that the theme copying uses java.nio.transferTo. A small test application worked fine on the desktop but failed to run on the server. Some googling led to: Bug ID: 5056395.

So it turned out I had to patch the code to prevent the usage of transferTo. After that things seem to be working fine.

The patch to blojsom can be found here.