The exception suggests the script could not be executed because there is an error.
The error is caused by "java.util.NoSuchElementException: was not found" which reports that there was an element missing.
Caused by: java.util.NoSuchElementException: was not found
And the missing element is an "ExtensionType".
This is Type for the application so it must be that the Application Type was missing a value.
It is possible the Application Type has changed at one point resulting in this situation.
Solution would be to discard the target application and the associated target account and recreate them.
When recreating the target application, please specify the correct application "Type" from the start.