После обновления Spring Boot 3.4.0 я начал получать эту ошибку:
12:54:11.255 [main] ERROR org.springframework.boot.SpringApplication -- Application run failed
java.lang.NoSuchFieldError: Class org.springframework.util.SystemPropertyUtils does not have member field 'java.lang.Character ESCAPE_CHARACTER'
at org.springframework.boot.context.properties.bind.PropertySourcesPlaceholdersResolver.(PropertySourcesPlaceholdersResolver.java:51)
at org.springframework.boot.context.properties.bind.PropertySourcesPlaceholdersResolver.(PropertySourcesPlaceholdersResolver.java:41)
at org.springframework.boot.context.properties.bind.Binder.get(Binder.java:537)
at org.springframework.boot.context.properties.bind.Binder.get(Binder.java:523)
at org.springframework.boot.context.config.ConfigDataEnvironment.(ConfigDataEnvironment.java:141)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.getConfigDataEnvironment(ConfigDataEnvironmentPostProcessor.java:101)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:96)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:89)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEnvironmentPreparedEvent(EnvironmentPostProcessorApplicationListener.java:132)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEvent(EnvironmentPostProcessorApplicationListener.java:115)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:136)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:81)
at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:64)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:112)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:63)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:353)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
at com.evry.fs.lending.ecp.batchreference.batch.AnalysisApplication.main(AnalysisApplication.java:17)
at com.evry.fs.lending.ecp.batchreference.batch.EmbeddedServer.main(EmbeddedServer.java:13)
Exception in thread "main" java.lang.IllegalStateException: java.lang.NoSuchFieldError: Class org.springframework.util.SystemPropertyUtils does not have member field 'java.lang.Character ESCAPE_CHARACTER'
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:823)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:328)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
at com.evry.fs.lending.ecp.batchreference.batch.AnalysisApplication.main(AnalysisApplication.java:17)
at com.evry.fs.lending.ecp.batchreference.batch.EmbeddedServer.main(EmbeddedServer.java:13)
Caused by: java.lang.NoSuchFieldError: Class org.springframework.util.SystemPropertyUtils does not have member field 'java.lang.Character ESCAPE_CHARACTER'
at org.springframework.boot.context.properties.bind.PropertySourcesPlaceholdersResolver.(PropertySourcesPlaceholdersResolver.java:51)
at org.springframework.boot.context.properties.bind.PropertySourcesPlaceholdersResolver.(PropertySourcesPlaceholdersResolver.java:41)
at org.springframework.boot.context.properties.bind.Binder.get(Binder.java:537)
at org.springframework.boot.context.properties.bind.Binder.get(Binder.java:523)
at org.springframework.boot.context.config.ConfigDataEnvironment.(ConfigDataEnvironment.java:141)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.getConfigDataEnvironment(ConfigDataEnvironmentPostProcessor.java:101)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:96)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:89)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEnvironmentPreparedEvent(EnvironmentPostProcessorApplicationListener.java:132)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEvent(EnvironmentPostProcessorApplicationListener.java:115)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:136)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:81)
at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:64)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:112)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:63)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:353)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
... 4 more
Disconnected from the target VM, address: '127.0.0.1:56343', transport: 'socket'
Spring пытается получить доступ к полю ESCAPE_CHARACTER в классе SystemPropertyUtils. Но этого поля не существует.
Как я понял, между версиями библиотек Spring есть несоответствие, но между какими именно не могу разобраться. Вот мой ПОМ.
4.0.0
com.jsf.fem
custom-parent-pom
6.2.4
com.jsf.fem
jsf-batch
1.0.13-SNAPSHOT
jar
JSF-BATCH-PROCESSING
batch-processing
UTF-8
UTF-8
1.0.2
2.10.1
2.2.0
2.18.2
5.0.5
3.4.0
cc47b1079128a170a30a4666e3d6310ed59d1e7dd3b8736b73a2b7c6
org.springframework.boot
spring-boot-dependencies
${spring.boot.version}
pom
import
com.jayway.jsonpath
json-path
test
2.9.0
com.github.ulisesbocchio
jasypt-spring-boot
3.0.5
com.lls.liability.break
break-jinja-renderer
${break.jinja.rederer.version}
org.yaml
snakeyaml
2.3
break-rest-common-client-restesb
com.lls.fs.break
${break.rest.common.version}
break-rest-common-responses
com.lls.fs.break
${break.rest.common.version}
com.fasterxml.jackson.datatype
jackson-datatype-guava
org.immutables
value
${immutables.version}
provided
org.springframework.boot
spring-boot-starter-batch
org.springframework.boot
spring-boot-starter-data-jpa
org.springframework.boot
spring-boot-starter-test
test
org.springframework.batch
spring-batch-test
test
org.springframework.boot
spring-boot-configuration-processor
true
ch.qos.logback
logback-classic
net.logstash.logback
logstash-logback-encoder
org.codehaus.janino
janino
3.1.12
com.lls.fs.tac.lbe
tac-lbe
com.lls.fs.break.wsclients.external
acts-activity-service-v4-client-cxf
${acts-activity-service-v4-client-cxf.version}
org.jvnet.jaxb2_commons
jaxb2-basics-runtime
jakarta.transaction
jakarta.transaction-api
jakarta.interceptor
jakarta.interceptor-api
2.2.0
jakarta.servlet
jakarta.servlet-api
provided
jakarta.servlet.jsp
jakarta.servlet.jsp-api
provided
jakarta.validation
jakarta.validation-api
3.0.2
jakarta.ws.rs
jakarta.ws.rs-api
3.1.0
org.json
json
20230227
com.oracle.database.jdbc
ojdbc8
com.oracle.database.jdbc
ucp
com.oracle.database.nls
orai18n
com.oracle.database.ha
simplefan
com.oracle.database.ha
ons
org.hsqldb
hsqldb
2.7.1
runtime
${project.artifactId}-${project.version}
org.codehaus.mojo
appassembler-maven-plugin
assemble
.sh
env.sh
unix
flat
com.lls.fs.break.ecp.batchreference.batch.AnalysisApplication
commandLineRunner
org.apache.maven.plugins
maven-assembly-plugin
package
single
gnu
jml-distribution.xml
false
com.lls.fs.tac.jml
jml-maven-plugin
upload
upload
Подробнее здесь: https://stackoverflow.com/questions/792 ... rtyutils-d
Java.lang.NoSuchFieldError: класс org.springframework.util.SystemPropertyUtils не имеет поля-члена «java.lang.Character ⇐ JAVA
Программисты JAVA общаются здесь
1734008423
Anonymous
После обновления Spring Boot 3.4.0 я начал получать эту ошибку:
12:54:11.255 [main] ERROR org.springframework.boot.SpringApplication -- Application run failed
java.lang.NoSuchFieldError: Class org.springframework.util.SystemPropertyUtils does not have member field 'java.lang.Character ESCAPE_CHARACTER'
at org.springframework.boot.context.properties.bind.PropertySourcesPlaceholdersResolver.(PropertySourcesPlaceholdersResolver.java:51)
at org.springframework.boot.context.properties.bind.PropertySourcesPlaceholdersResolver.(PropertySourcesPlaceholdersResolver.java:41)
at org.springframework.boot.context.properties.bind.Binder.get(Binder.java:537)
at org.springframework.boot.context.properties.bind.Binder.get(Binder.java:523)
at org.springframework.boot.context.config.ConfigDataEnvironment.(ConfigDataEnvironment.java:141)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.getConfigDataEnvironment(ConfigDataEnvironmentPostProcessor.java:101)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:96)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:89)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEnvironmentPreparedEvent(EnvironmentPostProcessorApplicationListener.java:132)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEvent(EnvironmentPostProcessorApplicationListener.java:115)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:136)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:81)
at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:64)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:112)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:63)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:353)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
at com.evry.fs.lending.ecp.batchreference.batch.AnalysisApplication.main(AnalysisApplication.java:17)
at com.evry.fs.lending.ecp.batchreference.batch.EmbeddedServer.main(EmbeddedServer.java:13)
Exception in thread "main" java.lang.IllegalStateException: java.lang.NoSuchFieldError: Class org.springframework.util.SystemPropertyUtils does not have member field 'java.lang.Character ESCAPE_CHARACTER'
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:823)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:328)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
at com.evry.fs.lending.ecp.batchreference.batch.AnalysisApplication.main(AnalysisApplication.java:17)
at com.evry.fs.lending.ecp.batchreference.batch.EmbeddedServer.main(EmbeddedServer.java:13)
Caused by: java.lang.NoSuchFieldError: Class org.springframework.util.SystemPropertyUtils does not have member field 'java.lang.Character ESCAPE_CHARACTER'
at org.springframework.boot.context.properties.bind.PropertySourcesPlaceholdersResolver.(PropertySourcesPlaceholdersResolver.java:51)
at org.springframework.boot.context.properties.bind.PropertySourcesPlaceholdersResolver.(PropertySourcesPlaceholdersResolver.java:41)
at org.springframework.boot.context.properties.bind.Binder.get(Binder.java:537)
at org.springframework.boot.context.properties.bind.Binder.get(Binder.java:523)
at org.springframework.boot.context.config.ConfigDataEnvironment.(ConfigDataEnvironment.java:141)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.getConfigDataEnvironment(ConfigDataEnvironmentPostProcessor.java:101)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:96)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:89)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEnvironmentPreparedEvent(EnvironmentPostProcessorApplicationListener.java:132)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEvent(EnvironmentPostProcessorApplicationListener.java:115)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:136)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:81)
at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:64)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:112)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:63)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:353)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
... 4 more
Disconnected from the target VM, address: '127.0.0.1:56343', transport: 'socket'
Spring пытается получить доступ к полю ESCAPE_CHARACTER в классе SystemPropertyUtils. Но этого поля не существует.
Как я понял, между версиями библиотек Spring есть несоответствие, но между какими именно не могу разобраться. Вот мой ПОМ.
4.0.0
com.jsf.fem
custom-parent-pom
6.2.4
com.jsf.fem
jsf-batch
1.0.13-SNAPSHOT
jar
JSF-BATCH-PROCESSING
batch-processing
UTF-8
UTF-8
1.0.2
2.10.1
2.2.0
2.18.2
5.0.5
3.4.0
cc47b1079128a170a30a4666e3d6310ed59d1e7dd3b8736b73a2b7c6
org.springframework.boot
spring-boot-dependencies
${spring.boot.version}
pom
import
com.jayway.jsonpath
json-path
test
2.9.0
com.github.ulisesbocchio
jasypt-spring-boot
3.0.5
com.lls.liability.break
break-jinja-renderer
${break.jinja.rederer.version}
org.yaml
snakeyaml
2.3
break-rest-common-client-restesb
com.lls.fs.break
${break.rest.common.version}
break-rest-common-responses
com.lls.fs.break
${break.rest.common.version}
com.fasterxml.jackson.datatype
jackson-datatype-guava
org.immutables
value
${immutables.version}
provided
org.springframework.boot
spring-boot-starter-batch
org.springframework.boot
spring-boot-starter-data-jpa
org.springframework.boot
spring-boot-starter-test
test
org.springframework.batch
spring-batch-test
test
org.springframework.boot
spring-boot-configuration-processor
true
ch.qos.logback
logback-classic
net.logstash.logback
logstash-logback-encoder
org.codehaus.janino
janino
3.1.12
com.lls.fs.tac.lbe
tac-lbe
com.lls.fs.break.wsclients.external
acts-activity-service-v4-client-cxf
${acts-activity-service-v4-client-cxf.version}
org.jvnet.jaxb2_commons
jaxb2-basics-runtime
jakarta.transaction
jakarta.transaction-api
jakarta.interceptor
jakarta.interceptor-api
2.2.0
jakarta.servlet
jakarta.servlet-api
provided
jakarta.servlet.jsp
jakarta.servlet.jsp-api
provided
jakarta.validation
jakarta.validation-api
3.0.2
jakarta.ws.rs
jakarta.ws.rs-api
3.1.0
org.json
json
20230227
com.oracle.database.jdbc
ojdbc8
com.oracle.database.jdbc
ucp
com.oracle.database.nls
orai18n
com.oracle.database.ha
simplefan
com.oracle.database.ha
ons
org.hsqldb
hsqldb
2.7.1
runtime
${project.artifactId}-${project.version}
org.codehaus.mojo
appassembler-maven-plugin
assemble
.sh
env.sh
unix
flat
com.lls.fs.break.ecp.batchreference.batch.AnalysisApplication
commandLineRunner
org.apache.maven.plugins
maven-assembly-plugin
package
single
gnu
jml-distribution.xml
false
com.lls.fs.tac.jml
jml-maven-plugin
upload
upload
Подробнее здесь: [url]https://stackoverflow.com/questions/79275069/java-lang-nosuchfielderror-class-org-springframework-util-systempropertyutils-d[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия