MarketSquare / MarketSquare/remoteswinglibrary
Use the "Start Application" keyword to start the Sample but "RemoteSwingLibrary.RemoteSwingLibraryTimeoutError: Agent port not received before timeout" appears Error message
- Dominant language
- Python
- Stars
- 32
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
I issued the following command and it successfully ran the sample but couldn't connect the Sample causing the keyword to fail. Another point I use the same command for another example to run and connect fine.
So it is successfully started then try to listed to the port then it couldn't find it!!!!
Robotframework:
Start Application my_app java -classpath "C:\\Program Files\\DigitalPersona\\U.are.U SDK\\Windows\\Samples\\Bin\\Java\\UareUSampleJava.jar";"C:\\Program Files\\DigitalPersona\\U.are.U SDK\\Windows\\Lib\\Java\\dpuareu.jar" UareUSampleJava timeout=120
Windows: Windows 10x64
Python: 3.8.10
JAVA: jre1.8.0_361
RTL:2.3.1
Debug log:
20230217 13:17:17.955 : INFO : Link to stdout
20230217 13:17:17.955 : INFO : Link to stderr
20230217 13:17:17.955 : INFO : -javaagent:"C:\Users\yuwsuu\AppData\Local\Programs\Python\Python38\Lib\site-packages\remoteswinglibrary-2.3.1.jar"=127.0.0.1:56306:DEBUG
20230217 13:17:17.955 : INFO : Java version > 9: False
20230217 13:17:17.957 : INFO :
Starting process:
java -classpath "C:\Program Files\DigitalPersona\U.are.U SDK\Windows\Samples\Bin\Java\UareUSampleJava.jar";"C:\Program Files\DigitalPersona\U.are.U SDK\Windows\Lib\Java\dpuareu.jar" UareUSampleJava
20230217 13:19:17.971 : INFO :
Failed to start application: Traceback (most recent call last):
File "C:\Users\yuwsuu\AppData\Local\Programs\Python\Python38\Lib\site-packages\remoteswinglibrary-2.3.1.jar\RemoteSwingLibrary.py", line 446, in start_application
self._application_started(alias, timeout, name_contains, remote_port, accept_old=False)
File "C:\Users\yuwsuu\AppData\Local\Programs\Python\Python38\Lib\site-packages\remoteswinglibrary-2.3.1.jar\RemoteSwingLibrary.py", line 495, in _application_started
url = self._get_agent_address(name_contains, accept_old)
File "C:\Users\yuwsuu\AppData\Local\Programs\Python\Python38\Lib\site-packages\remoteswinglibrary-2.3.1.jar\RemoteSwingLibrary.py", line 516, in _get_agent_address
raise RemoteSwingLibraryTimeoutError('Agent port not received before timeout')
RemoteSwingLibrary.RemoteSwingLibraryTimeoutError: Agent port not received before timeout
20230217 13:19:17.971 : INFO : Waiting for process to complete.
20230217 13:19:17.986 : INFO : Process did not complete in 10 milliseconds.
20230217 13:19:17.986 : INFO : Leaving process intact.
20230217 13:19:17.986 : INFO : Process is running, but application startup failed
20230217 13:19:17.987 : FAIL : RemoteSwingLibraryTimeoutError: Agent port not received before timeout
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with RemoteSwingLibrary.py, especially start_application and _get_agent_address, using the supplied Start Application command and debug log. Reproduce the timeout with the DigitalPersona U.are.U sample and compare it with the example that connects successfully. Done means the cause of the missing agent port is identified and the issue has a verified resolution or a documented limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, python
- Domain
- desktop, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100