class java.lang.String cannot be cast to class com.snc.process_flow.stream.InputStreamProxy Issue ServiceNow fails to connect to the SCCM server when testing the flow under the flow designer. The REST and Powershell commands fail with an error, even though the Windows credentials are valid and working. The error can be reproduced by going to Flow Designer -> Sub Flows -> Filter application to Microsoft Endpoint Configuration Manager, selecting the Discover and Store flow, and testing it. The errors can be viewed by clicking the content view button.SymptomsSCCM Credential Failing for REST Connection and PowerShell error message: class java.lang.String cannot be cast to class com.snc.process_flow.stream.InputStreamProxy (java.lang.String is in module java.base of loader 'bootstrap'; com.snc.process_flow.stream.InputStreamProxy is in unnamed module of loader 'app') ReleaseMicrosoft Endpoint Configuration Manager spoke v 1.8.0 is the latest version.CauseFor this credential record - /sn_ms_epcfgmgr_spk_mecm_credentials.LISTRealm value was not all uppercase (refer https://docs.servicenow.com/bundle/sandiego-application-development/page/administer/integrationhub-store-spokes/concept/csd2-conf-sccm.html#title_create-conn-cred-ms-endpt-config-mgr-rest), The Realm field should be the Active Directory domain name in uppercase from the Microsoft Endpoint Configuration Manager server. For example, OPS.LAB3.EXAMPLE.COMResolutionChange the Realm value to all uppercase and restart the MID server.