HRESULT E_FAIL has been returned from a call to a COM component in Java Swing Application


#1

Hi,

I am running an automation against a Java swing client in production. However, this exception is thrown some times. Has anyone experienced this working with Java swing clients before? The exception occurs on a type into activity.

Its difficult to read anything from this exception message, and I have looked online to find an answer to this without any luck :frowning: Does it have something to do with the java application not responding, or is this something that can be fixed from Studio? Please share if you have had similar experiences or a fix to this :smiley:


#2

Studio version?
What are you typing and into what kind of element?
Java app version with which the app has been built and the installed version on the system.


#3

Thank you for the reply @Gabriel_Tatu

Studio version 2017.1.6522 Enterprise
I am using a type into activity and typing into a text box in the java application.

That application uses java version 1.8.0_60
Javaâ„¢ SE Runtime Environment build 1.8.0_60-b27
JavaHotspotâ„¢ 64Bit server VM (build 25.60-b23, mixed mode)


#4

Any help on this issue @Gabriel_Tatu?


#5

I need to know if that activity is failing only on that java app or for any other app (like notepad for example)
Until we narrow it down, there s nothing i can help with. You can use a trycatch and retry if its failing, as a workaround until i can figure out whats the problem.
Also i would suggest upgrading to latest studio -18.1.2


#6

Thank you for the quick reply, I have not experienced that error with other applications like notepad, excel etc. while developing. I have implemented exception handling for this issue so its not a problem for now. I will look into updating Studio as well.

Its a bit difficult to narrow it down as the activity fails on rare occasions, and the exception message does not give me a lot of information. The job has run the last 24 times without that issue, but i am just curious why that exception occurs and if any others had experience with java applications responding with the HRESULT exception.


#7

create a test workflow, just with type into that java app, run it in a loop for 1000 times without any delays, count how many times it fails.


#8

Ok, I will test it out and come back to you with the results.