Service Virtualization

Expand all | Collapse all

DevTest installed on a CITRIX Server, keeps crashing!

Shiney Abraham

Shiney AbrahamMay 08, 2017 10:33 AM

Legacy User

Legacy UserMay 09, 2017 01:57 PM

  • 1.  DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 08, 2017 10:15 AM

    We have a constraint in our project that some of the services/VPNs that are behind a very strict firewall can be accessed through few specific machines only. 

    So in order to test those, we installed DevTest on one of the machines and use CITRIX receiver to pull an instance of DevTest on our local machines. The project is kept on a shared drive (individual to each user) that can be accessed through CITRIX.

    It works fine when only a single user is using the machine. However, when multiple people are working on CITRIX, sometimes it works fine but crashes when we try open some specific file the project. (Everything opens up smoothly until I select a test case).

    Here's the workstation log : (it always throws this exception : class java.io.IOException Failed to bind to server socket)

     

    2017-05-08 13:59:59,681Z (08:59) [ProcDlgThreadCallbk@2b02ce58] INFO com.itko.lisa.test.TestCase - Name: SIT_Security Setup Version: 5 created with LISA 9.5.1 (9.5.1.6)
    2017-05-08 13:59:59,806Z (08:59) [ProcDlgThreadCallbk@68a292c3] INFO com.itko.lisa.net.ActiveMQFactory - Starting amq broker
    2017-05-08 13:59:59,837Z (08:59) [ProcDlgThreadCallbk@68a292c3] INFO com.itko.lisa.net.ActiveMQFactory - Starting amq broker 'lisa0' we will listen on port 2008 and address 0.0.0.0
    2017-05-08 13:59:59,884Z (08:59) [ProcDlgThreadCallbk@68a292c3] ERROR com.itko.lisa.net.ActiveMQFactory - Bad start
    java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:2008/A009D6DA33F611E7AC25CAB120524153 due to: java.net.BindException: Address already in use: JVM_Bind
    at com.itko.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
    at com.itko.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:139)
    at com.itko.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
    at com.itko.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
    at com.itko.activemq.broker.BrokerService.createTransportConnector(BrokerService.java:1941)
    at com.itko.activemq.broker.BrokerService.addConnector(BrokerService.java:253)
    at com.itko.lisa.net.ActiveMQFactory.startBroker(ActiveMQFactory.java:438)
    at com.itko.lisa.net.ActiveMQFactory.getBrokerServerQueueConnection(ActiveMQFactory.java:595)
    at com.itko.lisa.net.ServerRequestHandler.startRemoteServer(ServerRequestHandler.java:272)
    at com.itko.lisa.net.ServerRequestHandler.startRemoteServer(ServerRequestHandler.java:261)
    at com.itko.lisa.net.ServerRequestHandler.registerTarget(ServerRequestHandler.java:108)
    at com.itko.lisa.coordinator.LisaServerObjectImpl.register(LisaServerObjectImpl.java:105)
    at com.itko.lisa.test.DataSetImpl.dataSetFactory(DataSetImpl.java:665)
    at com.itko.lisa.test.DataSetImpl.loadDataSets(DataSetImpl.java:610)
    at com.itko.lisa.test.TestCase.prepareToStage(TestCase.java:988)
    at com.itko.lisa.editor.TestCaseInfo.initFromScratchTestCase(TestCaseInfo.java:415)
    at com.itko.lisa.editor.TestCaseInfo.<init>(TestCaseInfo.java:273)
    at com.itko.lisa.editor.TestCaseInfo.createTestCaseInfo(TestCaseInfo.java:351)
    at com.itko.lisa.editor.TestCaseEditor$2.doCallback(TestCaseEditor.java:385)
    at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.BindException: Address already in use: JVM_Bind
    at java.net.TwoStacksPlainSocketImpl.socketBind(Native Method)
    at java.net.TwoStacksPlainSocketImpl.socketBind(Unknown Source)
    at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
    at java.net.TwoStacksPlainSocketImpl.bind(Unknown Source)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at javax.net.DefaultServerSocketFactory.createServerSocket(Unknown Source)
    at com.itko.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:135)
    ... 19 more
    2017-05-08 13:59:59,884Z (08:59) [ProcDlgThreadCallbk@68a292c3] INFO System.out - WARNING: Failed to start a server listener at port 2,008
    2017-05-08 13:59:59,884Z (08:59) [ProcDlgThreadCallbk@68a292c3] ERROR com.itko.lisa.net.ActiveMQFactory - Failed to start a server listener at port 2,008
    2017-05-08 13:59:59,884Z (08:59) [ProcDlgThreadCallbk@68a292c3] INFO System.out - WARNING: Reason: class java.io.IOException Failed to bind to server socket: tcp://0.0.0.0:2008/A009D6DA33F611E7AC25CAB120524153 due to: java.net.BindException: Address already in use: JVM_Bind
    2017-05-08 13:59:59,884Z (08:59) [ProcDlgThreadCallbk@68a292c3] ERROR com.itko.lisa.net.ActiveMQFactory - Reason: class java.io.IOException Failed to bind to server socket: tcp://0.0.0.0:2008/A009D6DA33F611E7AC25CAB120524153 due to: java.net.BindException: Address already in use: JVM_Bind
    2017-05-08 13:59:59,884Z (08:59) [ProcDlgThreadCallbk@68a292c3] INFO System.out - WARNING: Almost certainly there is another server running on this machine with the same port number
    2017-05-08 13:59:59,884Z (08:59) [ProcDlgThreadCallbk@68a292c3] ERROR com.itko.lisa.net.ActiveMQFactory - Almost certainly there is another server running on this machine with the same port number
    2017-05-08 13:59:59,884Z (08:59) [ProcDlgThreadCallbk@68a292c3] INFO System.out - WARNING: Change the name by setting the appropriate lisa property (lisa.registryName, lisa.coordName,
    2017-05-08 13:59:59,884Z (08:59) [ProcDlgThreadCallbk@68a292c3] ERROR com.itko.lisa.net.ActiveMQFactory - Change the name by setting the appropriate lisa property (lisa.registryName, lisa.coordName, 



  • 2.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Broadcom Employee
    Posted May 08, 2017 10:33 AM

    What version of DEVTEST are you running? 



  • 3.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 08, 2017 11:37 AM

    9.5.1



  • 4.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Broadcom Employee
    Posted May 08, 2017 01:03 PM

    Can you check to see if you have multiple workstations on the same machines? Are all the components on the same machine?  Could you give us more details on the Citrix environment?  

     

    we would like to look at this issue in a webex.  Is it possible for you to open a ticket with CA support ? 



  • 5.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 09, 2017 01:53 PM

    Thanks Shiney for your reply. Let me check if I can schedule it some time. I'll get back to you on this.



  • 6.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 09, 2017 07:09 AM

    The problem here is most likely that all of your workstation instances are configured to use the same port - by default 2008. Since all of the workstation instances will be running on the same machine, you will need to configure this on a per-instance basis.

    This may be done by specifying property 

    lisa.net.0.port

     

    in a copy of local.properties specific to the user.  the default setting is

    lisa.net.0.port=2008

     

    When choosing another port, be aware of the ports already used by DevTest - as a suggestion only, perhaps start at 3008...



  • 7.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 09, 2017 01:57 PM

    Hi Dave, it is not a shared installation, but a standalone installation which is being pulled to remote user. 

     

    "Citrix software virtualizes Windows applications, desktops, and resources to publish them to remote users."

     

    So in this case which local.properties should be modified?



  • 8.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 10, 2017 04:01 AM

    Hi,

    Is this a virtual desktop environment from Citrix? If so, then the desktop is displayed locally but all actual execution takes place remotely on a shared server/cluster. It is at the Citrix server end that you will have your conflict. 

     

    So, unless each individual running DevTest has a unique machine to run on, there will be conflict unless the ports are changed. 



  • 9.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 10, 2017 10:22 AM

    Dave, That is true. It is indeed a virtual desktop environment from citrx. 

     

    So, multiple users are executing on the same server/cluster. So, is there a way I can change these port number?



  • 10.  Re: DevTest installed on a CITRIX Server, keeps crashing!
    Best Answer

    Posted May 10, 2017 11:29 AM

    Yes.

    One way might be:

    • Copy the Workstation.exe file (inside the bin directory) to a unique name - perhaps something like Workstation_dave.exe.
    • Then, copy the Workstation.vmoptions file to Workstation_dave.vmoptions. 
    • Now, inside the vmoptions file, put
      • -Dlisa.net.0.port=<your chosen port number>  on a line of its own

    Now, starting Workstation_dave will result in a Workstation instance with a unique ActiveMQ port, as specified in the vmoptions file

     

    In this way I am able to run multiple instances of Workstation.

     

    You must, however, still pay attention to ports that you may use, for instance when staging a quick test or running the ITR - the way you allocate ports will need to be a matter of local policy.

     

       Dave.



  • 11.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 19, 2017 01:20 AM

    Thanks Dave!

     

    I was facing exactly same issue. Your solution resolved my issue.



  • 12.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted Jun 22, 2017 11:45 AM

    Hey Dave,

     

    Sorry for the late reply.

     

    This solved our problem. Now, it's working fine



  • 13.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted Jun 22, 2017 11:50 AM

    Thanks for letting me know - glad you are up and running



  • 14.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 09, 2017 07:47 AM

    GoT,

    Did Dave's recommendation help resolve this issue?

    Regards,

    Reid



  • 15.  Re: DevTest installed on a CITRIX Server, keeps crashing!

    Posted May 09, 2017 01:57 PM

    Hey Reid, I'm still working on it.