mindscapehq / raygun4java Goto Github PK
View Code? Open in Web Editor NEWJava SDK for the Raygun service
Home Page: https://raygun.com
License: MIT License
Java SDK for the Raygun service
Home Page: https://raygun.com
License: MIT License
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?
Similar to this guy in raygun4js: https://github.com/MindscapeHQ/raygun4js#onbeforesend
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!
Sometimes when the user operation system language is zh-CN,the Machine could not be showed correctly.
like this : Machine name ����-PC
This line is spamming our logs :( Which data is recorded should be a setting so we can turn them off.
We can't set it, nor can we ignore the log because it's logged by Raygun4Java, unless we set the loglevel to ERROR...
Is there a reason why SetRequestDetails( servletRequest ) is commented out in RaygunClient.java?
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.
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).
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.
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.
Given the following url http://domain.com/file.txt?name=
the RaygunRequestMessage.QueryStringToMap
will throw an ArrayIndexOutOfBoundException
.
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
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)
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.
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)
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.
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.
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...
on a headless server
windowBoundsWidth = GraphicsEnvironment
.getLocalGraphicsEnvironment().getMaximumWindowBounds().width;
causes an issue due to X11 not existing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.