Archive by Author
StackHunter v1.2.3 - Exception Details

StackHunter Java Error Tracker v1.2 Released

The latest beta release of our error tracker for Java apps is now available for download.

Read more
StackHunter Beta v1.1

StackHunter Beta 1.1 Available for Download

A new beta release of StackHunter, our Java exception tracker, is now available for download. StackHunter notifies you when your Java apps fail.  It sends out email alerts for uncaught exceptions and provides a dashboard for viewing all your exceptions (plus their associated HTTP request, cookies, etc.) in one place. Download You can pick up […]

Read more
Convert Java Objects to String With the Iterator Pattern

Convert Java Objects to String With the Iterator Pattern

The visitor pattern often comes to mind when you need to operate on a graph of objects (like JSON, XML, or Java beans). Unfortunately, the visitor pattern uses call backs which are difficult to control from the calling code.  For example, it’s not easy to conditionally skip a branch with all its child branches and leaves […]

Read more
Ditch Container-Managed Security To Create Portable Web Apps

Ditch Container-Managed Security To Create Portable Web Apps

Do your web apps need to run in the servlet containers from different vendors?  How do you manage their vendor specific security settings?  I recently ran into this exact problem while developing StackHunter.  Like me, you probably started with container-managed security as you have many times before. The pain probably started after you tried deploying […]

Read more
Stack Hunter Screenshots

Stack Hunter Screenshots

Here are a few screenshots of the Java exception tracker I’m building.  Please let me know what you think (good, bad, or otherwise).

Read more
How to Encode Special Characters in Java's URI Class

How to Encode Special Characters in Java’s URI Class

You would think adding query parameters with special characters to a URI would be easy in Java, but you’d be wrong.  The java.net.URI class tries to do some URL encoding, but runs into trouble with characters like ampersands, question marks, and slashes.  Here’s a quick URI workaround that doesn’t rely on third-party libraries.

Read more
Optimizing MySQL Queries with Spring's JdbcTemplate

Optimizing MySQL Queries with Spring’s JdbcTemplate

Last week I migrated Stack Hunter’s back-end from MongoDB to MySQL.  (There was no problem MongoDB, it’s just easier for most users to connect to their existing MySQL database than install something new.)  In the process I spent some time optimizing the new database queries and indexes to make things snappy.  I started by loading […]

Read more
5 Ways to Handle HTTP Server 500 Errors

5 Ways to Handle HTTP Server 500 Errors

How are you handling exceptions in your web applications?  Does your team have a strategy or do you just deal with failures as they come up?  If you’re like most development teams, you just deal.  Whenever something breaks, it’s an emergency.  Customer runs into a problem, you get called in.  You dig through the logs […]

Read more
How To Build Template Driven Java Websites with FreeMarker and RESTEasy

How To Build Template Driven Java Websites with FreeMarker and RESTEasy

Last week I wrote about why you should switch to a templating engine from Java Server Pages. This week I’ll take it a step further and show you how to use FreeMarker, along with Bootstrap and RESTEasy, to create truly template driven websites. By adding a thin layer on top of FreeMarker, you’ll be able […]

Read more
10 Reasons to Replace Your JSPs With FreeMarker Templates

10 Reasons to Replace Your JSPs With FreeMarker Templates

Still using Java Server Pages?  I was too, but a few years ago I ditched them and haven’t looked back since.  JSPs are a fine concept, but they take the joy out of web development.  For me, it was the little things, like having to breakup my page templates into separate files: header.jsp and footer.jsp, […]

Read more