-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClastCastException in 1.11.6 by LogLevel Level.ERROR #259
Comments
Hi @JanGoerss, We have tried to reproduce the issue which you faced in our local, but it worked well. We have used all above versions which you mentioned, in our local test. If it does not work, then please do share us the detail steps to reproduce. |
Hi, i created a simple Gradleproject. This project reproduce the error. Use Gradletask "run" Environment: Log of Gradle Task "run"
|
Hi @JanGoerss,
|
Hi, it runs without async, but why shouldn't you be allowed to use async logging (low-latency logging) with splunk. It is an implementation change from 1.11.5 to 1.11.6. private String generateErrorDetail(final LogEvent event) { LogEvent is an interface and has many implementations. Why is the event hard cast to MutableLogEvent in line 275 in Method generateErrorDetail?
|
HI @JanGoerss, We have used MutableLogEvent because we want exception details from parameters when it does not have any information in getThrown() method. And by using its parent, we cannot fetch its parameters. Also, We are open for any suggestion OR PR which can support for your use-case. |
We are running into the same issue after upgrading to version 1.11.6 Kind regards, Martin |
Hi @MartinHeinen, We will look into this issue and will update you and @JanGoerss for the fix. |
Hi @MartinHeinen & @JanGoerss, Please share your results once you test your application. Thank you. |
Hi, i tested with the jar and it works in our application. Thanks |
Hi @JanGoerss, We are still waiting for the response from @MartinHeinen, if it works well then we will plan a minor release post that. Thank you. |
Hi, For us it's not easy to reproduce the issue in Pre-Production, but during our testing we did not run into any issues with the jar you provided and the exception did not occur again so far. Thanks |
Hi @MartinHeinen, Thanks. |
Hi @JanGoerss & @MartinHeinen, Please update your library to this version. Thank you. |
Hi,
logging in 1.11.6 throw a ClassCastException and every error log is not sent over HttpEventCollector to SplunkServer
java.lang.ClassCastException: class org.apache.logging.log4j.core.impl.Log4jLogEvent cannot be cast to class org.apache.logging.log4j.core.impl.MutableLogEvent (org.apache.logging.log4j.core.impl.Log4jLogEvent and org.apache.logging.log4j.core.impl.MutableLogEvent are in unnamed module of loader 'app')
at com.splunk.logging.HttpEventCollectorLog4jAppender.generateErrorDetail(HttpEventCollectorLog4jAppender.java:275)
Environment:
Java 17
Splunklogging 1.11.6
log4j 2.17.2
slf4j 1.7.36
The text was updated successfully, but these errors were encountered: