Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-5614

Jackson can not instantiate AuthnRequestInfoCopy/IDPSessionCopy from JSON object

    Details

    • Sprint:
      Sprint 81 - Sustaining
    • Support Ticket IDs:

      Description

      After fix of OPENAM-4195, OpenAM can read/write AuthnRequestInfoCopy JSON from/to CTS.
      But there is no default constructor in AuthnRequestInfoCopy, so it is not possible to get the instance.

      I get the following error:

      org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class com.sun.identity.saml2.profile.AuthnRequestInfoCopy]: can not instantiate from JSON object (need to add/enable type information?)
       at [Source: java.io.StringReader@b5e7ec6; line: 1, column: 2]
      	org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)
      	org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObjectUsingNonDefault(BeanDeserializer.java:746)
      	org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:683)
      	org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
      	org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732)
      	org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1863)
      	org.forgerock.openam.cts.utils.JSONSerialisation.deserialise(JSONSerialisation.java:88)
      	org.forgerock.openam.cts.adapters.SAMLAdapter.fromToken(SAMLAdapter.java:118)
      	org.forgerock.openam.cts.adapters.SAMLAdapter.fromToken(SAMLAdapter.java:36)
      	org.forgerock.openam.cts.impl.SAML2CTSPersistentStore.retrieveSAML2Token(SAML2CTSPersistentStore.java:87)
      	com.sun.identity.saml2.common.SAML2FailoverUtils.retrieveSAML2Token(SAML2FailoverUtils.java:80)
      	com.sun.identity.saml2.common.SAML2Utils.verifyResponse(SAML2Utils.java:332)
      	com.sun.identity.saml2.profile.SPACSUtils.processResponse(SPACSUtils.java:1050)
      	org.apache.jsp.saml2.jsp.spAssertionConsumer_jsp._jspService(spAssertionConsumer_jsp.java:235)
      	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:100)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major [X] (Inactive)
                Reporter:
                tsujiguchi tsujiguchi
                QA Assignee:
                Nemanja Lukic
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0h
                  0h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h
                  5h