{"action":"opened","issue":{"url":"https://api.github.com/repos/robotframework/SwingLibrary/issues/62","labels_url":"https://api.github.com/repos/robotframework/SwingLibrary/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/SwingLibrary/issues/62/comments","events_url":"https://api.github.com/repos/robotframework/SwingLibrary/issues/62/events","html_url":"https://github.com/robotframework/SwingLibrary/issues/62","id":55456391,"number":62,"title":"RemoteSwingLibrary unable to connect to started process","user":{"login":"suzukieng","id":3542048,"avatar_url":"https://avatars.githubusercontent.com/u/3542048?v=3","gravatar_id":"","url":"https://api.github.com/users/suzukieng","html_url":"https://github.com/suzukieng","followers_url":"https://api.github.com/users/suzukieng/followers","following_url":"https://api.github.com/users/suzukieng/following{/other_user}","gists_url":"https://api.github.com/users/suzukieng/gists{/gist_id}","starred_url":"https://api.github.com/users/suzukieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suzukieng/subscriptions","organizations_url":"https://api.github.com/users/suzukieng/orgs","repos_url":"https://api.github.com/users/suzukieng/repos","events_url":"https://api.github.com/users/suzukieng/events{/privacy}","received_events_url":"https://api.github.com/users/suzukieng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-26T08:19:54Z","updated_at":"2015-01-26T08:19:54Z","closed_at":null,"body":"I'm trying to test a Swing application that I start using a shell script. The environment is Mac OS X 10.10 and Java 1.6.0 (the application requires a 32-bit VM, which I force by using -d32, this is not possible with the newer Oracle JVMs).\r\n\r\nI can connect to the application using RemoteSwingLibrary, but *only* if I do not start the shell script out of robot framework. If I just use \"Application Started\", set the port to some fixed value while importing the Library, and then start the application from a shell using the appropriate -javaagent string to start the application outside of robot, it works.\r\n\r\nI'm using Start Process and not Run Process so it should be executing in the background.\r\nI'm not 100% sure if this is a robotframework issue, or if I'm misunderstanding the interaction between RemoteSwingLibrary and Process libraries.\r\n\r\nExcerpt from test:\r\n```\r\n*** Settings ***\r\nLibrary    RemoteSwingLibrary\tdebug=True\tport=8090\r\nLibrary    OperatingSystem\r\nLibrary    Process\r\n\r\n*** Test Cases ***\r\nMy Test Case\r\n\t[Timeout]\t60 seconds\r\n\t${handle}=\tStart Process\t/Users/ahs/robot_testing/run_client.sh\r\n\tApplication Started\tapp\ttimeout=60\r\n\tSystem Exit\r\n```\r\n\r\nShell script (minus confidential stuff) that starts the client. The only \"unusual stuff\" is the forcing of a 32-bit VM, and maybe setting endorsed dirs (for some Webservice related stuff).\r\n\r\n```\r\n#!/bin/bash\r\nexport JAVA_HOME=\"/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home\"\r\nROBOT_TESTING_HOME=\"/Users/ahs/robot_testing\"\r\ncd \"$CLIENT_INSTALL_DIR\"\r\nexport JAVA_TOOL_OPTIONS=\"-javaagent:${ROBOT_TESTING_HOME}/remoteswinglibrary-2.0.0.jar=127.0.0.1:8090\"\r\n$JAVA_HOME/bin/java \\\r\n    -d32 \\\r\n\t-Xbootclasspath/a:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources/LauncherSupport.jar \\\r\n\t-cp \"${CLIENT_INSTALL_DIR}/lib/*:${CLIENT_INSTALL_DIR}/lib/mac/*\" \\\r\n\t-Djava.endorsed.dirs=\"lib/endorsed\" \\\r\n\t-Djava.library.path=\"${CLIENT_INSTALL_DIR}/lib:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources\" \\\r\n\t-Djsse.enableSNIExtension=false \\\r\n\t-Dinstall4j.swt=false -Dinstall4j.launcherId=29 \\\r\n\t-Dexe4j.moduleName=\"/Applications/Client.app\" \\\r\n\tsomething.something.Client log.debug=true\r\n```\r\n\r\nAgain, what stumps me is if I run robot and then the shell script separately, it works, if I Start Process the shell script, no deal, what I see then is:\r\n\r\n```\r\n[ahs@varda robot_testing]$ PYTHONPATH=`pwd`/remoteswinglibrary-2.0.0.jar pybot -L DEBUG client_remote_test.txt \r\n==============================================================================Client Remote Test                                                        \r\n==============================================================================\r\n[ WARN ] Adding keyword 'collapseTreeNode' to library 'RemoteSwingLibrary' failed: Calling dynamic method 'get_keyword_arguments' failed: Test timeout 1 minute exceeded.\r\nMy Test Case\r\n```\r\n\r\nI then have to terminate using Ctrl-C, otherwise robot hangs forever.\r\n\r\nAny hints, clues, pointers how to debug this would be greatly appreciated."}}