Error "Exception while converting pojo java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException" When saving a ticket and showing custom attributes of CR object in Service Point 17.2

book

Article ID: 136456

calendar_today

Updated On:

Products

CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

The following error appears when saving a ticket and showing custom attributes of CR object in Service Point 17.2 when 


ERROR - 2019-07-17 16:11:57 [c.c.c.a.h.SdmCreateObjectHelper] - Exception while converting pojo 

java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "<CustomAttribute>" (class com.ca.casm.playApi.sdm.genpojo.in), not marked as ignorable (226 known properties: "web_url", "attached_slas", "predicted_sla_violation", "sap_sysid", "edit_from_play_api", "sla_events", "parent_f", "eval_service", "event_token", "act_log", "init_imp", "mintime", "resolve_date", "checkout_time", "base_template", "based_on_kd", "target_hold_count_prev", "created_via", "ebr_ks_concepts", "fldchange_log_f", "close_date_f", "orig_user_admin_org", "string1", "string2", "string3", "string4", "string5", "string6", "log_agent", "sap_xnum", "target_resolved_last", "sap_instance", "open_children", "extern_ref_f", "target_resolved_count_prev", "caused_by_chg", "status_prev", "soln_log", "<CustomAttribute>", "target_closed_count", "audit_userid_f", "target_resolved_count", "status_comment_f", "last_mod_by", "ebr_match_type", "major_incident_f", "open_date", "priority_f", "needs_beep", "start_date_f", "view_type", "outage_start_time", "extern_token", "close_date_prev", "problem", "ticket_avoided", "sd_entries", "assignee_prev", "group_f", "new_delay_log", "parent" [truncated]])

 at [Source: N/A; line: -1, column: -1] (through reference chain: com.ca.casm.playApi.sdm.genpojo.in["<CustomAttribute>"])

at play.libs.Json.fromJson(Json.java:90)

at com.ca.casm.actor.helper.SdmCreateObjectHelper.convertJson2Pojo(SdmCreateObjectHelper.java:360)

at com.ca.casm.actor.helper.SdmCreateObjectHelper.initHelperObject(SdmCreateObjectHelper.java:123)

at com.ca.casm.actor.helper.SdmCreateObjectHelper.<init>(SdmCreateObjectHelper.java:96)

at controllers.GenericBaseController.createObject(GenericBaseController.java:390)

Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "<CustomAttribute>" (class com.ca.casm.playApi.sdm.genpojo.in), not marked as ignorable (226 known properties: "web_url", "attached_slas", "predicted_sla_violation", "sap_sysid", "edit_from_play_api", "sla_events", "parent_f", "eval_service", "event_token", "act_log", "init_imp", "mintime", "resolve_date", "checkout_time", "base_template", "based_on_kd", "target_hold_count_prev", "created_via", "ebr_ks_concepts", "fldchange_log_f", "close_date_f", "orig_user_admin_org", "string1", "string2", "string3", "string4", "string5", "string6", "log_agent", "sap_xnum", "target_resolved_last", "sap_instance", "open_children", "extern_ref_f", "target_resolved_count_prev", "caused_by_chg", "status_prev", "soln_log", "<CustomAttribute>", "target_closed_count", "audit_userid_f", "target_resolved_count", "status_comment_f", "last_mod_by", "ebr_match_type", "major_incident_f", "open_date", "priority_f", "needs_beep", "start_date_f", "view_type", "outage_start_time", "extern_token", "close_date_prev", "problem", "ticket_avoided", "sd_entries", "assignee_prev", "group_f", "new_delay_log", "parent" [truncated]])

 at [Source: N/A; line: -1, column: -1] (through reference chain: com.ca.casm.playApi.sdm.genpojo.in["<CustomAttribute>"])

at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:62)

at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:834)

at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1093)

at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1489)

at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1467)

Cause

Custom attribute that starts with Capital letter fails to get parsed correctly when generating POJO's. This is caused by a problem with a 3rd party component

Environment

Release : 17.2

Component : SERVICE POINT

Resolution

This issue is expected to be solved in 17.3

 

Workaround:

 

Use lowercases for the custom attribute to avoid this issue to occur. Example: If using ZCustom1, use zcustom1

How to change custom fields to lowercases in Service Desk Manager and can be used in Service Point