You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to practice automating a Java Desktop Application using Ginger by Amdocs, I've followed the below links in order to launch the Application:
The Applications I've tried to automate are Android Studio and IntelliJ, both are 64bit on Windows 10
I've tried first with JDK8 and the application was able to launch and the agent as well, but the action itself fails with the below error:
Failed to execute the command, Error: java.io.IOException: Non-numeric value found - int expected
at sun.tools.attach.HotSpotVirtualMachine.readInt(HotSpotVirtualMachine.java:233)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:45)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:61)
at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:85)
at com.amdocs.ginger.GingerAgent.Attach(GingerAgent.java:151)
at com.amdocs.ginger.GingerAgent.main(GingerAgent.java:89)
Then I thought to try with JDK 11.0.10 instead of JDK8, but after configuring JDK11 and making sure that is correctly configured from CMD,
the application was not launched nor the agent, and I got the below in the action Execution report:
The Java path folder 'C:\Program Files\Java\jdk-11.0.10\bin' is not valid, please select the Java Bin folder.
could you please help me out to launch the java application correctly? thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear team,
I am currently trying to practice automating a Java Desktop Application using Ginger by Amdocs, I've followed the below links in order to launch the Application:
https://ginger-automation.github.io/Ginger-Web-Help/assets/Ginger_By_Amdocs/Configurations/Agents/02-_Agent_Configuration.htm#Java_Agent
https://ginger-automation.github.io/Ginger-Web-Help/assets/Ginger_By_Amdocs/Business_Flows/Actions/General_Action_Types/Launch_Java_Application_Action.htm?rhsearch=java%20drver&rhhlterm=java%20java%E2%80%99%20%E2%80%98java
The Applications I've tried to automate are Android Studio and IntelliJ, both are 64bit on Windows 10
I've tried first with JDK8 and the application was able to launch and the agent as well, but the action itself fails with the below error:
Failed to execute the command, Error: java.io.IOException: Non-numeric value found - int expected
at sun.tools.attach.HotSpotVirtualMachine.readInt(HotSpotVirtualMachine.java:233)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:45)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:61)
at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:85)
at com.amdocs.ginger.GingerAgent.Attach(GingerAgent.java:151)
at com.amdocs.ginger.GingerAgent.main(GingerAgent.java:89)
and this is the Ginger Agent Console log was:
2021-12-08 19:53:02.663 - SysOut - Ginger Agent Started
2021-12-08 19:53:02.683 - SysOut - ---------------------------------
2021-12-08 19:53:02.724 - SysOut - Process ID of Attached Application = 1700
2021-12-08 19:53:02.734 - SysOut - Port = 8888
2021-12-08 19:53:02.735 - SysOut - JAVA_HOME: C:\Program Files\Java\jdk1.8.0_202
2021-12-08 19:53:02.744 - SysOut - JAVA_HOME: C:\Program Files\Java\jdk1.8.0_202
2021-12-08 19:53:02.745 - SysOut - Package Version: null
2021-12-08 19:53:02.745 - SysOut - java.version: 11.0.10
2021-12-08 19:53:02.746 - SysOut - ManagementFactory Version: 11
2021-12-08 19:53:02.746 - SysOut - Ginger GINGER_JAVA_AGENT_VERSION: 3.9.0.0
2021-12-08 19:53:02.749 - SysOut - ---------------------------------
2021-12-08 19:53:02.750 - SysOut - Ginger: Starting Socket Server
2021-12-08 19:53:02.750 - SysOut - GingerAgent is configure to listen on port: 8888
2021-12-08 19:53:02.751 - SysOut - GingerAgent: Before Accept
Then I thought to try with JDK 11.0.10 instead of JDK8, but after configuring JDK11 and making sure that is correctly configured from CMD,
the application was not launched nor the agent, and I got the below in the action Execution report:
The Java path folder 'C:\Program Files\Java\jdk-11.0.10\bin' is not valid, please select the Java Bin folder.
could you please help me out to launch the java application correctly? thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions