My Java application crashes when UiPath is interacting with a SunAWTWindow.
The windows application event log captures the following:
UiPath.Service.UserHost 21.10.4.0 VActivate/21dc0fef-5c24-4166-a2a2-4776bb6f164c finished with Failed (was Processing) RemoteException wrapping UiPath.Core.InvalidUiElementException: Invalid UI node. at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom) at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom) at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Is this something that can be fixed in a future release?
Is there something I can do to prevent this?
Sometimes it works perfectly, while other times, I get the above error.
The error is pretty generic so we would need some better type of logs to see what is going on there. A good way to retrieve that kind of logs is by following the next steps:
Add an environment variable called UIPATH_LOG_LEVEL with the value VERBOSE
I am able to see the verbose message with Debugview. The Java application no longer crashes, when UiPath is executing an automation script. The only major change was I can think of is that I applied the January 11 2022 Patch Tuesday Windows 11 updates.
Perhaps that fixed things!
Regardless, your approach to tracking down java related issues is very helpful. Thank you!