Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1924

grouperClient WsGroup bean missing alternateName property

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Unresolved
    • 2.4.0
    • None
    • None
    • None

    Description

      We are using retrofit2, okhttp3 and jackson to interface with WS. If a group has an altername name, we get this error.

       

      Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "alternateName" (class edu.internet2.middleware.grouperClient.ws.beans.WsGroup), not marked as ignorable (9 known properties: "detail", "idIndex", "name", "description", "displayExtension", "typeOfGroup", "extension", "uuid", "displayName"])
       at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 21943] (through reference chain: edu.internet2.middleware.grouperClient.ws.beans.WsGetMembershipsResults["wsGroups"]>java.lang.Object[][7]>edu.internet2.middleware.grouperClient.ws.beans.WsGroup["alternateName"])
          at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61)
          at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:822)
          at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1152)
          at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1582)
          at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1560)
          at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:294)
          at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
          at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:195)
          at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:21)
          at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
          at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
          at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
          at com.fasterxml.jackson.databind.ObjectReader._unwrapAndDeserialize(ObjectReader.java:1703)
          at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1608)
          at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1203)
          at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:32)
          at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:23)
          at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:122)
          at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:217)
          at retrofit2.OkHttpCall.execute(OkHttpCall.java:180)
          at edu.unc.its.idm.grouper.wsclient.tasks.BaseWsRequest.getRetrofitResponse(BaseWsRequest.java:257)
          ... 5 more

       

      The WS json response is fine, it just includes a value for alternateName, which causes the WsGroup bean creation to fail.

       

      Attachments

        Activity

          People

            chad.redman@at.internet2.edu Chad Redman (unc.edu)
            chad.redman@at.internet2.edu Chad Redman (unc.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Smart Checklist