JSP example not correct
Viren Pushpanayagam
Posted on
Oct 10 2013
The example found at https://github.com/MindscapeHQ/raygun4java is in correct. Even the import "mindscape.raygun4java.servlet.RaygunClient" does not exist in any of the jars mentioned.
John-Daniel Trask
Raygun
Posted on
Oct 10 2013
Thanks for bringing this to our attention. The Raygun4Java is currently undergoing a major refactoring and this issue and others will be resolved shortly. We will reply here to let you know when the provider has been updated and a new version is available from Maven Central.
Regards,
Callum
John-Daniel Trask
Raygun
Posted on
Oct 14 2013
Hi Viren,
I can report that Raygun4Java has now been updated, and the new version is available from the master branch in the GitHub repository. The Maven package has also been released, and will be available once Central refreshs (sometime in the next 24 hours).
Make sure to grab the new 1.2.4 version from either of these sources. As before you will need core-1.2.4.jar and webprovider-1.2.4.jar. The GitHub repository documentation has been updated with instructions on how to use it - generally you'll need to instantiate a RaygunServletClient in your error handler. If you have any further issues us know.
Viren Pushpanayagam
Posted on
Oct 14 2013
Getting the below error. I am using this inside a OSGi container.
java.lang.NoClassDefFoundError: com/sun/management/OperatingSystemMXBean
at com.mindscapehq.raygun4java.core.messages.RaygunEnvironmentMessage.<init>(RaygunEnvironmentMessage.java:30)
at com.mindscapehq.raygun4java.core.RaygunMessageBuilder.SetEnvironmentDetails(RaygunMessageBuilder.java:50)
at com.mindscapehq.raygun4java.webprovider.RaygunServletClient.BuildServletMessage(RaygunServletClient.java:34)
at com.mindscapehq.raygun4java.webprovider.RaygunServletClient.Send(RaygunServletClient.java:27)
John-Daniel Trask
Raygun
Posted on
Oct 15 2013
Ah I see - that package is an internal one and it seems to be available in most but not all runtime environments. A fix has been applied that replaces it with what should be a fully cross-platform implementation. You can grab the latest raygun4java-1.2.5 version from GitHub with the changes.
Regards,
Callum