Exception
文章平均质量分 65
白衣若尘
打豆豆可以吗?return false; 小白兔吃大灰狼,谁打的豆豆?
展开
-
log4g2 ERROR Appenders contains an invalid element or attribute “appender“。 Caused by:strict
1. 描述log4j2 的xml配置有两种风格(concise and strict:简洁和严格),使用strict风格时,启动项目报错。ERROR Appenders contains an invalid element or attribute “appender”。配置:<configuration status="warn" monitorInterval="30"> …………………………………… <!-- 日志输出:ConsoleAppen原创 2022-03-21 18:21:55 · 3505 阅读 · 0 评论 -
log4j2 AsyncLogger错误 NoClassDefFoundError: com/lmax/disruptor/EventFactory
1. 描述log4j2 配置AsyncLogger后,启动项目报错。main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.async.AsyncLoggerConfig for element AsyncLogger: java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: com/lmax/disruptor/Event原创 2022-03-18 19:25:59 · 5880 阅读 · 0 评论 -
logback ERROR SizeAndTimeBasedFNATP & DefaultTimeBasedFileNamingAndTriggeringPolicy
1. 描述项目启动,Logback配置出错(FileNamePattern格式和timeBasedFileNamingAndTriggeringPolicy没对应上)。环境IDE: 2021.3spring boot: 2.5.6 (spring-boot-starter-logging: 2.5.6 --- logback-classic: 1.2.6)配置1: <FileNamePattern>${LOG_PATH}_%d{yyyy-MM-dd}.part_%i.l原创 2022-03-17 15:01:52 · 3505 阅读 · 0 评论 -
logback Appender [FILE_ALL] failed to append. java.lang.NullPointerException
1. 描述logback 日志文件大小超出maxFileSize值后,没创建新日志文件,抛出NullPointerException。配置:<appender name="FILE_ALL" class="ch.qos.logback.core.rolling.RollingFileAppender"> <!-- 滚动策略: TimeBasedRollingPolicy按时间滚动;SizeAndTimeBasedRollingPolicy按日期归档文件,但同时原创 2022-03-17 06:30:00 · 1863 阅读 · 0 评论 -
logback 设置的totalSizeCap属性没效果
1. 描述totalSizeCap属性设置了, 但没有效果,文件总大小超出后没进行删除旧文件。配置: <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <FileNamePattern>${LOG_PATH}_error.%d{yyyy-MM-dd}.%i.log</FileNamePattern> &原创 2022-03-16 20:41:31 · 4302 阅读 · 0 评论 -
The following method did not exist: org.springframework.plugin.core.PluginRegistry.getPluginFor
场景描述springboot 集成 springfox的 swagger 3 功能。环境IDE: 2021.3spring boot: 2.1.7springfox: 3.0.0问题启动项目时,异常:The following method did not exist: org.springframework.plugin.core.PluginRegistry.getPluginFor……。Error starting ApplicationContext. To displ原创 2022-02-25 16:59:15 · 2226 阅读 · 0 评论 -
Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is NullPointerException
场景描述springboot 集成 springfox的 swagger 3 功能。环境:IDE: 2021.3spring boot: 2.6.3springfox: 3.0.0问题启动项目时,异常:Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException。Error starting ApplicationContext.原创 2022-02-25 16:51:08 · 2215 阅读 · 0 评论 -
注解校验:ConstraintDefinitionException: HV000073: Parameters starting with ‘valid‘ are not allowed
自定义注解进行校验。异常:javax.validation.ConstraintDefinitionException: HV000073: Parameters starting with 'valid' are not allowed in a constraint(不允许使用以“valid”开头的属性参数)。异常:javax.validation.ConstraintDefinitionException: HV000074(缺失 groups() 和 payload() )。原创 2020-09-11 15:04:38 · 1407 阅读 · 0 评论