Enterprise Java

Free eBook: Solving Java Application Errors in Production

What does it take to build an informed error handling workflow?

Production exception handling is a dark science. Once your code gets out to production, any minor imperfection or glitch can translate to millions of log events. Especially if you’re using exceptions as part of the control flow.

It’s the least explored subject matter, with the largest impact on how your application behaves – And the dark patterns used to handle and solve the errors it produces are quite unpleasant.

That is why we felt the urgency to explore this issue where operations and developers meet. In this eBook, we present data gathered from over 600,000 Java projects, and a 1,000 production applications generating over 1 Billion events, with the new knowledge that it encouraged us to create.

Chapter outline

1. Keep it Actionable: What’s the Purpose of Using Exceptions?

Let’s break some myths. Most developers ignore most exceptions, and exceptions are not that exceptional after all. This chapter covers practical tips for producing meaningful and actionable exceptions.

2. Source Code Crunch: Lessons from analyzing over 600,000 Java projects

An overview of exception handling in over 600,000 Java projects on Github and Sourceforge. In this chapter you’ll see data about how exceptions are actually used (and misused).

3. Production Data Crunch: 1,000 Java Applications, 1 Billion Logged Errors

Now it’s time to see what happens in production. This chapter introduces the Pareto logging principle showing that 97% of logged errors originate from 3% of the unique events.

4. Know Your Enemy: The Top 10 Exceptions Types in Production

In this chapter we dive into the most common exceptions in production, their frequency, and possible solution strategies. The infamous —NullPointerException is obviously #1.

The full guide is now available for download, check it out.

Alex Zhitnitsky

Alex is an engineer working with OverOps on a mission to help Java and Scala developers solve bugs in production and rid the world of buggy software. Passionate about all things tech, he is also the co-founder & lead of GDG Haifa, a local developer group. Alex holds a B.Sc from the Technion, Israel's Institute of Technology.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button