Skip to content
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

3.2.3升级到3.2.4时出现Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription #4665

Open
denghg opened this issue Jan 3, 2025 · 6 comments
Labels

Comments

@denghg
Copy link

denghg commented Jan 3, 2025

2025-01-03T09:35:55,067 ERROR [main] i.s.v.c.j.ModelResolver []: Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.

@liubao68
Copy link
Contributor

liubao68 commented Jan 6, 2025

你能够提供一个复现的demo吗?不清楚你的问题的上下文。

@liubao68
Copy link
Contributor

liubao68 commented Jan 6, 2025

或许你可以看看这个: swagger-api/swagger-ui#10220 并检查下swagger的版本。

@denghg
Copy link
Author

denghg commented Jan 9, 2025

17 17 17 UTF-8 3.2.3 3.3.5 3.13.0 2.0.0
    <redisson.version>3.41.0</redisson.version>
</properties>
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.apache.servicecomb</groupId>
            <artifactId>java-chassis-dependencies</artifactId>
            <version>${servicecomb.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        <dependency>
            <groupId>zone.wmj</groupId>
            <artifactId>user-agent-util</artifactId>
            <version>${user-agent-util.version}</version>
        </dependency>
        <dependency>
            <groupId>org.redisson</groupId>
            <artifactId>redisson</artifactId>
            <version>${redisson.version}</version>
        </dependency>
       
    </dependencies>
</dependencyManagement>

@denghg
Copy link
Author

denghg commented Jan 9, 2025

2025-01-09T11:31:31.665+08:00 INFO 4192 --- [ main] o.a.s.f.c.u.SPIServiceUtils : Found SPI service PropertyCreator, services={0,MultipartFilePropertyCreator}.
2025-01-09T11:31:31.666+08:00 INFO 4192 --- [ main] o.a.s.f.c.u.SPIServiceUtils : Found SPI service ConcreteTypeRegister, services=.
2025-01-09T11:31:31.683+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.697+08:00 INFO 4192 --- [ main] o.a.s.f.c.u.SPIServiceUtils : Found SPI service ProducerContextArgumentMapperFactory, services={0,ProducerHttpRequestArgMapperFactory}{1,ProducerServerWebSocketArgMapperFactory}{2,ProducerInvocationContextMapperFactory}.
2025-01-09T11:31:31.701+08:00 INFO 4192 --- [ main] o.a.s.f.c.u.SPIServiceUtils : Found SPI service ProducerResponseMapperFactory, services={0,SpringmvcProducerResponseMapperFactory}{1,JaxrsProducerResponseMapperFactory}{2,CseResponseProducerResponseMapperFactory}{3,CompletableFutureProducerResponseMapperFactory}{4,OptionalProducerResponseMapperFactory}{5,DefaultProducerResponseMapperFactory}.
2025-01-09T11:31:31.705+08:00 INFO 4192 --- [ main] o.a.s.c.p.LocalOpenAPIRegistry : register swagger appId=threewho-dev, name=microtest-service, schemaId=scb-metrics.
2025-01-09T11:31:31.708+08:00 INFO 4192 --- [ main] o.a.s.f.c.u.SPIServiceUtils : Found SPI service ResponseMetaMapper, services=.
2025-01-09T11:31:31.708+08:00 INFO 4192 --- [ main] o.a.s.f.c.u.SPIServiceUtils : Can not find SPI service for org.apache.servicecomb.swagger.invocation.response.ResponseMetaMapper
2025-01-09T11:31:31.713+08:00 INFO 4192 --- [ main] o.a.s.s.g.SwaggerGenerator : select [org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGeneratorFactory] for [org.example.rest.MicroTestRest] to generate schema.
2025-01-09T11:31:31.713+08:00 INFO 4192 --- [ main] o.a.s.s.g.SwaggerGenerator : generate schema from [class org.example.rest.MicroTestRest]
2025-01-09T11:31:31.715+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.718+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.828+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.865+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.868+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.882+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.883+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.894+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.898+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.899+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found in jackson BeanDescription. Please verify your Jackson version.
2025-01-09T11:31:31.905+08:00 ERROR 4192 --- [ main] i.s.v.c.j.ModelResolver : Neither 'findJsonValueMethod' nor 'findJsonValueAccessor' found
Comb3MicroTest.zip

@denghg
Copy link
Author

denghg commented Jan 9, 2025

虽然报错,但是不影响使用,不过我还是回退到3.2.3

@liubao68 liubao68 added the 3.x label Jan 10, 2025
@liubao68
Copy link
Contributor

这个是swagger 2.2.26的bug, 升级2.2.27即可。 参考: swagger-api/swagger-core#4806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants