One Socket Interrupting another Socket

In my application I am attempting to talk to another application on the same computer via Socket port connections. The other software works as both a server and a client, meaning that it will attempt to connect to my application as a client, and expects my application to connect to it as a client.
I set my application to receive connections on port 6001 using a ServerSocket object. Once my application accepts the connection from the other application I send the InputStream of the resulting Socket object to be read and handled. This is working fine for me.
Next when my application attempts to connect to the other application using a Socket object (separate from the one created by the ServerSocket.accept() method and in a different thread) and it should connect via port 6002. The InputStream that I sent to be handled starts giving me the end of stream, and I can't process data coming from the other application any more.
Does anyone know what I may be doing wrong in this case?

JRSofty wrote:
In my application I am attempting to talk to another application on the same computer via Socket port connections. The other software works as both a server and a client, meaning that it will attempt to connect to my application as a client, and expects my application to connect to it as a client.
I set my application to receive connections on port 6001 using a ServerSocket object. Once my application accepts the connection from the other application I send the InputStream of the resulting Socket object to be read and handled. This is working fine for me.
Next when my application attempts to connect to the other application using a Socket object (separate from the one created by the ServerSocket.accept() method and in a different thread) and it should connect via port 6002. The InputStream that I sent to be handled starts giving me the end of stream, and I can't process data coming from the other application any more.
Does anyone know what I may be doing wrong in this case?The way you use the verbs "send" and "sent" seems very odd.
It is clear enough that only the client (the one that did the connect) is allowed to write to the socket.
You are using the sockets in half duplex mode.
Does anyone know what I may be doing wrong in this case?You are saying your peer application connects to your application, then
your application connects to your peer application and very quickly you get EOS on this outgoing socket?
Is there some kind of application level ACK built in to this system?
Is there anything preventing you from just opening another connection to your peer application?
Not sure how you can know how much data reached your peer application before you got EOS.
Maybe your peer application does not read from the socket at all? In that case you will get an exception once your local TCP send buffer is full.

Similar Messages

  • Can one actionListener interrupt another?

    Good afternoon,
    I've searched these forums and online for a solution to my problem, but I have had no luck thus far. In my JSF application, I have a page with multiple buttons bound to actionListener methods in the backing bean. One such button ('Start') initiates a process that could run indefinitely (to a maximum number of iterations as configured by the user), and another button ('Stop') is intended to terminate the first process at some user-specified time, if they want to stop it before it reaches it maximum.
    (Both buttons/methods operate over private member data in a session scope bean -- there's no need to worry about coordinating communication between objects, just about two methods in the same object.)
    I manage the interaction between the two methods via a separate class (each instance of the backing bean class gets its own instance of this manager class) with synchronized access to the flags that define the current state of Start's process. When the user clicks 'Stop', the bound method updates a flag that indicates the process should stop immediately (at the end of the 'Start' method's current loop iteration) and then calls a method that forces it to wait() until 'Start' finishes its processing and calls notifyAll(). Debugging through the interaction of the two threads, it looks like the mutli-threading control code works correctly.
    When we actually get into the 'Stop' method's code, that is. What I am seeing is that after I click 'Start', while the request is still in the Invoke Application phase of the life cycle, if I then click 'Stop', the page is immediately rendered without completing the current iteration of the 'Start' method (and without the final processing step that method performs). In my debugger, I see that this first click of 'Stop' doesn't even hit the backing bean at all. It takes a second click to invoke the method bound to the button, at which point the multi-threading code executes as expected.
    I could work around this problem by performing my "post-loop processing" as the final step inside the loop, but this could result in potentially expensive data massaging being needlessly performed many times. I could also treat it as a user-education issue and just tell them to click the button twice, but that's hardly professional. :-) I'm wondering if there's some well-known limitation that I'm not aware of, or (hopefully) some well-known solution to the problem of one actionListener seeming to abort while another is in process.
    Thanks in advance for any help or advice,
    Roger Alix-Gaudreau

    Yes, that's pretty much what's happening. I thought that with both components being bound to the backing bean via actionListener elements (instead of action elements), I would be able to use some multithreading code to force the second click's processing to wait until the first was complete, thus making them end at the same time. I guess the technology doesn't quite support that approach, however. I should probably do some reading to get a deeper understanding of the technology...
    Given that your guess that we're trying to interrupt one request with another is correct, I'm not sure if posting the code will help (except to confirm that guess), but here is the code for the buttons from the JSP page:
    <h:commandButton styleClass="kiosk_cmd" id="btnStart"
       onclick="document.body.style.cursor = 'wait';"
       rendered="#{userSessionBean.viewableCompsMap['ReadEPCs.StartRead']}"
       disabled="#{userSessionBean.disabledCompsMap['ReadEPCs.StartRead']}"
       value="#{msgBundle.EPCMGR_Common_StartReadButton}"
       actionListener="#{readBean.doRead}"
       title="#{msgBundle.EPCMGR_Common_StartReadButtonTooltip}"/>
    <h:commandButton styleClass="kiosk_cmd" id="btnStop"
       onclick="document.body.style.cursor = 'default';"
       rendered="#{userSessionBean.viewableCompsMap['ReadEPCs.StopRead']}"
       disabled="#{userSessionBean.disabledCompsMap['ReadEPCs.StopRead']}"
       value="#{msgBundle.EPCMGR_Common_StopReadButton}"
       actionListener="#{readBean.doStopRead}"
       title="#{msgBundle.EPCMGR_Common_StopReadButtonTooltip}"/>The method backing the Start Read button looks like this:
    public void doRead(ActionEvent ae){
       //notify the StopReadManager that we're now reading
       stopMgr.setReading(true);
       loadReaderParms(EPCMgrConst.APP_LAYER_TRAN_READ,EPCMgrConst.APP_LAYER_ACT_READTAGS);
       if(!isReaderActive()){
          m_Logger.displayMsg(EPCMgrUtil.getMessage(EPCMgrConst.EPCMGR_ErrorKey_ReaderNotActive),EPCMgrConst.MSG_TYPE_ERROR);
          stopMgr.setReading(false);
       //build map of keyfields for request XML
       Map keymap= new HashMap();
       keymap.put(EPCMgrConst.XML_KEYVAL_DURATION, getDuration());
       keymap.put(EPCMgrConst.XML_KEYVAL_INTERVAL, getInterval());
       keymap.put(EPCMgrConst.XML_KEYVAL_CNTRINFO, "1");
       //perform the read(s), get epc data
       int readCycle= 0;
       while(readCycle < getMaxReads() && !stopMgr.isStopNow()){
          doStartRead(keymap);
          readCycle++;
          buildTagDisplayData();
       //notify the StopReadManager that we're done reading
       stopMgr.setReading(false);
    }The code backing the Stop Read button looks like this:
    public void doStopRead(ActionEvent ae){
       if(stopMgr.isReading()){
          stopMgr.setStopNow(true);
          while(!stopMgr.isReadingFinished()){
             //do nothing, the call waits until reading is done.
          //reset the StopReadManager
          stopMgr.setStopNow(false);
    }And lastly, the code for the StopReadManager that those methods refer to:
    public class StopReadManager {
       private boolean reading;
       private boolean stopNow;
       public StopReadManager(){
          reading= false;
          stopNow= false;
        * Producer for the reading flag is the "StartRead" process, consumer is "StopRead".
        * StartRead must set it to true when reading is in progress, StopRead should
        * only be able to exit a call to this method when reading is done (i.e. when
        * StartRead sets the reading flag to false.)
        * @return True when reading is finished.
       public synchronized boolean isReadingFinished(){
          while(reading){
             try{
                wait(); //Wait until StartRead is complete
             }catch(InterruptedException ie){ }
          //We are done reading.
          return true;
       public synchronized boolean isReading(){
          return reading;
       public synchronized void setReading(boolean value){
          reading= value;
          //If no longer reading, notify any threads waiting on the lock.
          if(!reading)
             notifyAll();
       public synchronized boolean isStopNow(){
          return stopNow;
       public synchronized void setStopNow(boolean value){
          stopNow= value;
    }As I mentioned, the multithreading control code works correctly, once we hit it, which happens the second time I click the Stop button. The first time I click it, the screen immediately reloads (though the Start process continues in the background). So what I really need is the ability to make sure that if I click Stop while Start is still processing, it actually hits the backing bean code and enters the multithreading control code properly. You metion something called "shale's token". What is that, and how can it solve my problem?
    Thanks,
    Roger Alix-Gaudreau

  • Only one usage of each socket address is no normally permitted....

    I am getting the below error?
    In logs the below error is showing:
    java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
    Could you please give some idea to sort out the below issue.
    Thanks in Advance.
    Hi All,
    I m new to JSF, spring and Hibernate web application. I have done a web project using JSF, Hibernate and Spring. We have to maintain the Data records which is stored in mysql db. Now there are different table is there such as example Employee Details and Company Details. So we created two seperate application o tomacat, For both Application we use same functionality except the JSP FILE Name and table name (Which is changed according to Application).
    In the employee.hbm.xml
    I changed the table name.
    Now while running the application on the tomcat server, only one application is running at a time. if we start running the Employee Application, then Company Application is giving the below error,
    Error:
    The Company is not Available
    Error in Log:
    The resourse is already in used/busy. or JNDI error.
    Could you please help us, how to overcome the error,
    Is it not possible to run both the application on different browsers.
    Thanks in advance.
    Saratha.

    Saratha wrote:
    I am getting the below error?
    In logs the below error is showing:
    java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
    Could you please give some idea to sort out the below issue.
    Thanks in Advance.The port is already in use by another process. Apparently you've another process (the same or another kind of application server) running at the same port.
    This problem is completely unrelated to JSF.
    Hi All,
    I m new to JSF, spring and Hibernate web application. I have done a web project using JSF, Hibernate and Spring. We have to maintain the Data records which is stored in mysql db. Now there are different table is there such as example Employee Details and Company Details. So we created two seperate application o tomacat, For both Application we use same functionality except the JSP FILE Name and table name (Which is changed according to Application).
    In the employee.hbm.xml
    I changed the table name.
    Now while running the application on the tomcat server, only one application is running at a time. if we start running the Employee Application, then Company Application is giving the below error,
    Error:
    The Company is not Available
    Error in Log:
    The resourse is already in used/busy. or JNDI error.
    Could you please help us, how to overcome the error,
    Is it not possible to run both the application on different browsers.
    Thanks in advance.
    Saratha.What is this? Why have you copypasted the question of your another topic? [http://forums.sun.com/thread.jspa?threadID=5332093]

  • Another Socket question

    Hi,
    I am having problems getting replies from a socket server (running on a Unix server). The client is running Java on a windows 2000 server. It always hangs at the 'After writing' message - does not read anything back from the server. Am I doing something seriously stupid?? The code is attached below -
    import java.io.*;
    import java.net.*;
    public class ReadFile2
    public static void main(String[] args)
    String str;
    String str1 = "";
    String str3 = "192.61.61.195";
    String str4 = "";
    String str5 = "";
    String str6 = "";
    int port=2424;
    int count = 1;
    int wordcount;
    int charcount;
    char[] readchar;
    boolean bool ;
    readchar = new char[2048];
    //readchar[0] = " ";
    try
    BufferedReader infile = new BufferedReader(new FileReader("test.txt"));
    while ((str = infile.readLine()) != null)
    System.out.println("Text is " + str);
    str1 = str1 + " " + str;
    infile.close();
    System.out.println("Text is " + str1);
    catch (IOException e)
    System.err.println("File Error");
    return;
    try
    System.out.println("Opening sockets");
    Socket sock = new Socket(str3,port);
    System.out.println("Before writing");
    InputStream in = sock.getInputStream();
    OutputStream out = sock.getOutputStream();
    //send data
    for (int i=0; i<str1.length(); i++) {
    out.write((byte)str1.charAt(i));
    out.close();
    out.flush();
    System.out.println("After writing");
    //receive data
    char[] b= new char[1024];
    String result = "";
    int ch,c;
    while ((ch = in.read()) != -1) {
    System.out.println("before read");
    System.out.println("Output Text is " + (char) ch);
    sock.close();
    System.out.println("After reading");
    System.out.println("Output Text is " + result);
    catch(InterruptedIOException e) {
    System.out.println("Interrupt exception");
    catch (EOFException e)
    System.out.println("Sockets EOF error");
    return;
    catch (IOException e)
    System.out.println("Sockets write/read i/o error");
    return;
    catch (Exception e)
    System.out.println("Sockets write/read error");
    return;
    Any help from anyone out there is appreciated .
    Thanks in advance

    If it did not detect the charatcer, it should not give
    me the 'After writing' mesage, right? It also allows
    me to close the out stream.No the 'After writing' mesage is printed by the client not the server. What is happening here is the client finishes writing to the stream, prints the message and closes the stream on its side. Even if server has not read from the stream it will not prevent the client from closing the stream.
    Another thing is that since it works when both client and server are running on Unix it might be character encoding problem. I guess you are writing characters/Strings to the stream. Try converting your output into a byte array before dumping to the output stream. Also add some print/debug statements on the server side to see what the server is getting.

  • How to resolve error 'The DPMRA service terminated with service-specific error Only one usage of each socket address (protocol/network address/port) is normally permitted'

    One of my exchange 2010 servers dpm agent is give the following error when the dpmra service attempts to start.
    The DPMRA service terminated with service-specific error Only one usage of each socket address (protocol/network address/port) is normally permitted..
    I have tried uninstalling/reinstalling the agent but this does not resolve the issue
    Any help would be greatly appreciated.
    Thanks
    William Hickson

    Hi
    Something has probably changed on the protected server side that affects the DPM agent. In some cases the DCOM configuration could change. Look at this blogpost and verify your DPMRA DCOM object.
    http://robertanddpm.blogspot.com/2010/08/dpm-ra-rights.html
    If this doesn't do the trick try reinstall the agent.
    Best Regards
    Robert Hedblom
    MVP DPM
    Check out my DPM blog @ http://robertanddpm.blogspot.com

  • How can I Move data from one column to another in my access table?

    I have two columns, one that stores current month’s data and one that stores last month’s data. Every month data from column 2 (this month’s data) needs to be moved to column 1 that holds last month’s data. I then null out column 2 so I can accumulates this month’s data.
    I understand how to drop a column or add a column, how do I transfer data from one column to another.
    Here is my trial code:
    <cfquery name="qQueryChangeColumnName" datasource="#dsn#">
      ALTER TABLE leaderboard
      UPDATE leaderboard SET  points2 = points3
    </cfquery>
    Unfortunately, I get the following error:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in ALTER TABLE statement.
    How can I transfer my data with the alter table method?

    I looked up the Access SQL reference (which is probably a
    good place to start when having issues with Access SQL), and
    it suggests you probably need a WHERE clause in there.
    I agree the documentation is a good place to start. But you should not need a WHERE clause here.
    Too few parameters. Expected 1.
    If you run the SQL directly in Access, what are the results? At the very least, it should provide a more informative error message..

  • Saving volume setting from one computer to another...

    Hi...
    My friend and I have identical iPods and we exchange tunes between one another's computers. We'd like the volume setting adjustments made by us in iTunes to be consisent on either iPod. But when we transfer the music files from one computer to the other, the volume settings always goes back to the normal setting.
    Is there any way to save the volume settings made in iTunes, from one computer to another?
    Thanks for you time!
    RCJ
    G3, G4, G3 iBook   Mac OS X (10.4.7)  

    Which directories do you mean? The socket-$hostname, tmp-$hostname etc. shouldn't be of any importance and can be left behind. Important for akonadi are the .local/akonadi and .config/akonadi folders. What kind of errors exactly do you get?

  • Move Wiki from one Server to another

    I failed in moving the wiki I programmend and that worked quite well from one 10.5. server to another machine. I copied some stuff from one device to another but obviously not the correct one.
    Is there a way to do it automatically or knows somebody which files have to be moved?

    try it and RATE correct answers
    Hello Matthew
    You're looking in the wrong spot
    First things first - make yourself default sudo with sudo -s then you can forget prefixing it all the time.
    If you just use pg_dump then it'll take the command from the /var-Directory - that's the wrong version
    You have to specify the path for the Socket where the PSQL-Database for the wiki really is located by using the -h-option - it's not the default
    that's why you get the error that role collab does not exist since you're connecting to a database in place where the role collab truy isn't part of it.
    So - if you'd like to export the wiki-DB us the following and adapt the filename to what you like it to be.
    bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
    The first block specifies the "not default" pg_dump you'd like to use
    The second block (-h "/Library/.....) tells pg_dump where to find the DB
    The third block tells pg_dump to use port 5432
    The fourth block (-f /Volumes/......) tells pg_dump to place its output into this file
    The fifth block (-U collab) tells pg_dump to do this is role collab
    The sixth block tells pg_dump from with DB to dump from
    In your case extend my provided command with your options --format=c --compress=9 --blobs like this:
    bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -F c --compress=9 -b -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
    BTW- you can connect to the database, of course:
    bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 collab collab
    try it and RATE correct answers
    Here is my thread https://discussions.apple.com/thread/5751873

  • How to kill one class from another class

    I need to dipose one class from another class.
    So that first i have to find what are all threads running in that class and then to kill them
    Assist me.

    Subbu_Srinivasan wrote:
    I am explaining you in clear way
    No you haven't been.
    >
    In my application i am handling many JInternalFrame.Simultaneously i am running working on more than one frame.
    Due to some poor performance of some thread in one JInternalFrame,the thread is keeps on running .
    i could not able to proceed further on that screen.
    So i have to kill that JInternalFrame.Yoinks.
    To be begin with your problem sounds like you are doing everything in one thread. So stop doing that. Second when you get it split up and if a task is taking too much time then interrupt it. No kill. Interrupt. This means the worker thread needs to check sometimes if it has been interrupted.

  • Passing a variable from one thread to another

    Hi. I'm trying to produce a chat program in Java but need to pass a variable between two threads. I have included a snipet of the code.
    import java.io.*;
    import java.net.*;
    class IndividualConnection extends Thread
         public Socket clientSocket;
         String userName = "";
         public IndividualConnection(Socket connectingSocket)
              clientSocket = connectingSocket;
    public login(String name)
    userName = name;
         public void messageUser(Socket socket, String msg)
              try
                   Socket newSocket = new Socket("192.168.0.162",5163);     
                   DataOutputStream outToServer = new DataOutputStream(socket.getOutputStream());
                   outToServer.writeBytes(msg + '\n');     
              catch(Exception e)
                   System.out.println("The connection with the client has been closed.");
                   this.stop();
    public void run()
         Socket global = clientSocket;
    // etc etc
    A number of threads are created based on code similar to the above. Each thread communicates to a different client on the chat program. However, I want to be able to send messages between the clients.
    Each thread has a method called messageUser(Socket socket, String msg). I should (hopefully) be able to send a message to anyone using the prog if I can access their socket. The problem is that the socket objects for each client is held in the clients own thread. I have tried writing some code to find the Socket object in another thread but to no success. The code I am trying is shown below.
         public Socket findContact(String name)
              ThreadGroup currentGroup = Thread.currentThread().getThreadGroup();
              int numThreads = currentGroup.activeCount();
              Thread[] listOfThreads = new Thread[numThreads];
              currentGroup.enumerate(listOfThreads);
              for (int i = 0; i < numThreads; i++)
                   String threadName = listOfThreads.getName();
                   if (threadName.compareTo(name) == 0)
                   //     Socket tempSocket = threadName[i].getClass().getField(clientSocket);
              return tempSocket;
    The line I have commented out does not work. Please could someone tell me how to carry out this task. I have spent many hours trying to solve this but am not able to. The chat server is nearly complete now. I just need to find a way of obtaining another threads socket.
    I hope the problem is comprehensible. I have found it difficult to explain clearly. Many thanks.

    Really simple, inelegant solution:
    class MyThread extends Thread {
    Socket socket;
    MyThread( Socket s ) { socket = s; }
    public Socket getSocket() { return socket; }
    }Better: create a master object that includes an array
    of sockets. Each time you create a Thread, update the
    master object's list of sockets with a reference to
    each Thread's socket. Under the current memory model, the socket field should be declared volatile. The proposed new memory model will guarantee that this will work if the socket field is declared final.
    Sylvia.

  • How do I export or transfer my iTunes from one laptop to another?

    I'm switching from one laptop to another (both using WIN 7), and I'm having difficulty.  It might be that my iTunes folder is incorrect or in the wrong place.  I tried copying my iTunes folder from a folder in My Music.  This folder also had a list of folders that seem to be album names.  In alphabetical order, one of these folders is named "iTunes".  That folder has files like "iTunes Library.itl", several temp files, iTunes Library Extras.itdb  and iTunes Library Genius.itdb.  It also has folders called "Album artwork" and "iTunes Media".  I tried copying over this iTunes  folder, but nothing showed up in iTunes.  This would be easy if I were allowed to synch from my iPod to iTunes, but I've heard that's not allowed.  Any help, especially step-by-step assistance, would be greatly appreciated.
    Mike

    Migrate an iTunes library from one computer to another
    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entireiTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one, with ratings, play counts, playlists etc. preserved. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd normally recommend method 1 since it establishes an ongoing backup for your library and unlike copying with Windows Explorer the process can be resumed if it is interrupted and it will continue to the next item if there are any read/access errors.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See Make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • Socket.shutdownOutput() closes socket inside JVM

    Dear friends,
    We have a java class which uses the Socket class. Our class does a Socket.shutdownOutput() to indicate that the sending of data is over and the reply may start. It works just fine outside Oracle, but when the class is loaded in the database the shutdownOutput() method apparently causes the socket to be closed. Below is a sample of the code and its output. The user has JAVAUSERPRIV and JAVASYSPRIV granted, and I even tried JAVA_ADMIN without success. The Oracle versions tested were 10.2.0.1 (Windows) and 10.2.0.2 (AIX). Does anybody know what can be happening ? Thanks in advance.
    Code:
    Socket sockICM = new Socket("192.168.1.133", 5010);
    byte byxml[] = hmapICM.toXMLString().getBytes();
    System.out.println("1");
    InputStream isXmlOut = sockICM.getInputStream();
    sockICM.getOutputStream().write(byxml);
    System.out.println("1.5");
    sockICM.shutdownOutput();
    System.out.println("socket.isOutputShutdown(): " + sockICM.isOutputShutdown());
    System.out.println("socket.isClosed(): " + sockICM.isClosed());
    System.out.println("2");
    byte b[] = new byte[1000];
    InputStream isXmlOut = sockICM.getInputStream();
    System.out.println("3");
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    System.out.println("4");
    try
    int q;
    while((q = isXmlOut.read(b)) != -1)
    bos.write(b, 0, q);
    System.out.println("leu: " + bos.toString());
    catch(Exception io){
    System.out.println("err=" + io.toString());
    Output:
    1
    1.5
    socket.isOutputShutdown(): true
    socket.isClosed(): false
    2
    3
    4
    err=java.net.SocketException: Socket is closed
    /****************************************************/

    Thank you for the answer, Kuassi, I am going to do that. One more piece of information is that my printStackTrace shows the following:
    java.net.SocketException: Socket is closed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.net.SocketInputStream.read(SocketInputStream.java:90)
    at kiman.socktest.test(socktest:76)
    Do you know what does the "Native Method" on second line mean ? I think my problem
    is related to that somehow.

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • How can i transfer my music from one account to another on a different computer?

    So i have an itunes account on dell laptop and i share that account with other famliy members. I recently bought a mac pro and wanted to create a new account that way i can use icloud, is there any possible way to transfer everything from my old library to my new one or will i lose everything i had on my phone and ipods? Or is it possible to have one account but multiple icloud accounts?

    lisafromwindermere wrote:
    I want to start my own account separate from my parents. Can I transfer my music from one account to another? If so, how?
    Lisa,
    Just get copies of the song files and add them to your iTunes library.  With the exception of any DRM-protected files (purchased before mid-2009 and never upgraded) they will play fine, even though they are technically associated with the original account.

  • How can i move music from one account to another

    I have 4 different accounts in Itunes and i wish to move all the music into one account
    help please !!!!

    You can't transfer content from one account to another account, nor can you merge accounts - content will remain tied to the account that downloaded it

Maybe you are looking for

  • Repairing Boot Camp after creating new partition

    I'm running OS X 10.8 and Windows 7 x64 Pro. After properly setting up Boot Camp to dual-boot Windows on my Mac mini, I decided to test whether or not it was true that creating another partition (a data partition for OS X) would interfere with Boot C

  • Begin date in idoc segment E1BEN07 basic type BENEFIT3 health plan IDOC

    I run tcode HRBEN0052, Idoc Data Transfer, for my health plans.  If my new health plan record (IT0167) does not have a change in the General plan data (plan type, benefit plan, health plan option, dependent coverage) the begin date value on segment E

  • Setting Up Data Source In Reporting Services

    I know how to set up a data source using SQL Server Authentication by filling in this part: However, when I try to use Windows Authentication here, it says "Log on failed.  Ensure the user name and password are correct". When I use my Windows Authent

  • My partner checked my location using find my IPhone on Sunday

    But the location he got was a few kilometres from where I was. He checked it again a few minutes later & the location was correct. I had answered a call & email. I never moved locations by why did my phone show differently?

  • Sent Mail Vanished

    I'm using 10.4.5. I updated from 10.3.9 a few weeks ago. Everything was working just fine until this morning. I had left my computer on for several hours. I saw that I had a notice telling me that Mail couldn't check my POP account at Gmail. This see