René's URL Explorer Experiment


Title: aws-lambda-java-log4j2 1.6.3 regression breaks logging · Issue #612 · aws/aws-lambda-java-libs · GitHub

Open Graph Title: aws-lambda-java-log4j2 1.6.3 regression breaks logging · Issue #612 · aws/aws-lambda-java-libs

X Title: aws-lambda-java-log4j2 1.6.3 regression breaks logging · Issue #612 · aws/aws-lambda-java-libs

Description: Problem Log4j2 logging no longer works after upgrading to com.amazonaws:aws-lambda-java-log4j2:1.6.3. Log4j prints the error ERROR Error processing element Lambda ([Appenders: null]): CLASS_NOT_FOUND to stderr (which is not logged by lam...

Open Graph Description: Problem Log4j2 logging no longer works after upgrading to com.amazonaws:aws-lambda-java-log4j2:1.6.3. Log4j prints the error ERROR Error processing element Lambda ([Appenders: null]): CLASS_NOT_FOU...

X Description: Problem Log4j2 logging no longer works after upgrading to com.amazonaws:aws-lambda-java-log4j2:1.6.3. Log4j prints the error ERROR Error processing element Lambda ([Appenders: null]): CLASS_NOT_FOU...

Opengraph URL: https://github.com/aws/aws-lambda-java-libs/issues/612

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"aws-lambda-java-log4j2 1.6.3 regression breaks logging","articleBody":"### Problem\nLog4j2 logging no longer works after upgrading to `com.amazonaws:aws-lambda-java-log4j2:1.6.3`.  \n\nLog4j prints the error `ERROR Error processing element Lambda ([Appenders: null]): CLASS_NOT_FOUND` to stderr (which is not logged by lambda).\n\n### Reproduction Steps\n1. Create a new maven project as described below\n2. Execute the code via `mvn package exec:java -Dexec.mainClass=\"bug.reproduction.App\"`\n\n#### Reproduction Files\n`./pom.xml`\n```\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003cproject xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n  xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\n  \u003cmodelVersion>4.0.0\u003c/modelVersion>\n\n  \u003cgroupId>bug.reproduction\u003c/groupId>\n  \u003cartifactId>aws-lambda-java-log4j2\u003c/artifactId>\n  \u003cversion>1.0-SNAPSHOT\u003c/version>\n\n  \u003cname>aws-lambda-java-log4j2\u003c/name>\n\n  \u003cproperties>\n    \u003cproject.build.sourceEncoding>UTF-8\u003c/project.build.sourceEncoding>\n    \u003cmaven.compiler.release>17\u003c/maven.compiler.release>\n  \u003c/properties>\n\n  \u003cdependencies>\n    \u003cdependency>\n      \u003cgroupId>com.amazonaws\u003c/groupId>\n      \u003cartifactId>aws-lambda-java-log4j2\u003c/artifactId>\n      \u003cversion>1.6.3\u003c/version> \u003c!-- 1.6.2 works -->\n    \u003c/dependency>\n    \u003cdependency>\n      \u003cgroupId>org.apache.logging.log4j\u003c/groupId>\n      \u003cartifactId>log4j-core\u003c/artifactId>\n      \u003cversion>2.25.4\u003c/version>\n    \u003c/dependency>\n    \u003cdependency>\n      \u003cgroupId>org.apache.logging.log4j\u003c/groupId>\n      \u003cartifactId>log4j-api\u003c/artifactId>\n      \u003cversion>2.25.4\u003c/version>\n    \u003c/dependency>\n    \u003cdependency>\n      \u003cgroupId>org.apache.logging.log4j\u003c/groupId>\n      \u003cartifactId>log4j-layout-template-json\u003c/artifactId>\n      \u003cversion>2.25.4\u003c/version>\n    \u003c/dependency>\n  \u003c/dependencies>\n\n  \u003cbuild>\n    \u003cpluginManagement>\n      \u003cplugins>\n        \u003cplugin>\n          \u003cartifactId>maven-clean-plugin\u003c/artifactId>\n          \u003cversion>3.4.0\u003c/version>\n        \u003c/plugin>\n        \u003cplugin>\n          \u003cartifactId>maven-resources-plugin\u003c/artifactId>\n          \u003cversion>3.3.1\u003c/version>\n        \u003c/plugin>\n        \u003cplugin>\n          \u003cartifactId>maven-compiler-plugin\u003c/artifactId>\n          \u003cversion>3.13.0\u003c/version>\n        \u003c/plugin>\n        \u003cplugin>\n          \u003cartifactId>maven-jar-plugin\u003c/artifactId>\n          \u003cversion>3.4.2\u003c/version>\n          \u003cconfiguration>\n            \u003carchive>\n              \u003cmanifest>\n                \u003cmainClass>bug.reproduction.App\u003c/mainClass>\n              \u003c/manifest>\n            \u003c/archive>\n          \u003c/configuration>\n        \u003c/plugin>\n      \u003c/plugins>\n    \u003c/pluginManagement>\n  \u003c/build>\n\u003c/project>\n```\n\n`./src/main/java/bug/reproduction/App.java`\n```\npackage bug.reproduction;\n\nimport org.apache.logging.log4j.LogManager;\n\n/**\n * Hello world!\n */\npublic class App {\n    public static void main(String[] args) {\n        System.out.println(\"Should print test below\");\n        LogManager.getLogger(\"foo\").info(\"test\");\n        System.out.println(\"Should have print test above\");\n    }\n}\n```\n\n`./src/main/resources/log4j2.xml`\n```\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003cConfiguration>\n    \u003cAppenders>\n        \u003cLambda name=\"Console\">\n            \u003cPatternLayout pattern=\"%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1} - %m%n\"/>\n        \u003c/Lambda>\n    \u003c/Appenders>\n    \u003cLoggers>\n        \u003cRoot level=\"INFO\">\n            \u003cAppenderRef ref=\"Console\"/>\n        \u003c/Root>\n    \u003c/Loggers>\n\u003c/Configuration>\n```\n\n#### Expected Output\n\n```\n[INFO] Scanning for projects...\n[INFO]\n[INFO] --------------\u003c bug.reproduction:aws-lambda-java-log4j2 >---------------\n[INFO] Building aws-lambda-java-log4j2 1.0-SNAPSHOT\n[INFO]   from pom.xml\n[INFO] --------------------------------[ jar ]---------------------------------\n[INFO]\n[INFO] --- resources:3.3.1:resources (default-resources) @ aws-lambda-java-log4j2 ---\n[INFO] Copying 1 resource from src/main/resources to target/classes\n[INFO]\n[INFO] --- compiler:3.13.0:compile (default-compile) @ aws-lambda-java-log4j2 ---\n[INFO] Nothing to compile - all classes are up to date.\n[INFO]\n[INFO] --- resources:3.3.1:testResources (default-testResources) @ aws-lambda-java-log4j2 ---\n[INFO] skip non existing resourceDirectory /Users/bnd/reproduction/aws-lambda-java-log4j2/src/test/resources\n[INFO]\n[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ aws-lambda-java-log4j2 ---\n[INFO] No sources to compile\n[INFO]\n[INFO] --- surefire:3.5.4:test (default-test) @ aws-lambda-java-log4j2 ---\n[INFO] No tests to run.\n[INFO]\n[INFO] --- jar:3.4.2:jar (default-jar) @ aws-lambda-java-log4j2 ---\n[INFO]\n[INFO] --- exec:3.6.3:java (default-cli) @ aws-lambda-java-log4j2 ---\nShould print test below\n2026-05-19 12:18:10 INFO  foo - test\nShould have print test above\n[INFO] ------------------------------------------------------------------------\n[INFO] BUILD SUCCESS\n[INFO] ------------------------------------------------------------------------\n[INFO] Total time:  0.776 s\n[INFO] Finished at: 2026-05-19T12:18:10-04:00\n[INFO] ------------------------------------------------------------------------\n```\n\nTo reproduce expected output, update line 21 in `./pom.xml` to `\u003cversion>1.6.2\u003c/version>`\n\n#### Actual Output\n```\n[INFO] Scanning for projects...\n[INFO]\n[INFO] --------------\u003c bug.reproduction:aws-lambda-java-log4j2 >---------------\n[INFO] Building aws-lambda-java-log4j2 1.0-SNAPSHOT\n[INFO]   from pom.xml\n[INFO] --------------------------------[ jar ]---------------------------------\n[INFO]\n[INFO] --- resources:3.3.1:resources (default-resources) @ aws-lambda-java-log4j2 ---\n[INFO] Copying 1 resource from src/main/resources to target/classes\n[INFO]\n[INFO] --- compiler:3.13.0:compile (default-compile) @ aws-lambda-java-log4j2 ---\n[INFO] Nothing to compile - all classes are up to date.\n[INFO]\n[INFO] --- resources:3.3.1:testResources (default-testResources) @ aws-lambda-java-log4j2 ---\n[INFO] skip non existing resourceDirectory /Users/bnd/reproduction/aws-lambda-java-log4j2/src/test/resources\n[INFO]\n[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ aws-lambda-java-log4j2 ---\n[INFO] No sources to compile\n[INFO]\n[INFO] --- surefire:3.5.4:test (default-test) @ aws-lambda-java-log4j2 ---\n[INFO] No tests to run.\n[INFO]\n[INFO] --- jar:3.4.2:jar (default-jar) @ aws-lambda-java-log4j2 ---\n[INFO] Building jar: /Users/bnd/reproduction/aws-lambda-java-log4j2/target/aws-lambda-java-log4j2-1.0-SNAPSHOT.jar\n[INFO]\n[INFO] --- exec:3.6.3:java (default-cli) @ aws-lambda-java-log4j2 ---\nShould print test below\n2026-05-19T16:19:47.710360Z bug.reproduction.App.main() ERROR Error processing element Lambda ([Appenders: null]): CLASS_NOT_FOUND\n2026-05-19T16:19:47.720281Z bug.reproduction.App.main() ERROR Unable to locate appender \"Console\" for logger config \"root\"\nShould have print test above\n[INFO] ------------------------------------------------------------------------\n[INFO] BUILD SUCCESS\n[INFO] ------------------------------------------------------------------------\n[INFO] Total time:  1.038 s\n[INFO] Finished at: 2026-05-19T12:19:47-04:00\n[INFO] ------------------------------------------------------------------------\n```\n\nNote that the two `bug.reproduction.App.main() ERROR` lines are written to stderr, as evidenced by running it while redirecting stderr to `/dev/null` via `mvn package exec:java -Dexec.mainClass=\"bug.reproduction.App\" 2> /dev/null`\n\n","author":{"url":"https://github.com/brandondahler","@type":"Person","name":"brandondahler"},"datePublished":"2026-05-19T16:21:10Z","url":"https://github.com/aws/aws-lambda-java-libs/issues/612"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4669bff7-521b-ce8a-2b4f-7d558ae8ed98
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id821C:1F8B56:3CE346:55F360:6AFDB74E
html-safe-nonce23cf71bc0b711d71ae9976a3533f185851b5528b70168feec9db2dd71d9c4d52
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjFDOjFGOEI1NjozQ0UzNDY6NTVGMzYwOjZBRkRCNzRFIiwidmlzaXRvcl9pZCI6IjI2MTYxODI4MzgzOTMzODMxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb82e27707a26b8552b16b3487edebfcbd5934bab203a15cec66c9afebdeae61b
hovercard-subject-tagissue:4479103765
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aws/aws-lambda-java-libs/612/issue_layout
twitter:imagehttps://opengraph.githubassets.com/895787c89b9a59c3ec22347941ce77fe7b6d8de3bc7d871f8b6644f37024c483/aws/aws-lambda-java-libs/issues/612
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/895787c89b9a59c3ec22347941ce77fe7b6d8de3bc7d871f8b6644f37024c483/aws/aws-lambda-java-libs/issues/612
og:image:altProblem Log4j2 logging no longer works after upgrading to com.amazonaws:aws-lambda-java-log4j2:1.6.3. Log4j prints the error ERROR Error processing element Lambda ([Appenders: null]): CLASS_NOT_FOU...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrandondahler
hostnamegithub.com
expected-hostnamegithub.com
None8309f07eb60a4237a657068c83d0bb57be4c7e02937f5e9933126f4bd596aac4
turbo-cache-controlno-preview
go-importgithub.com/aws/aws-lambda-java-libs git https://github.com/aws/aws-lambda-java-libs.git
octolytics-dimension-user_id2232217
octolytics-dimension-user_loginaws
octolytics-dimension-repository_id35844242
octolytics-dimension-repository_nwoaws/aws-lambda-java-libs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id35844242
octolytics-dimension-repository_network_root_nwoaws/aws-lambda-java-libs
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2f7154d847f1ddc5baa83b109a3e1d924605e2a3
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/aws/aws-lambda-java-libs/issues/612#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Faws%2Faws-lambda-java-libs%2Fissues%2F612
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Faws%2Faws-lambda-java-libs%2Fissues%2F612
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=aws%2Faws-lambda-java-libs
Reloadhttps://github.com/aws/aws-lambda-java-libs/issues/612
Reloadhttps://github.com/aws/aws-lambda-java-libs/issues/612
Reloadhttps://github.com/aws/aws-lambda-java-libs/issues/612
awshttps://github.com/aws
aws-lambda-java-libshttps://github.com/aws/aws-lambda-java-libs
Codehttps://github.com/aws/aws-lambda-java-libs
Issues46 (46)https://github.com/aws/aws-lambda-java-libs/issues
Pull requests27 (27)https://github.com/aws/aws-lambda-java-libs/pulls
Discussionshttps://github.com/aws/aws-lambda-java-libs/discussions
Actionshttps://github.com/aws/aws-lambda-java-libs/actions
Projectshttps://github.com/aws/aws-lambda-java-libs/projects
Security and qualityhttps://github.com/aws/aws-lambda-java-libs/security
Insightshttps://github.com/aws/aws-lambda-java-libs/insights
https://github.com/aws/aws-lambda-java-libs
New issuehttps://github.com/login?return_to=https://github.com/aws/aws-lambda-java-libs/issues/612
New issuehttps://github.com/login?return_to=https://github.com/aws/aws-lambda-java-libs/issues/612
aws-lambda-java-log4j2 1.6.3 regression breaks logginghttps://github.com/aws/aws-lambda-java-libs/issues/612#top
https://github.com/brandondahler
brandondahlerhttps://github.com/brandondahler
on May 19, 2026https://github.com/aws/aws-lambda-java-libs/issues/612#issue-4479103765
https://github.com/darklight3it
darklight3ithttps://github.com/darklight3it
on May 19, 2026https://github.com/aws/aws-lambda-java-libs/issues/612#issuecomment-4489873617
https://github.com/darklight3it
darklight3ithttps://github.com/darklight3it
on May 19, 2026https://github.com/aws/aws-lambda-java-libs/issues/612#issuecomment-4490150225
https://github.com/darklight3it
darklight3ithttps://github.com/darklight3it
on May 19, 2026https://github.com/aws/aws-lambda-java-libs/issues/612#issuecomment-4492289740
https://maven.apache.org/plugins/maven-compiler-plugin-4.x/examples/annotation-processor.htmlhttps://maven.apache.org/plugins/maven-compiler-plugin-4.x/examples/annotation-processor.html
@brandondahlerhttps://github.com/brandondahler
https://github.com/darklight3it
darklight3ithttps://github.com/darklight3it
on May 20, 2026https://github.com/aws/aws-lambda-java-libs/issues/612#issuecomment-4497360265
darklight3ithttps://github.com/darklight3it
completedhttps://github.com/aws/aws-lambda-java-libs/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 20, 2026https://github.com/aws/aws-lambda-java-libs/issues/612#event-25751659357
Sign up for freehttps://github.com/signup?return_to=https://github.com/aws/aws-lambda-java-libs/issues/612
Sign in to commenthttps://github.com/login?return_to=https://github.com/aws/aws-lambda-java-libs/issues/612
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.