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

[Bug][Manager] JSON serialization error for Authentication when getting inlongGroupInfo #5424

Closed
2 tasks done
gong opened this issue Aug 9, 2022 · 0 comments · Fixed by #5426
Closed
2 tasks done
Assignees
Labels
Milestone

Comments

@gong
Copy link
Contributor

gong commented Aug 9, 2022

What happened

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of org.apache.inlong.manager.common.auth.Authentication (no Creators, like default constructor, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information
at [Source: (String)"{"id":1,"inlongGroupId":"rf84249bb-e02d-44c2-ba1f-1ab009ddfaa3","name":"rf84249bb-e02d-44c2-ba1f-1ab009ddfaa3","description":"The group rf84249bb-e02d-44c2-ba1f-1ab009ddfaa3 is auto created xxx ","middlewareType":null,"mqType":"NONE","mqResource":"rf84249bb-e02d-44c2-ba1f-1ab009ddfaa3","enableZookeeper":0,"enableCreateResource":0,"lightweight":1,"inlongClusterTag":"xxx,"dailyRecords":10000000,"dailyStorage":null,"peakRecords":100000,"maxLength":10000,"inCharges"[truncated 5090 chars]; line: 1, column: 3420] (through reference chain: org.apache.inlong.manager.pojo.group.none.InlongNoneMqInfo["sortConf"]->org.apache.inlong.manager.pojo.sort.FlinkSortConf["authentication"])
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:67)
at com.fasterxml.jackson.databind.DeserializationContext.reportBadDefinition(DeserializationContext.java:1615)
at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:400)
at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1077)
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserialize(AbstractDeserializer.java:265)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:293)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:194)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:166)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:132)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:99)
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:254)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:138)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:293)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:194)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:166)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:132)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:99)
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:254)
at com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:68)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4526)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3468)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3436)
at org.apache.inlong.manager.common.util.JsonUtils.parseObject(JsonUtils.java:82)
at org.apache.inlong.manager.client.api.inner.client.InlongGroupClient.getGroupInfo

What you expected to happen

no exception

How to reproduce

just use inlong manager client to create group

Environment

No response

InLong version

master

InLong Component

InLong Manager

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@gong gong added the type/bug Something is wrong label Aug 9, 2022
@healchow healchow added this to the 1.3.0 milestone Aug 9, 2022
@healchow healchow changed the title [Bug][Manager] Fix json serialization for Authentication when get inlongGroupInfo [Bug][Manager] JSON serialization error for Authentication when getting inlongGroupInfo Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants