-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
IllegalAccessException when logging internal JDK exception (SunCertPathBuilderException) via log/error
#365
Comments
Hi Juraj, Timbre doesn't do anything too unusual with exceptions. By default, it'll use io.aviso/pretty for exception printing. If you want to rule that out as a possible problem, you could override the default error fn (see the Can the standard Otherwise I'd suggest trying to understand exactly what that error implies. Hope that's of some help! |
Thanks for the suggestion.
Ultimately, it's I'm pretty sure you can do standard things, like calling
|
The reproducer is quite simple.
|
@ptaoussanis just got another customer report log with the same problem. |
@jumarko Hi Juraj, did you try my earlier suggestions to either debug possible underlying causes of Your options seem to be:
Beyond these, I'm not sure what else to recommend.
Could you please be a bit more specific? What do you have in mind for Timbre to do differently here? |
@ptaoussanis thanks for the super-quick answer. I also think that all the users would benefit from having a reliable way of printing stacktraces - it could be another common Exception class that's encapsulated inside and suddenly you get an unexpected error. |
Just to make sure it's clear - standard thing like |
No problem 👍
A generic solution to what, exactly? Until the cause behind this particular Is there a bug in I haven't investigated, so can't speculate - this would need to be debugged properly. In my first message I suggested Googling the If for some reason debugging isn't a possibility for you right now, a 1-line config change [1] should be able to reliably work around the issue. As you mentioned, something like Edit to add example of config change: |
Thaks again, Peter, for the elaborate response. What I was after is this:
Again, this can be trivially reproduced:
Of course it's up to you to decide where this is something that will be beneficial for all timbre users and weight the tradeoffs. |
You're very welcome Juraj, and likewise - I appreciate your thoughts on this, and assistance gathering info 👍 Thanks also for the clear summary, that's helpful.
It's of course possible that this could be a common problem, but I'm reluctant for us to assert that it is common/broad until we've done more to establish an underlying cause. At least from our exchanges on this issue so far (but please correct me if I'm wrong!), it looks like there's still low-hanging fruit available from your end re: diagnosing the underlying cause? This may seem needlessly fussy/stubborn, but I'd like to characterise it as intentional stubbornness ^^ Please keep in mind that maintainers get a lot of questions and reports. So inevitably, maintainers need to try and prioritise/triage where to focus effort. If I'm working on issue 1, it means that I'm not working on issue 2 (or some other new feature/library/etc.). Personally, my hope is to contribute the largest possible net benefit to folks - which means needing to mindfully prioritise focus. Some of the factors that I personally consider include: a. Does the issue potentially cause a significant cost (impact)? Does that objective + heuristic make sense / seem ~reasonable? On this particular issue: since there's so far been only 1 report and since a reliable work-around seems easy - my current plan is to look at this closer when I'm next doing batched work on Timbre (no particular ETA, but probably several months away since I just cut a new release in December). Things that would help bump the priority of this issue relative to others:
1 and 2 are both sensitive to the underlying cause, so shining light on that is my best guess for how someone might be able to assist. Otherwise, will definitely keep this open and take a deeper look myself when I'm next on Timbre. Does that seem reasonable? |
It sounds perfectly reasonable. Thanks a lot for the long answer and for all your contributions to the Clojure community! |
You're very welcome, sorry for the trouble you've run into with this! Cheers :-) |
Will be addressed in a new Timbre release that I'll be pushing shortly, marking as done. |
One of our users reported an error caused by IllegalAccessException thrown from within
log/error
.It looks like the code is trying to do some introspection on the exception object but it doesn't have access to do that.
The text was updated successfully, but these errors were encountered: