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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With