小编Rod*_*odL的帖子

在 WildFly 15 中启动 Spring Boot 2.2.1 时出错 - Jackson StreamFactory 验证错误

我是 Spring Boot 的新手。我正在尝试在 WildFly 15 上部署 Spring Boot 2.2.1 项目作为战争。我可以在 Maven 中构建和运行单元测试,但是当我部署到 WildFly 时,出现以下错误:

WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."my.war".undertow-deployment: 
java.lang.RuntimeException:org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'integrationArgumentResolverMessageConverter': Instantiation of bean failed; 
nested exception is org.springframework.beans.BeanInstantiationException: 
Failed to instantiate [org.springframework.integration.support.converter.ConfigurableCompositeMessageConverter]: 
Constructor threw exception; nested exception is java.lang.VerifyError: Bad return type

Exception Details:
  Location:
    com/fasterxml/jackson/databind/cfg/MapperBuilder.streamFactory()Lcom/fasterxml/jackson/core/TokenStreamFactory; @7: areturn
  Reason:
    Type 'com/fasterxml/jackson/core/JsonFactory' (current frame, stack[0]) is not assignable to 'com/fasterxml/jackson/core/TokenStreamFactory' (from method signature)
  Current Frame:
    bci: @7
    flags: { }
    locals: …
Run Code Online (Sandbox Code Playgroud)

spring-integration jackson spring-boot wildfly-15

5
推荐指数
1
解决办法
2412
查看次数