-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
DirectWriteRolloverStrategy can't create log files on Windows Log4j2 2.17.2 #1645
Labels
Milestone
Comments
jvz
added
bug
Incorrect, unexpected, or unintended behavior of existing code
runtime
Specific to the runtime environment
appenders
Affects one or more Appender plugins
labels
Oct 15, 2023
is there any ETA on this? |
Is it still reproducible in version 2.21.1? |
@ppkarwasz yes, exception the same with 2.21.1
|
Thank you for the report. This is clearly a bug that we'll fix in the next release. In the mean time, you can work around it by using an absolute path in |
ppkarwasz
added a commit
to ppkarwasz/logging-log4j2
that referenced
this issue
Dec 20, 2023
This PR fixes a `NullPointerException` in `RollingFileManager#createParentDir`. Closes apache#1645
ppkarwasz
added a commit
that referenced
this issue
Dec 21, 2023
This PR fixes a `NullPointerException` in `RollingFileManager#createParentDir`. Closes #1645
dongjoon-hyun
pushed a commit
to apache/spark
that referenced
this issue
Jan 11, 2024
### What changes were proposed in this pull request? This pr aims to upgrade log4j2 from 2.22.0 to 2.22.1. ### Why are the changes needed? The new version contains some bug fixes: - [Fix NPE in CloseableThreadContext](apache/logging-log4j2#1426) - [Fix NPE in RollingFileManager](apache/logging-log4j2#1645) And 2.22.1 is generated using JDK 17, the full release note as follows: - https://github.com/apache/logging-log4j2/releases/tag/rel%2F2.22.1 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #44682 from LuciferYang/SPARK-46672. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
My application is running on SpringBoot 2.7.13. I have an appender defined like
Once I start the application the exception is printed in console and file are not created.
Everything works with DefaultRolloverStrategy and files are created as expected
Configuration
Version: 2.17.2
Operating system: Windows 10
JDK: JDK 17
Logs
Reproduction
Errors appears right after application start. It happens during creation a directory for logs
However if we replace
file.getParentFile()
withfile.getAbsoluteFile().getParentFile()
it returns a correct non null FileThe text was updated successfully, but these errors were encountered: