Java 11 upgrade unsuccessful for Event Management mid serversIssue When switching to Java 11 from JRE 1.8.0_231 (Java 8) and re-running the test connection for the SCOM connector after a MID restart, following error is received. “Connection test failed: Credentials not found, id: fac83fa9dbb148147faf89584b9619cdtestEventConnection FAILURE: Username not provided” --- *using JRE 1.8 (Java 8) using wrapper-override.conf file the test connection for the SCOM connector is successful. MID logs show the following ========== 01/07/20 16:06:38 (483) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf Worker starting: ConnectorProbe source: XX.XX.SCOM.Connector201/07/20 16:06:38 (483) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf TP_CON_DEBUG: probe called01/07/20 16:06:38 (483) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf SEVERE *** ERROR *** Credentials not found, id: fac83fa9dbb148147faf89584b9619cd01/07/20 16:06:38 (529) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf Waiting to acquire lock : creating groovy instance class01/07/20 16:06:38 (529) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf Acquire a lock : creating groovy instance class01/07/20 16:06:38 (529) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf Release lock : creating groovy instance class01/07/20 16:06:38 (529) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf DEBUG: in execute()01/07/20 16:06:38 (529) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf SEVERE *** ERROR *** FAILURE: Username not provided01/07/20 16:06:38 (545) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf Enqueuing: C:\SN_MIDSERVER_SBOX6\agent\work\monitors\ECCSender\output_0\ecc_queue.abfac70c1b1a0898d4c0437cdc4bcbdf.xml01/07/20 16:06:38 (545) Worker-Interactive:ConnectorProbe-abfac70c1b1a0898d4c0437cdc4bcbdf Worker completed: ConnectorProbe source: XX.XX.SCOM.Connector2 time: 0:00:00.04601/07/20 16:06:39 (357) ECCSender.1 Sending ecc_queue.abfac70c1b1a0898d4c0437cdc4bcbdf.xml ==========ReleaseAnyCauseWhen switching between JRE versions (e.g: from Java 8 to Java 11). Since this changes the Java implementation, the Java keystore is also changed. If this is not flushed from config.xml then the new Java cannot decrypt the keystore and throws errors similar to keystore corruption.This can be validated by running a test credential against the credential being used by the connector instance and the below error pops. ------A JSONObject text must begin with '{' at character 1 of SNC_ENC_VAL[501cy5cdwvJ5P2wZ/LmtEVisfadaCWsnFb05aHS3adaQqniGv1PpIgg0F2wSEB31TZUOluvu202ZWO7nh5ouni69jW5iVvhJvewrt0/R7O6YdWPUs7W9/hLRM5tu+dh5u0avfKjILRkIBnTjuvrgIKFnK75YwtKFkDuqDCP6n2HUAsgxPrLHwgZA+MZj5YngjKOp5pFthmX11fqM5wGJqPpovjteqhW3Hw9826TP2GKZ1kcRJV414OOTU4Mjh4ASDldt1g==]ResolutionThe resolution provided in the below KB fixes the issue.[code]KB0693863 - Test credentials return error to JSONObject[/code]====1. Make sure the mid server windows service "Log on as" account is either a local admin account, or has full permission to mid server folder. If point 1 is verified, please proceed following steps 2. On MID server host, stop MID server windows service 3. Delete the keystore file in agent/keystore folder. 4. Open config.xml and remove the keystore value. ie: 5. Start MID server windows service The mid server will start up as not validated. Click the validate link and the MID server should restart and then validated. ====