'Type Into' Activity Not Working With Java Application

Why does not 'Type Into' Activity work anymore?

Issue Description: After an upgrade to a Java application the Type Into Activity (UiPath.UIAutomation.Activities earlier than 22.4.4) no longer successfully types into a text box on the application.

Troubleshooting : Reproduce the issue while capturing a DebugView log - KB Data Collection: Gather DebugView Logs For UIAutomation Issues .

Look for this stack:

JavaAccessBridge.cpp(1257)] Exception: call to Java getElemFromPoint

JavaAccessBridge.cpp(139)] JAVA EXCEPTION: java.lang.IllegalAccessError: class UiPathV8.Utils.InvocationUtils (in unnamed module @0x2fbb0473) cannot access class sun.awt.SunToolkit (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x2fbb0473

UiPathV8.Utils.InvocationUtils.invokeAndWait(InvocationUtils.java:75)

UiPathV8.UiPathBridgeImpl.getElemFromPoint(UiPathBridgeImpl.java:196)

UiPath.UiPathBridge.run(Native Method)

java.base/java.lang.Thread.run(Thread.java:833)


Resolution

  • If the above error is present, then upgrade UiPath.UIAutomation.Activities to v22.4.4+ and re-check behavior.

If the issue persists, add --illegal-access=warn to the Java command-line options for the Java application and re-check behavior.

1 Like

Thank you for this update ! This was exactly the situation i was in.