-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
LogFactory
and LogFactoryService
was unintentionally initialized at build time
#6711
Comments
@sdeleuze could you take a look at this please? |
@piotrooo Can you please share a repro that uses Spring Boot 3.x? |
@sdeleuze no problem - here you are. If you need something more let me know. |
This is triggered by the dependencies like Exclude the dependency with the code below and remove the
|
@sdeleuze yea one problem solved. This fixes build process. But, still in the runtime I have an exception:
Application runs correctly. Full stack:
|
Ok, I fixed it adding: reflect-config.json[
{
"name": "org.apache.logging.log4j.message.DefaultFlowMessageFactory",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"name": "org.apache.logging.log4j.message.ParameterizedMessageFactory",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"name": "org.apache.poi.ss.formula.udf.IndexedUDFFinder",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
}
] resource-config.json{
"resources": [
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctbookviewf677type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctbookviewsb864type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctborderf935type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctborderpre497type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctcolord2c2type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctfill550ctype.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctfont14d8type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctfontname2dc3type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctfontschemebf5dtype.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctfontsizeb3b9type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctintproperty32c3type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctpatternfill7452type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctproperties2c18type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctproperties3f10type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctsheets49fdtype.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctsst44f3type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctstylesheet4257type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctworkbook83c3type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctworkbookpr03a5type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/ctxf97f7type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/index.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/properties288cdoctype.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/propertiesee84doctype.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/sstf81fdoctype.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/stborderid1a80type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/stcellstylexfid70c7type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/stfillida097type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/stfontid9d63type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/stfontschemef36dtype.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/stnumfmtid76fbtype.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/stpatterntype7939type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/stxstring1198type.xsb\\E"
},
{
"pattern": "\\Qschemaorg_apache_xmlbeans/system/sD023D6490046BA0250A839A9AD24C443/stylesheet5d8bdoctype.xsb\\E"
}
],
"bundles": [
{
"name": "org.apache.xmlbeans.impl.regex.message"
}
]
} But new error occurs:
|
As far as I know, Log4j2 does not support native images. |
I'm trying to use a
org.apache.poi:poi-ooxml:5.2.3
library in the Spring Boot 3.1 application.I receive a following errors:
I was tried to follow spring-attic/spring-native#434 steps, but when I set:
build was successful but at the runtime I received a following exception:
The application is super plain and easy. What can I do to fix this issue?
The text was updated successfully, but these errors were encountered: