logo
Jun
30

Exceptions crossing Tiers (and using ResourceBundles with Exceptions)

Well, I’ve been doing tons of reading on exception handling to try and develop a standard set of practices. I’ve got two immediate problems that I need to address and haven’t found much advice on: 1. Exceptions Crossing Tier Boundaries: Many of our systems are n-Tier and exceptions visible in the most remote layers aren’t necessarily available in the presentation tier. What to...
Jun
23

Relative URI can not be resolved without a document URI

This post is just a placeholder so I can google for this SAX error later and remember how I fixed it. You get one of these errors from SAX when you have an XML document that uses a relative reference to its DTD. So, say you’ve got a filter-config.xml which contains something like: <!DOCTYPE security PUBLIC "-//Bytecode Pty Ltd//Spam Filtering Components//EN" "filter-config.dtd"...
Jun
22

My New Java Stickpin! (and use of the Java logo)

Been there, done that, got the stick pin. I’m now officially a Java Certified Programmer – and I’ve got the card to prove it! It was certainly a fun exam, and it took me the whole two hours just to get the thing finished. I probably should have studied harder, but hey, I passed, and I’m very happy. Also learned a lot more than any man should about scope rules relating to inner...
Jun
21

SAX, Stacks and XML Parsing Patterns

I used to be a hardcore DOM-style man, and dom4j remains my favourite XML API, but these days I’ve been doing a lot of performance and load sensitive stuff in the middle tier, which means that I tend to go for streaming solutions like XML pull and SAX. My basic lesson has been that streaming = performance. I mean, the numbers just don’t lie – we’re talking at least 3 times faster...
Jun
13

Porting my MoveableType data to Pebble

I’ve just spent the arvo moving my data over from MoveableType to Pebble, and after some gotchas it should all be good. I took a longer route than most since I had to go via phpMyAdmin to get an XML dump of my MT data first (since I don’t have shell access to the mysql box, and I can’t get to it from remote hosts). The basic operation was: Work out the naming of Pebble entries (all...

« Previous Entries

logo
Powered by WordPress | Designed by Elegant Themes