Multiple clients connected to LocalConnectionServer

I'm trying to use the LocalConnection example application to
test a few scenarios for Cocomo, and I'm unable to run more than
one client instance on the same computer. Once the exception
occurs, the entire state of the system seems to be unstable, and I
have to restart the LocalConnectionServer. For specifics, it gacks
on the startup of the second client with the following exception:
ReferenceError: Error #1065: Variable flash.media::SoundCodec
is not defined.
at com.adobe.rtc.clientManagers::MicrophoneManager/get
selectedMic()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\clientManagers\Microp honeManager.as:155]
at com.adobe.rtc.clientManagers::MicrophoneManager/set
_1703516469micIndex()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\clientManager s\MicrophoneManager.as:121]
at com.adobe.rtc.clientManagers::MicrophoneManager/set
micIndex()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\clientManagers\Microphon eManager.as:117]
at
com.adobe.rtc.clientManagers::MicrophoneManager()[C:\work\main\connect\cocomoPlayer10\src \com\adobe\rtc\clientManagers\MicrophoneManager.as:77]
at
com.adobe.rtc.clientManagers::MicrophoneManager$/getInstance()[C:\work\main\connect\cocom oPlayer10\src\com\adobe\rtc\clientManagers\MicrophoneManager.as:88]
at
com.adobe.rtc.sharedManagers::StreamManager/findCodec()[C:\work\main\connect\cocomoPlayer 10\src\com\adobe\rtc\sharedManagers\StreamManager.as:1839]
at
com.adobe.rtc.sharedManagers::StreamManager/onUserAdd()[C:\work\main\connect\cocomoPlayer 10\src\com\adobe\rtc\sharedManagers\StreamManager.as:1811]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
com.adobe.rtc.sharedManagers::UserManager/userReceivedOrEdited()[C:\work\main\connect\coc omoPlayer10\src\com\adobe\rtc\sharedManagers\UserManager.as:988]
at
com.adobe.rtc.sharedManagers::UserManager/onItemReceive()[C:\work\main\connect\cocomoPlay er10\src\com\adobe\rtc\sharedManagers\UserManager.as:841]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.rtc.sharedModel::CollectionNode/
http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItem()[C:\work\main\co nnect\cocomoPlayer10\src\com\adobe\rtc\sharedModel\CollectionNode.as:741
at com.adobe.rtc.messaging.manager::MessageManager/
http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItem()[C:\work\main\co nnect\cocomoPlayer10\src\com\adobe\rtc\messaging\manager\MessageManager.as:661
at com.adobe.rtc.messaging.manager::MessageManager/
http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItems()[C:\work\main\c onnect\cocomoPlayer10\src\com\adobe\rtc\messaging\manager\MessageManager.as:536
at
com.adobe.rtc.session.managers::SessionManagerBase/receiveItems()[C:\work\main\connect\co comoPlayer10\src\com\adobe\rtc\session\managers\SessionManagerBase.as:374]

Hi Rick,
From the looks of it, you're compiling against the FP10 swc,
but haven't set your project to require Flash Player 10 - the
exception is referring to player internals. If you look at Project
Properties->Flex Compiler, is your "Require Flash Player
Version" set to 10.0.0 or higher?
thanks
nigel

Similar Messages

  • Multiple clients on socket connection

    Hi!
    I understand that it is possible that multiple clients listen to one server (on the same port) and even write to it (then it should be a multi-threaded server).
    But i would like to refuse connectios, if one client is connected. How can I do that?
    In my case I have a (single threaded) server. Now one clients connects. The server waits to receive data from the client and answers, without ever closing the port. that works.
    Now if I connect with a second client, the openicng of the socket in the second client works fine, although the server does not seem to notice the second client. Communication is not possible between the server and the second client, and the server doesn't answer to the first client anymore, although he receives data from it.
    So, since the server does not seem to notice the second client (does not accept the connection) and I don't get an exception at the second client, what can I do?
    Thank you for your help!
    concerned Code (if you want to take a look at it):
    CLIENT:
    socket = new Socket(hostname, echo_port);
    SERVER:
    try
    ServerSocket waitingsocket = new ServerSocket(echo_port);
    try
         socket= waitingsocket.accept();
         System.out.println("Client connected");
         ReaderThread reader = new ReaderThread( this, socket );
         reader.start();          
    catch (Exception e)
    READER:
    public void run()
         while (true)
              try {
                   int bytesRead = inStream.read(inputBuffer,
                   0, inputBuffer.length);
                   readCallback.tcpUpdate(inputBuffer,bytesRead);
              catch (Exception oops)
                   readCallback.tcpUpdate(null,-1);
              

    Just to make sure this is clear: You can NOT have multiple clients on a given socket connection. You CAN have multiple clients connected to a particular port on a given server, but each client will be communicating with the server through a different of socket.
    The usual approach here is to set up a listening ServerSocket on the desired port, call accept() on it, then process the communication from the returned Socket object. This is usually done by spawning a new thread and allowing it to handle the socket communication, while the ServerSocket loops around to another accept() for the next communication.
    Here's an excellent intro to the concepts (the code is really ugly and poorly implemented, but it does a good job of explaining the overall concept). I used this as a starting point, and now (after a whole lot of development) have a pretty sweet extensible web server class that handles template expansion, etc... (I use this as a quick and dirty UI for some of my apps, instead of requiring the user to install a JSP container):
    http://developer.java.sun.com/developer/technicalArticles/Networking/Webserver/
    - K

  • File transfer to multiple clients from server socket

    I have multiple clients connected to my server socket and I need to copy more than 200mb documents from server to all clients over socket. Can we design the issue considering scalability and performance factor? What I am thinking of we should use thread for transferring file from server to client. But at the same time if we have large number of clients then we can't initialize a thread for each client. I think in this case we should initialize less than 10 threads in the pool as the file size is very large. If we keep number of threads in the pool low then probably we have to read multiple times the large server file (once for each group) which might again be a performance bottleneck. Please pour in your suggestions.

    File would be same for an instance only. For example say I have a "SEND File" button & �File Path� text box. In File Path suppose user enters the absolute path of the file and then clicks on Send File button. The responsibility of Send File button would be sending the file mentioned in the "File Path" text box to all connected client. But next time user can choose a different file.

  • How can I connect multiple clients to a single client ?

    I am currently developing an instant messaging program.I created a server and connected multiple clients to it by using thread logic.However I do not know how to connect multiple client to a single client.
    What shall I do for that?Does anybody know a good tutorial or sample program?Or shall anybody explain me what I shall do for building the Instant Messaging part of my chat program?
    Thank u in advance.

    You may use UDP multicast socket. But since you are using the UDP protocol you might risk losing the data that you send since UDP does not guarantee the safe transfer of data.
    Alternately, you might create a server that allows multiple client to connect to it whose connection Socket objects are then stored in a Vector <Socket> object. The server then sends back data to the connected client about the other clients connected to it. Now when the client wants to send data (like an IM) to another connected client, it has to send a request to the server specifying the client login name and the server in turn streams that particular client's Address and Port to the requesting client. The requesting client then initiates the connection with the other client and then starts a conversation. One more thing, when the client communicates it needs to send information to the server like the name by which it likes to be referenced. In this scenario the server acts like a central repository for clients to query the existence of other clients in the chat room. Each client here runs a thread that listens to incoming connections and when a connection is established, may be opens a IM window or something.
    The third option is to make the server to relay the information from one client to another. Like say, I'm connected to whoopy server and i want to send "Hello" to jackson, then i send the message (ie, Hello) along with the name of the client to which i wish to send it to (ie, jackson). The server then performs a lookup in its Vector <Socket> object and then initiates a connection with jackson and sends the information. However, this method is pretty costly in that you will be wasting a lot of processing behind the server.
    --Subhankar
    P.s. If you stumble upon any other brilliant ideas let me know.

  • Connect CRM multiple clients to ECC

    Hi SAP Gurus,
    I have one Question regarding CRM->ECC connectivity.
    Will it be possible to connect multiple clients of CRM to ECC ? Like more than one client can talk to ECC ?
    Because in BW we can not connect multiple clients to source system ! does this true with CRM also or not ?
    Thank you

    1) As datasources are client independent so do we need to activate the datasources (like 2lis*) in all clients one by one? or just activating in one client will make it ?
    You need to activate the datasources individually for all the client. If you will activate in one client, it will be specific to that only
    ) If we replicate the datasources for new clients in BW side and then want to reload the data from New clients (set-up tables filling and INIT)?would it have an affect on existing deltas (for datasources 2lis*)for existing Source client 100? What shud be the precautions? How we can proceed?Please let us know your opinons plz
    If you will replicate in one client system, it wont affect delta and init from other client.
    One thing you can do, to identify data from different source systems, you can use source system compounding in your infoobjects. Make sure you are not loading data from both the client at the same time. it may lock the DSO and master data.

  • Connecting to multiple clients

    I have a question. i have one client and one server. the server connects a client and send some data which i am able to achieve it. my question is (is there a way to connect the same server to multiple clients?) secondly i want to make a check lets say that one client machine can accept only 30 data like (Dell $30.00). once the client recieve 30 data my client should say that i am full and then the client should write the data to another client machine ? is it possible?

    If you feel like getting fancy, a scalable server could use NIO: http://java.sun.com/j2se/1.5.0/docs/guide/nio/index.html

  • Multiple JCO client connections

    Hi guys!
    I need to configure more then one JCO client connection that points to different SAP/R3 instances. Is it possible? If yes, can I map and run RFCs from couple instances in the same WD application? PS: The RFCs have the same name....
    I realy don't think so.
    Suggestions??
    Tks
    Borges, Alexandre

    Hi guys....
    This topic solve my question....
    Re: JCO connection to multiple R/3 Back end system
    Tks
    Borges, Alexandre

  • Connect Exception when I run multiple client processes

    hi All,
    I run a web logic RMI server on my machine and bind an object. When i try
    to run about 40 multiple clients (each client is a java process) i am refused
    connection. Why???

    wrong url, apparently.
    open the admin console and see that the url from your deployment is. try entering that into the browser instead of what you used to get the 404.
    also, check the logs.
    %

  • Understanding of wireless client connection to multiple APs

    Hello,
    I would like to know how do wireless clients connect to APs
    For e.g. if in a single floor square office space - wireless network with multiple APs exists on the same SSID, how do clients decide which AP to connect to. For e.g. the client may get similar strength signals from two APs close to each other (such as Excellent). Which AP does client connect to.
    Secondly, how does the load distribution take place. For e.g. if on one AP, 10 clients connect and on the other AP, 20 clients connect, how can equal load distribution be acheived, that is 15 on each AP without the tiring MAC filtering configurations.
    Thirdly, is there something like number of user/connection restrictions on APs. I have gone through some AP manuals and did not find any such specifications like max. # of users = 20 etc. Currently we are using D-Link AP and have noticed that once the # of connections go upto 20, performance reduces heavily such as the latency on gateway pings go upto 1000-2000ms.
    Fourthly, how can I identify from the client to which AP it is connected.
    Thanks.

    I would like to know how do wireless clients connect to APs
    For  e.g. if in a single floor square office space - wireless network with  multiple APs exists on the same SSID, how do clients decide which AP to  connect to. For e.g. the client may get similar strength signals from  two APs close to each other (such as Excellent). Which AP does client  connect to.
    ANS - Its first come first serve... however.. sometimes if we have multiple SSIDs one with open auth and no encryption and other fuly protected.. then the client wil connect to the open rather the secured on.
    Secondly, how does  the load distribution take place. For e.g. if on one AP, 10 clients  connect and on the other AP, 20 clients connect, how can equal load  distribution be acheived, that is 15 on each AP without the tiring MAC  filtering configurations.
    ANS - MAC is a good option but apart from that.. i have seen somewhere but not able to remember the command which will limit the number of clients per radio..
    Thirdly, is there  something like number of user/connection restrictions on APs. I have  gone through some AP manuals and did not find any such specifications  like max. # of users = 20 etc. Currently we are using D-Link AP and have  noticed that once the # of connections go upto 20, performance reduces  heavily such as the latency on gateway pings go upto 1000-2000ms.
    ANS - AP can take upto 2048 MAC addresses.. its recommended not to have more than 24 clients per AP..
    Fourthly, hw can I identify from the client to which AP it is connected.
    ANS -If the clients are CCX compatible and aironet extentions enabled on the AP. then the command "show dot11 ass" will tell the clients connecting to which AP.. the AP name will get displsayed in the output..
    Regards
    Surendra

  • Accepting connection from multiple client

    Hi, i try to open a port on the server and allows others client to connect to this port and sent in data. It works well when it's 1 server to 1 client relationship. But when i turn on 1 server to many client connection where all the client will connect at the same time... none of the client data were capture in the server. Here is my code :
    Server code:
    static class Listener extends Thread
              public void run()
                   ServerSocket svrSocket;
                   Socket soc;
                   try
                        svrSocket = new ServerSocket(20);
                        System.out.println("---------------------------------------");
                        soc = svrSocket.accept();
                        System.out.println("---------------------------------------");
                        BufferedReader in = new BufferedReader(new InputStreamReader(soc.getInputStream()));
                        String strTest;
                        while((strTest = in.readLine()) != null)
                             System.out.println("SEE THIS !!!!!!!!!!!!! " + strTest);
                   catch(Exception e)
                        e.printStackTrace();
    Client code:
    socClient = new Socket("10.1.8.101", 4444);
    outPrintWriter = new PrintWriter(socClient.getOutputStream(), true);
    outPrintWriter.println(strWrite);
    Can anyone help me??? IT"S URGENT....
    THANKS

    Your code will only handle one connection at a time currently. To handle more connections it needs to be reorganized, see below. Also, you may be having a problem with binding port 20 in your server and trying to connect to port 4444 in your client. These ports obviously have to be the same or its never going to work at all! :-)
    Without getting into thread pools and stuff, this is a sample of how you might want to organize your server.
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class SocServ implements Runnable {
        // running flag set to false to stop server.
        public static boolean isRunning=true;
        // set of servicing threads, if needed.
        private static Set servicers = new HashSet();
        public void run() {
            ServerSocket svrSocket;
            Socket soc;
            Thread t;
            // open the server socket, error if port is in use, etc.
         try {
                svrSocket = new ServerSocket(4096);
                // accept connections, and start new SocServicer threads.
                while (SocServ.isRunning) {
                    soc = svrSocket.accept();
                    t = new Thread(new SocServicer(soc));
              SocServ.servicers.add(t);
                    t.start();
                // server finished, close socket
                svrSocket.close();
            } catch (IOException e) { e.printStackTrace(); }
    import java.net.*;
    public class SocServicer implements Runnable {
         // socket connection being serviced...
         Socket s;
         public SocServicer(Socket soc) { s=soc; }
         public void run() {
              if (s==null) { return; } // for sanity
              * Do all the interaction with each socket here.
    }The idea is to run one thread that listens for connections and then spawn new threads to process each connection. This way one connection does not have to wait for the previous one to finish. For a serious application you will probably want to do some more careful management of the SocServicer threads [because each thread eats up memory & resources].

  • How to use multiple clients within JCO?

    Hi,
    I'm pretty new to configuring Web Dynpro's with it's JCO connections. I have the following question.
    We are using one portal (SAP EP 6.0_640 SP15) and one R/3 system (SAP ECC 5.0) with multiple clients (multiple customers who are all using the same portal).
    Do I have to deploy a web dynpro for each client and maintain it's JCO connection for each client?
    Or is there another way how I can set this up?
    Thanks in advance.
    Kind regards,
    Dave Arends

    Hi Dave,
    <b><i>Do I have to deploy a web dynpro for each client and maintain it's JCO connection for each client?
    Or is there another way how I can set this up?</i></b>
    You dont need to deploy a web dynpro for each client . You can use same JCO connection for multiple User ID's  ( multiple Clients mean multiple user ID's on the same portal ).
    If this is the case then single JCo connection is enough to pull data from R/3 and show on portal page .
    Thanks,
    Nanda

  • How to control one server with multiple clients via TCP/IP

    I am wanting to control a single server with multiple clients.  Only one client would be active at a time, so there would be no conflict.  I want to use TCP/IP.  So far, I have programmed a cluster that passes data back to the server with no problems.  The challenge come in when a second client is added to the mix.  I have't been able to figure out how to turn each client on and send the appropriate data and then turn it off so it doesn't keep sending the same data to the server. 
    Here are the things that I have considered and did some preliminary testing, but don't really know how to impliment:
    1.  Send a numeric on the front of the cluster packet that tells the server that data is on the way.
    2.  Send a boolean on the front of the cluster packet to somehow turn the server TCP/IP on.
    The problem I have found is that LabVIEW TCP/IP doesn't like to be turned on and off.  If it doesn't get the data it expects, it goes into a reset mode and that kills the response time.
    Any help?

    You should consider implementing a set of simple one-byte commands that can be sent back and forth between the Server and the Clients. You can base all of these ideas off the example in the Example Finder under Networking >> TCP and UDP called Multiple Connections - Server.
    You will have two loops in the server VI: one to wait for new connections, and one to send and receive data from the existing connections. For instance, after one of the clients connects, it can request control of the server to send data to it by sending the character "R" for request. Every time the send/receive loop of the Server executes, the first thing it can do is to check all the existing connections to see if any of the clients have sent a control request ("R"). If so, it will create a buffer (array) of control requests. This could be in the form of Connection IDs or indexes in the array for a particular Connection ID. Your choice.
    After the Server receives a request for contol, if it is not already under control by another client, then it can send a response to the first client on the control request list. For instance, the server could send the first client a "S" command for send. Note that after the clients send their control request, they should execute a TCP Read and wait indefinitely for the server to respond with the one-byte "S" command. Then, once the client in control is finished sending data to the server, it could send the character "X" telling the Server to release it from control.
    The example I mentioned above already does a similar thing. Note how when a client wants to disconnect, they send the letter "Q". You can see this in the Multiple Connections - Client VI. The Server then checks each individual connection to see if it's received this one-byte command, and if it has, it closes the connection to the client. This is what you would want to implement, but instead of having just one command, you'll have to distinguish between a few and build up a buffer of control requests.
    Finally, if a client does decide to disconnect in your application, they could send the command "Q" just like the example above. At this point, close the connection and remove that Connection ID from the array of connections. You will also have to handle the case that this client was in the request control waiting line when it disconnected, in which case you need to delete it from that array as well.
    This will definitely work for you, but it will take some work. Best of luck!
    Jarrod S.
    National Instruments

  • Multiple clients with same account on a single IMAP server

    Hi,
    I am connecting to a IMAP server using same account but from 2 different machines. From one machine a mark a message as SEEN=FALSE. But on the second machine, the flag will still be TRUE.
    Is there any way to co-ordinate between multiple clients so that all the clients are in sync.
    Regards,
    Nitin.

    I was able to resolve the problem using addMessageCountListener and messagesAdded method, as suggested by you.
    I am now facing another problem. Whenever a new message is received, code inside messagesAdded method gets executed. Here I am trying to spawn another thread and do some stuff. But this new thread is not starting at all. It goes into some JavaMail:EventQueue and does nothing. What is the concept of EventQueue here? How can I get this new thread executed?
    Also will there be synchronization problems in messagesAdded method. Say I received a message and I am processing it in the messagesAdded method. In the mean time another message comes up. How will this behave.

  • SAP CRM multiple clients possible

    Hi,
    We have a NetWeaver  SAP CRM system (ABAP + JAVA) stack.
    We run an internet webshop application on the JAVA stack connected to CRM ABAP stack, client 010. The CRM ABAP stack connects to SAP ERP.
    Q1: Is it possible to add a new client 020 in the ABAP stack of the CRM system?
    Q2: I don't understand in CRM the connection between the JAVA and ABAP stack. If I add a new ABAP client 020, do I need to copy the JAVA stack/client also?
    Who can help me guiding in which direction I have to go?
    Note: We want to connect a non-SAP system to client 020.
    Overview:
    ERP ABAP (client 010)    --> CRM ABAP (client 010) --> CRM JAVA stack
    non-SAP (legacy system) --> CRM ABAP (client 020) --> CRM JAVA stack
    Q3: What are the problems (challenges) I can expect?

    Hi Rene,
    I think it is not supporting multiple clients. Wait for some additional replies.
    Regards,
    Ravindra

  • Multiple IDLE connections

    Hi,
    I have two IDLE enabled IMAP accounts and I'm trying to work out if everything is working properly as it doesn't feel like it is.
    When I check netstat it shows multiple established connections for each account which seems to many for it to be right.
    Any thoughts on what to check? Server is showing two connections which would be right.
    Thanks,
    Adam

    If you must have a 1-1 app user/connection to database user/connection, then using a DatabaseSession would probably be the easiest solution. The means that each user would create and connect to their own DatabaseSession when they login to the app. You could still share the same TopLink project instance to reduce some of the connecting/initialization overhead, but there would be no way to pool connections. Using a DatabaseSession would not allow for any shared caching across users.
    Do you need to be connected as the user for reading, or just for writing to the database? If you can use a shared user/connection for reading, then you could use a ServerSession and have a shared cache. Define the shared user in the ServerSession, and when each user connects acquire a ClientSession through the acquireClientSession(DatabaseLogin) API, which allows you to specify the user/password to connect as for writing.
    In TopLink 10.1.3 you may also wish to investigate the VPD and exclusive client connection support. This allows for some of your data to be read through a user/VPD secure connection, and other shared data to still be cached. It also allows for the user/VPD to be switched on a pooled connection.

Maybe you are looking for

  • Email language wise forwarder in specific DL on Exchange Server 2010

    Dear All, Can we set email language wise forwarder in specific  DL on Exchange Server 2010.  Below is the scenario : I have 4 users who sent mail to DL(DL-IT) in different languages like Dutch, German, English, now I want to set email forwarder on DL

  • Will my current display work?

    I want to buy a 13" macbook pro and use my current screen that has a native resolution of 1680*1050. Can the macbook pro 13" use this display correctly or will I have problems with the resolution? Thanks for your help.

  • Losing Bold Format in Framemaker 10

    Hello, I have been having a problem with the format of my headings, footers and logos losing the bold appearance in Framemaker 10. When the document was created according to our EDD, template and paragraph designer, certain Headings were defined as B

  • Why RW2 & DNG versions of the same picture look much different?

    Dears! RAW format for my camera is RW2. I used conversion of RW2 files into DNG to process it in Ps. When previewing pictures  in IRFAN VIEW I noticed that RW2 and DNG versions of the same picture (before any processing) are quite different. RW2 one

  • Migrating from sqlServer to Oracle

    Sir, My name is ramandeep singh and I hail from india and I work as a computer programmer cum incharge computer software.Presently we are using SQL Server and we intend to update our existing database to Oracle/Dev 2000.Please provide me the details.