Java AWT/Swing error

Ask general questions here.
travisf
Posts: 2
Joined: Fri Feb 08, 2019 5:06 pm

Java AWT/Swing error

Post by travisf » Fri Feb 08, 2019 6:03 pm

Hello,

I am trying to test an application, but when I hit record in Ranorex and attempt to interact with it, I get this warning:
Ranorex Technology Limitation
Technology: Java AWT/Swing
Failed to instrument Java process. Please make sure you have enough privileges to access the process.
Process: 'javaw' (pid 11736)

Ranorex also sees the window as one object in the repository.

I have added the application, and the process it starts to my Whitelist.

Ranorex Version 8.3.2

Thanks in advance for any advice.

Travis

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Java AWT/Swing error

Post by odklizec » Fri Feb 08, 2019 8:52 pm

Hi,

Have you tried to run Ranorex Studio as administrator?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

travisf
Posts: 2
Joined: Fri Feb 08, 2019 5:06 pm

Re: Java AWT/Swing error

Post by travisf » Mon Feb 11, 2019 7:24 pm

On VMs where I can, this does seem to work, but it's not always a possibility. Are there any other workarounds?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Java AWT/Swing error

Post by odklizec » Mon Feb 11, 2019 8:14 pm

Hi,

In a therory, administrator mode should be required only in case the test is started in debug mode. So make sure the test is not started with attached debugger.

However, experience told us that there are some UI controls and technologies, which still require admin mode :) Unfortunately, there is not much anyone here can do or suggest without examining the app under test. So if disabling debugger does not solve your problem, I would suggest to contact directly Ranorex support (via their support form) and request a remote session with them, so they can evaluate your problem in real-time and possibly suggest a workaround (if there is any).
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

abimathi
Posts: 1
Joined: Mon Jun 01, 2020 10:44 am

Re: Java AWT/Swing error

Post by abimathi » Mon Jun 01, 2020 10:56 am

SceniumWarning.PNG
Hi, Even im facing the same error, When i try to detect the third party app which is based on java platform, Its not detecting and a warning is shown " Failed to detect java process" , I'm using Ranorex version 6.2.1, any idea how to rectify this? Have attached the warning image as well.
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Java AWT/Swing error

Post by Support Team » Tue Jun 02, 2020 7:51 am

Hello abimathi,

The error message basically states that the process of your AUT and Ranorex are not started with the same privilleges. It seems to be a permission issue. Also, I can see that you are using an old version of Ranroex. I would recommend updating Ranroex to the newest version.

Regards,
Bernhard