Giter Site home page Giter Site logo

mindscapehq / raygun4java Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 21.0 1.14 MB

Java SDK for the Raygun service

Home Page: https://raygun.com

License: MIT License

Java 99.55% Scala 0.45%
crash-reporting crash-reporting-tool error-handling error-monitoring gae raygun servlet

raygun4java's People

Contributors

arjenvanderende avatar bob-jzhao avatar cmdrkeen avatar fundead avatar jamiepenney avatar miensol avatar panosnb avatar proredcat avatar quantumnightmare avatar redj4y avatar sstarcher avatar sumitramanga avatar tobiasmh avatar whyzar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

raygun4java's Issues

Spammy environment errors when running server side.

I get this error / info on startup:

INFO  Raygun4Java.environment - Couldn't access all environment data. If you are running in GAE or a restricted environment this is expected
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at sun.java2d.HeadlessGraphicsEnvironment.getMaximumWindowBounds(HeadlessGraphicsEnvironment.java:85) ~[na:1.8.0_40]
        at com.mindscapehq.raygun4java.core.messages.RaygunEnvironmentMessage.<init>(RaygunEnvironmentMessage.java:46) ~[read-api-0.0.1-42bc0ed.jar:na]

Indeed there is no X11DISPLAY variable set on my headless servers, that seems like the minority of cases so perhaps be more silent about that case?

bug in Raygunclient sendUnhandled?

Hi guys,
When trying out the RaygunClient (v. 3.0.0) sendUnhandled(Throwable t) It seems like it delegates to the wrong method (send(...) instead of sendUnhandled(...)). When checking the result at raygun.com I don't see the UNHANDLED_EXCEPTION tag either.

br Svante

InetAddress.getLocalHost().getHostName() throws UnkownHostException

java.net.UnknownHostException: ip-172-29-0-123: ip-172-29-0-123
        at java.net.InetAddress.getLocalHost(InetAddress.java:1461)
        at com.mindscapehq.raygun4java.core.RaygunClient.BuildMessage(RaygunClient.java:76)
        at com.mindscapehq.raygun4java.core.RaygunClient.Send(RaygunClient.java:61)
...

Because of this it does not send the message to Raygun. This can be worked around by adding a line to /etc/hosts. Would be great if this worked without this workaround -- our EC2 instances by default are 'incompatible" with the raygun Java client because of this issue.

RaygunServletMessageBuilder throws NPE when no user has been set

When RaygunServletMessageBuilder#SetUser has never been called, the #Build() method throws a NullPointerException when trying to load the user from the nested message's details:

java.lang.NullPointerException
        at com.mindscapehq.raygun4java.core.messages.RaygunMessageDetails.getUser(RaygunMessageDetails.java:61)
        at com.mindscapehq.raygun4java.webprovider.RaygunServletMessageBuilder.Build(RaygunServletMessageBuilder.java:30)
        at com.mindscapehq.raygun4java.webprovider.RaygunServletMessageBuilder.Build(RaygunServletMessageBuilder.java:7)

If the SetUser checks for the user being null, the GetUser should do so as well!

Expose the lower level builder api or similar

For various entirely valid but boring reasons, we can't use the Servlet submitter, what I'd like is an api which was slightly lower level. Something like:

RaygunClient client = whatever.gimmeOne();
// later on
RaygunMessage message = client.buildRaygunMessage(throwable, servletRequest, whateverElse);
// on another thread
client.sendMessage(message)

Add test scope to junit in pom.xml

Currently, the junit dependency in the pom.xml has no scope specified. I believe it should be <scope>test</scope>, otherwise there will be issues like the Maven shade plugin including junit in shaded jars.

Java 11 and ManagementFactory

Quick note: @sfeldkamp just logged a Java 11 issue in my CFML provider (MindscapeHQ/raygun4cfml#34)

It stems from the way how modules work in Java 11+ and it's quite likely that the RG4Java provider would currently experience a similar issue because it's using very similar code to achieve pulling the memory stats.

I'll update this ticket when I've fixed it in RG4CFML.

Plans for a logback appender?

Is there any plans for providing a logback appender to capture exceptions from log messages and send them?

(In previous projects we've used Airbrake, and we also like to emit WARN and ERROR messages (even without an exception), because they're just as critical an an uncaught exception).

Play 2.4 support

When trying to run raygun4java with play 2.4 the following error occurs.

I see that there is a pull request waiting review it which addresses this problem.

#44

Could I suggest that you have branches for the different play versions if you need to support them?

java.lang.IncompatibleClassChangeError: Found class play.api.mvc.Headers, but interface was expected at com.mindscapehq.raygun4java.play2.RaygunPlayScalaRequestMessage.<init>(RaygunPlayScalaRequestMessage.java:19) at com.mindscapehq.raygun4java.play2.RaygunPlayMessageBuilder.SetRequestDetails(RaygunPlayMessageBuilder.java:37) at com.mindscapehq.raygun4java.play2.RaygunPlayClient.BuildServletMessage(RaygunPlayClient.java:115) at com.mindscapehq.raygun4java.play2.RaygunPlayClient.SendAsync(RaygunPlayClient.java:77)

raygun4java-play2 1.6.0 can't be resolved

There is something weird going on with the raygun4java-play2 1.6.0 artifact; SBT fails to resolve it.

In an empty SBT 0.13.7 project, with only the following contents in build.sbt

libraryDependencies += "com.mindscapehq" % "raygun4java-play2" % "1.6.0"

It fails to resolve it with this error message:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.mindscapehq#raygun4java-play2;1.6.0!raygun4java-play2.play2
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

Note that it tries to resolve a file raygun4java-play2.play2 instead of raygun4java-play2.jar. I have no idea why this happens.

Error without Throwable crashes

Is this valid?

I want to send all log messages of level ERROR to raygun but not all have exceptions. Currently RaygunClient.Send requires a Throwable and if it is null it crashes...

Returning null from OnBeforeSend handler sends "null" message

I'm trying out the new OnBeforeSend handler. I noticed that returning null from the handler, which according to the documentation should cancel the send, actually sends the text "null". You can see it by tracing step-by-step in a debugger.

The RaygunClient Post command should just return after the "_onBeforeSend.OnBeforeSend(raygunMessage);" call, if raygunMessage == null.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.