Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatic Java Error Reporting Systems

Does anyone know of a system for automatic error reporting in java? We have a server product that is installed on client servers. The idea is that our server would phone home with the details of an error to one of our servers, which then enters a bug in our bug tracker. Preferable, this would happen over http. It wouldn't happen for all exceptions, just the more serious and any that are not otherwise handled.

I'm trying to avoid rolling my own. We'll catch the exceptions ourselves, but I'm hoping this system would handle as much as possible between exception handler and the bug tracker back home.

like image 252
sblundy Avatar asked Oct 14 '08 18:10

sblundy


People also ask

How do you report errors in Java?

You can send error reports to Error Reporting from Java applications by using the Error Reporting package for Java. Error Reporting is integrated with some Google Cloud services, such as App Engine, Compute Engine, and Google Kubernetes Engine.

What is an Automated error?

An automation error could occur when you are referring to a workbook or worksheet via a variable, but the variable is no longer active. Make sure any object variables that you are referring to in your code are still valid when you call the property and methods that you are controlling them with.

Can errors be handled in Java?

Recovering from Error is not possible. We can recover from exceptions by either using try-catch block or throwing exceptions back to the caller. All errors in java are unchecked type. Exceptions include both checked as well as unchecked type.

What are errors in Java?

An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions. The ThreadDeath error, though a "normal" condition, is also a subclass of Error because most applications should not try to catch it.


2 Answers

Not conventional, but maybe you could use Log4J appenders to do it.

The SocketAppender allows you to send an event to a remote a log server. You can also communicate via mail using SMTPAppender (a little tricky but easy to implement). I don't know if there is any other appender to communicate with the server via HTTP (you could even implement it if needed, I suppose it is pretty easy).

Lets see if other users at stackoverflow have a better idea.

like image 151
Guido Avatar answered Sep 22 '22 17:09

Guido


The idea is that our server would phone home with the details of an error to one of our servers, which then enters a bug in our bug tracker.

Have a look at Ctrlflow Automated Error Reporting, which is a fairly new error reporting tool. It is optimized for Java and Eclipse/OSGI and comes with several clients (for your server product the Logback or Log4J client would likely be a good fit), which send error reports home to a central server.

The server then automatically filters and aggregates the incoming error reports. The server synchronizes itself with your bug tracker and can automatically open new bugs. It also offers dashboards and digest mails sent at regular intervals to your developers.

And its free for small projects.

like image 41
Andreas Sewe Avatar answered Sep 21 '22 17:09

Andreas Sewe