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

Recently added ReflectionFreeSerializationTest is very unstable #44069

Closed
gsmet opened this issue Oct 24, 2024 · 3 comments · Fixed by #44080
Closed

Recently added ReflectionFreeSerializationTest is very unstable #44069

gsmet opened this issue Oct 24, 2024 · 3 comments · Fixed by #44080
Labels
area/jackson Issues related to Jackson (JSON library)
Milestone

Comments

@gsmet
Copy link
Member

gsmet commented Oct 24, 2024

Recently added ReflectionFreeSerializationTest has been very unstable.

For instance see: #44027 . But there were a lot of other failures lately.

Here is the output of the test:

2024-10-23T13:02:00.6037919Z 2024-10-23 13:02:00,591 ERROR [io.qua.res.rea.jac.run.map.NativeInvalidDefinitionExceptionMapper] (vert.x-eventloop-thread-1) com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoEntityBase and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.ArrayList[0])
2024-10-23T13:02:01.0187642Z [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 18.73 s <<< FAILURE! -- in io.quarkus.it.mongodb.panache.ReflectionFreeSerializationTest
2024-10-23T13:02:01.0192965Z [ERROR] io.quarkus.it.mongodb.panache.ReflectionFreeSerializationTest.testReactiveBookEntity -- Time elapsed: 1.060 s <<< ERROR!
2024-10-23T13:02:01.0194735Z java.lang.RuntimeException: 
2024-10-23T13:02:01.0196221Z com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
2024-10-23T13:02:01.0198080Z  at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1]
2024-10-23T13:02:01.0200161Z 	at io.restassured.internal.path.json.mapping.JsonPathJackson2ObjectDeserializer.deserialize(JsonPathJackson2ObjectDeserializer.java:30)
2024-10-23T13:02:01.0202739Z 	at io.restassured.path.json.mapping.JsonPathObjectDeserializer$deserialize.call(Unknown Source)
2024-10-23T13:02:01.0204786Z 	at io.restassured.internal.mapping.Jackson2Mapper.deserialize(Jackson2Mapper.groovy:58)
2024-10-23T13:02:01.0206059Z 	at io.restassured.mapper.ObjectMapper$deserialize.call(Unknown Source)
2024-10-23T13:02:01.0207526Z 	at io.restassured.internal.mapping.ObjectMapping.parseWithJackson2(ObjectMapping.groovy:254)
2024-10-23T13:02:01.0208976Z 	at io.restassured.internal.mapping.ObjectMapping$parseWithJackson2$0.callStatic(Unknown Source)
2024-10-23T13:02:01.0210334Z 	at io.restassured.internal.mapping.ObjectMapping.deserialize(ObjectMapping.groovy:56)
2024-10-23T13:02:01.0211587Z 	at io.restassured.internal.mapping.ObjectMapping$deserialize.call(Unknown Source)
2024-10-23T13:02:01.0213126Z 	at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.as(RestAssuredResponseOptionsGroovyImpl.groovy:229)
2024-10-23T13:02:01.0214803Z 	at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl$as$2.callCurrent(Unknown Source)
2024-10-23T13:02:01.0216630Z 	at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.as(RestAssuredResponseOptionsGroovyImpl.groovy:246)
2024-10-23T13:02:01.0218379Z 	at io.restassured.internal.RestAssuredResponseOptionsImpl.as(RestAssuredResponseOptionsImpl.java:186)
2024-10-23T13:02:01.0220449Z 	at io.quarkus.it.mongodb.panache.reactive.ReactiveMongodbPanacheResourceTest.callReactiveBookEndpoint(ReactiveMongodbPanacheResourceTest.java:107)
2024-10-23T13:02:01.0222682Z 	at io.quarkus.it.mongodb.panache.ReflectionFreeSerializationTest.testReactiveBookEntity(ReflectionFreeSerializationTest.java:29)
2024-10-23T13:02:01.0224513Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
2024-10-23T13:02:01.0225990Z 	at io.quarkus.test.junit.QuarkusTestExtension.runExtensionMethod(QuarkusTestExtension.java:971)
2024-10-23T13:02:01.0227812Z 	at io.quarkus.test.junit.QuarkusTestExtension.interceptTestMethod(QuarkusTestExtension.java:821)
2024-10-23T13:02:01.0229276Z 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
2024-10-23T13:02:01.0230315Z 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
2024-10-23T13:02:01.0231858Z Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
2024-10-23T13:02:01.0233349Z  at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1]
2024-10-23T13:02:01.0234811Z 	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
2024-10-23T13:02:01.0236339Z 	at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:5008)
2024-10-23T13:02:01.0237972Z 	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4910)
2024-10-23T13:02:01.0239293Z 	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3860)
2024-10-23T13:02:01.0241153Z 	at io.restassured.internal.path.json.mapping.JsonPathJackson2ObjectDeserializer.deserialize(JsonPathJackson2ObjectDeserializer.java:28)
2024-10-23T13:02:01.0242617Z 	... 18 more
@gsmet
Copy link
Member Author

gsmet commented Oct 24, 2024

/cc @mariofusco

@gsmet gsmet added area/jackson Issues related to Jackson (JSON library) and removed triage/needs-triage labels Oct 24, 2024
Copy link

quarkus-bot bot commented Oct 24, 2024

/cc @geoand (jackson), @mariofusco (jackson)

@mariofusco
Copy link
Contributor

@gsmet Thanks for reporting this, I will give a look immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/jackson Issues related to Jackson (JSON library)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants