Failed to instrument java process.....

Ask general questions here.
ejji09
Posts: 54
Joined: Thu Sep 10, 2015 2:48 pm

Failed to instrument java process.....

Post by ejji09 » Fri Nov 13, 2015 2:01 pm

Hi,

Am testing a java application and am getting an error as Failed to instrument java process. Please make sure you have enough privileges to access the process.

What could be the problem.. Is it a bug in Ranorex?

How to solve this issue. :roll:

And am getting a warning dailouge as
Attachments
Capture.PNG
Capture.PNG (6.11 KiB) Viewed 732 times

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Failed to instrument java process.....

Post by krstcs » Fri Nov 13, 2015 2:45 pm

Ranorex version?

Are you attempting to find a Java element before Java is fully started? The "new" way that Ranorex instruments Java causes these issues if you try to find a Java element before Java is fully started (I don't like the new way...).

You may just need to add a Delay action to your first module in between starting the app and finding the first item.

EDIT TO ADD: The warning doesn't technically cause any issues and your test won't be marked as a failure due to it. However, as a developer, warnings are not good, that is why I don't like this new way of instrumenting Java on-the-fly. In my opinion, Ranorex throws way too many warnings for silly things like this.
Shortcuts usually aren't...