Test failed: Failed to execute task, PatternDebuggerTask, with failure message: class java.util.ArrayList cannot be cast to class java.lang.String (java.util.ArrayList and java.lang.String are in module java.base of loader 'bootstrap').
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 07:03 PM
Hello All,
Created an extension for Alcatel routers as the OOB network router pattern was unable to retrieve serial number and relations. Upon debugging the extension created, getting the following error as Scalar variable type. Also tried variable type as table, still getting the same error. Need to know what could be the resolution for it.
Thanks,
MSB
- Labels:
-
Discovery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 09:26 PM
I would recommend following the SNMP troubleshooting documented in the article below:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0696727
Check the MID Server log for any detailed information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2022 02:34 PM
Did you ever figure out what was going on? I'm getting the same error in an OOTB pattern.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 10:07 AM
I had this same error, found that its due to trying to insert an Array into a string. One of the "set parameter value" operation steps was referencing $entPhysicalTable[*].entPhysicalSerialNum and trying to target a specific field. Needed to change it to: $entPhysicalTable[1].entPhysicalSerialNum to get the row and column I actually needed. This resolves that error. It won't tell you what step this is happening in but you might find something similar.