Ошибка запуска приложения Spring BootJAVA

Программисты JAVA общаются здесь
Ответить
Anonymous
 Ошибка запуска приложения Spring Boot

Сообщение Anonymous »

У меня есть приложение Springboot, и оно отлично собирается, но когда я пытаюсь запустить его как приложение Springboot в STS, оно выдает следующую ошибку... Я не уверен, что происходит.
Вот pom.xml, который я использую

org.springframework.boot
spring-boot-starter-parent
1.3.3.RELEASE



com.ge.aviation.det
spcsa-scenario-service
1.0.218
jar
spcsa-scenario-service
SPCSA Scenario management services

UTF-8
1.8
SNAPSHOT
1.11.710


А это основной класс:
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
* This is the main class of scenario services
*
* @author 385220
*/
//@SpringBootApplication(scanBasePackages="com.ge.aviation.det")
@Configuration
@EnableAutoConfiguration
@ComponentScan({"com.ge.aviation.det"})
@ImportResource({"classpath*:META-INF/spring/security-context.xml", "classpath*:META-INF/spring/sfdc-quote-config.xml"})
@EnableTransactionManagement
@EnableAsync
@RestController
public class DetQuoteServiceApplication {

public static void main(String[] args) {
SpringApplication.run(DetQuoteServiceApplication.class, args);
}

@Bean
public HealthIndicator quoteHealthIndicator() {
return () -> Health.up().withDetail("spcsa-quote-service", "up").build();
}

@RequestMapping(value ="/check", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity getCheckStatus() {
return new ResponseEntity("success", HttpStatus.OK);
}
}

И ошибка, когда я запускаю его как приложение локально.
Ошибка:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
[32m :: Spring Boot :: [39m [2m (v1.3.3.RELEASE)[0;39m

[2m2024-10-29 14:46:48.132[0;39m [32m INFO[0;39m [35m93476[0;39m [2m---[0;39m [2m[ main][0;39m [36mc.g.a.det.DetQuoteServiceApplication [0;39m [2m:[0;39m Starting DetQuoteServiceApplication on G2B3G9Y3E with PID 93476 (C:\Users\502622018\cpq-workspace\spcsa-quote-service\target\classes started by 502622018 in C:\Users\502622018\cpq-workspace\spcsa-quote-service)
[2m2024-10-29 14:46:48.135[0;39m [32m INFO[0;39m [35m93476[0;39m [2m---[0;39m [2m[ main][0;39m [36mc.g.a.det.DetQuoteServiceApplication [0;39m [2m:[0;39m The following profiles are active: local
[2m2024-10-29 14:46:48.168[0;39m [32m INFO[0;39m [35m93476[0;39m [2m---[0;39m [2m[ main][0;39m [36mationConfigEmbeddedWebApplicationContext[0;39m [2m:[0;39m Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2e4b8173: startup date [Tue Oct 29 14:46:48 EDT 2024]; root of context hierarchy
[2m2024-10-29 14:46:49.369[0;39m [31mERROR[0;39m [35m93476[0;39m [2m---[0;39m [2m[ main][0;39m [36mo.s.boot.SpringApplication [0;39m [2m:[0;39m Application startup failed

java.util.ConcurrentModificationException: null
at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966) ~[na:1.8.0_371]
at java.util.LinkedList$ListItr.next(LinkedList.java:888) ~[na:1.8.0_371]
at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:421) ~[spring-context-4.1.0.RELEASE.jar:4.1.0.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:175) ~[spring-context-4.1.0.RELEASE.jar:4.1.0.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:306) ~[spring-context-4.1.0.RELEASE.jar:4.1.0.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:239) ~[spring-context-4.1.0.RELEASE.jar:4.1.0.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:254) ~[spring-context-4.1.0.RELEASE.jar:4.1.0.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:94) ~[spring-context-4.1.0.RELEASE.jar:4.1.0.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606) ~[spring-context-4.1.0.RELEASE.jar:4.1.0.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462) ~[spring-context-4.1.0.RELEASE.jar:4.1.0.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at com.ge.aviation.det.DetQuoteServiceApplication.main(DetQuoteServiceApplication.java:34) [classes/:na]

[2m2024-10-29 14:46:49.370[0;39m [32m INFO[0;39m [35m93476[0;39m [2m---[0;39m [2m[ main][0;39m [36m.b.l.ClasspathLoggingApplicationListener[0;39m [2m:[0;39m Application failed to start with classpath:

Stacktrace перехватывает исключение checkCoModification
spcsa-quote-service - DetQuoteServiceApplication [Spring Boot App]
com.ge.aviation.det.DetQuoteServiceApplication at localhost:61216
Thread [main] (Suspended (exception ConcurrentModificationException))
owns: Object (id=41)
LinkedList$ListItr.checkForComodification() line: 966 [local variables unavailable]
LinkedList$ListItr.next() line: 888 [local variables unavailable]
ConfigurationClassParser.processDeferredImportSelectors() line: 421
ConfigurationClassParser.parse(Set) line: 175
ConfigurationClassPostProcessor.processConfigBeanDefinitions(BeanDefinitionRegistry) line: 306
ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(BeanDefinitionRegistry) line: 239
PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(Collection, BeanDefinitionRegistry) line: 254
PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(ConfigurableListableBeanFactory, List) line: 94
AnnotationConfigEmbeddedWebApplicationContext(AbstractApplicationContext).invokeBeanFactoryPostProcessors(ConfigurableListableBeanFactory) line: 606
AnnotationConfigEmbeddedWebApplicationContext(AbstractApplicationContext).refresh() line: 462
AnnotationConfigEmbeddedWebApplicationContext(EmbeddedWebApplicationContext).refresh() line: 118
SpringApplication.refresh(ApplicationContext) line: 766
SpringApplication.createAndRefreshContext(SpringApplicationRunListeners, ApplicationArguments) line: 361
SpringApplication.run(String...) line: 307
SpringApplication.run(Object[], String[]) line: 1191
SpringApplication.run(Object, String...) line: 1180
DetQuoteServiceApplication.main(String[]) line: 36
C:\Program Files\Java\jdk-1.8\bin\javaw.exe (Oct 29, 2024, 10:02:16 PM) [pid: 26548]


Подробнее здесь: https://stackoverflow.com/questions/791 ... tup-failed
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «JAVA»