Clean way to disconnect from server?

I can't find any socket.disconnect() method (just a socket.isConnected()). What's the cleanest way to disconnect from a server? I just do a socket.close, but then i get this exception on the server:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Sour
ce)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)

You can send a bye message.
Once the server has that it knows that it can close the socket on its end (and it can safely ignore a reset error.)

Similar Messages

  • Disconnect from Server

    I have a G4(MDD)that I am trying to connect to my Windows 2003 Server. The problem is that when I connect using SBM,CIFS or AFP I get a [email protected] has been disconnected. I have changed patch cables added some info into the DNS nothing seems to help. I have another G4 (MDD) with the same setting running with no problems. Im not sure what more to try. Im thinking of telling my company to buy an Xserve that would solve the problem.
    Thanks for the help.
    The OS on the G4 is 10.4.6

    Now I understand better some of what's going on. The networking functions are fine; it's the GUI that's misleading me.
    As soon as I select a server icon in the "Shared" section of the Finder sidebar, Leopard connects as "Guest" and displays the share points. Select a share point and the shared volume icon mounts on the desktop, and the triangular unmount icon appears next to the share icon in the Finder.
    BUT: disconnect from server or share point, and the Finder STILL displays all share points and indicates I am still "Connected as: Guest" . . . but now there is no disconnect triangle.
    Further weirdness: If I have a share point mounted, and click "Connect as" (button available in column-view), it unmounts the share, but doesn't launch the "Connect to Server" dialog.
    Then, click "Connect as" again to bring up the "Connect to Server" dialog, authenticate as NON-GUEST user to an SMB share, the volume mounts, but the Finder displays "Connected as Guest"!
    Even if I connect as a NON-GUEST user to a PC share using SMB in the older way -- CMD-K or "Go > Connect to Server" -- then select the newly-mounted Server icon in the Finder sidebar, the Finder tells me I am -- you "guest" it -- "Connected as Guest."
    Interestingly, the Finder displays AFP connections correctly, with actual user names, and a "disconnect" button, under the server icon in the 1st Finder column; SMB connections do not.
    So my issues here seem to be confusion created by miscues in the GUI -- the "Connected as Guest" indication before you've actually connected, and after you've disconnected. And for SMB connections, the additional miscues of being told you're connected as guest instead of the user account you've authenticated under, and the curious absence of a "Disconnect" button under the server icon in the 1st Finder column.
    I just installed Leopard three days ago. Overall, I love it. I hope this feedback helps Apple refine some minor bumps in the user experience.
    Message was edited by: Samildanach

  • N95 - emails vanish when disconnect from server??

    Hi,
    I've set up my N95 to send and receive emails - its doing both even though when I "send" it says server not found but the email DID arrive at its destination..??
    My other problem is that after I have downloaded emails to my phone and I then disconnect from the server - when I then goto reconnect those emails dissappear.. Is there a setting to stop this from happening?
    can you help me with eithe rof those issues?
    Thank you
    Angela

    Good luck with that.  It most likely has something to do with the network, and Bridge is really not set up for network function.  It works that way but Adobe says there are so many variables with networks that can not be quantified.  Not sure but if  Bridge does error checking like Photoshop does it could lead to what you see.

  • Automator - Disconnect from server

    Hi,
    I'm working on a small automator workflow that helps me synchronizing iTunes music across 3 computers. Basically it connects to a server, uses the sync folders action to synchronize the contents and then I want to disconnect from the server.
    That's the point where I'm stuck ... searched the web but couldn't find a real answer how to disconnect from a server using Automator.
    Any ideas?
    Thanks a lot!

    I don't have an answer for you.
    Did you ever get it working?
    If so I would like to shamelessly steal your workflow.
    thanks
    chuck

  • WRT54G v6.0 Disconnects From Server After Ten Minutes

    I posted this once before and somehow it got....deleted?
    Anyway....here we go again. I purchased A WRT54G over the holidays. It has worked fine for me with the exception of a real estate data source (server) that I need to use for my business. I can log on and start doing my analysis just fine, but when when the ten minute mark hit....the router disconnects me. It's EXACTLY ten minutes...everytime. I've spent the better part of 20 hours on the phone with Liksys Tech Support and they have been very helpfull, but unable to help me fix this issue. They sent me a new router to replace the one I bought thinking that there was something wrong with that router. After installing the router they sent me....same problem. We opened ports, reduced the MTU to 1375, disabled security, ect... with no luck. Can anyone tell me what I need to do? Any thoughts or advice would be greatly appreciated.

    Actually try this...
    Connect wired to your ISP provider cable/dsl modem  and release/renew dhcp lease...
    IP address is then assigned based on MAC address of that computer
    IPCONFIG to check assigned address
    Re-connect wireless router and in settings duplicate the mac address of the PC used above.
    Release/renew dhcp on router and check status on router settings pages
    assigned IP should be same or in relative range.
    Why this may be occuring....     At least what leads to the above suggestion:
    ISP providers in the mid-west region around me started assignment of Router based MAC addressing to monitored and limited bandwidth servers - IP assigned would renew into those servers as the MAC address from a router was a clear indication of mutiple PC use and bandwidth consumption.
    Duplication of a desktop or wired network card on your PC into the router defused this by detection your MAC appears to be a single PC and the ISP assigns the address to standard server loads.
    Try it see if this helps - keep in mind most of these hardware manufacturers use base hardware from common pools of sub-suppliers - I believe you will have just as much issue with a netgear unit.
    Daak 

  • Best way to disconnect from external screen?

    This problem has been on-going, but I am only now asking for help. It has recurred over now 3 reinstallations of 10.5.
    I have an external (Dell) screen, and I run my MBP (Core Duo 2GHz) with the internal screen closed. I have not been able to figure out how to detach the computer from the screen and have it reliably sleep. Instead of sleeping, the MBP goes into some sort of dark-screen state, in which I have to first kill it (holding down the power button for 10 secs.) and then reboot it.
    There are the following connections: sound out, USB out, video out, and power.
    For a while I tried the following: sleep the MBP (from the Apple Menu), unplug each of the wires. Often when I do this, the MBP will wake up when the USB is disconnected, but since the lid is closed, it doesn't really wake up. When I then open the screen, the screen does not light up, and I have to kill and reboot the machine.
    Later I have been trying: unplug the external screen, then unplug the other wires. This seemed to work until today, when I found the same problems.
    I have this feeling that the machine isn't really crashed, but that somehow it is losing touch with its built in screen, since I find that I have to first kill the machine (pushing power button for 10 secs), and then reboot it. But since the built-in screen is dark, I don't know what else to do.
    Obviously, I could always shut down when unplugging the external screen, but I would rather not do this.
    Thoughts?
    A

    I'm unable to recreate the problem on my CD MBP running 10.4.11. It's unclear if you are still unplugging peripherals after you sleep the MBP, but the bottom line is that you shouldn't do that - unplug the USB and the external monitor (audio out/headphone port doesn't matter) +and then+ put the MBP to sleep. Also, note that you should not move the MBP until it is really asleep. Look at the light on the latch - when you select sleep, the light remains solid for a while, then starts pulsating. During the solid light period, the MBP is writing the contents of RAM to the HDD (Safe Sleep); if you move it during this process, you may trigger the sudden motion sensor on the HDD and interrupt sleep (it may still appear to sleep, but when it "wakes" it does so as you describe, with a black screen. (Note that this is the main cause of the "+I put my MBP in the bag and when I took it out it was blazing hot and the screen was dark and it wouldn't wake up, so I had to do a hard reboot+" posts.)
    Hope this helps...

  • Disconnect from Server Drive Sporadically Using Bridge

    When using Adobe Bridge CS4 I keep getting disconnected to a network drive. My PC stays connected via Explorer but not in Bridge. I have to restart Bridge to get access back.
    Windows XP
    Adobe Bridge CS4

    Good luck with that.  It most likely has something to do with the network, and Bridge is really not set up for network function.  It works that way but Adobe says there are so many variables with networks that can not be quantified.  Not sure but if  Bridge does error checking like Photoshop does it could lead to what you see.

  • After quit app, disconnect from server

    I am running into problems launching an application (Type to Learn 3 on OS 10.4.11) that must connect to server-based data folder (Windows Server 2000) in a computer lab environment. Presently, I must select Go>Connect to Server>afp://xx.xx.xx.xxx>Connect, then launch the app. After the student quits the app, the shared data drive remains mounted. I would like for the mounted drive to automatically eject following quit app.
    I have been able to create an Automator script that will Connect to the server and launch the app, but I am unable to figure out how to eject the shared drive upon quit app.
    Any help would be greatly appreciated!
    I am not sure that using Automator is the best option. Any other ideas?
    Thanks,
    Steve

    Hopefully I can clarify.
    After the user quits the application accessing the server-based drive, I want the drive to be unmounted automatically. I do not want students to have access to the student data located within the drive.
    It is possible to hide the drive from appearing in the sidebar, but I would prefer that it is unmounted to ensure data security.
    So, the entire process looks something like this:
    1. connect to server "drive"
    2. launch app "TTL3"
    3. student uses app
    4. student quits app
    5. "drive" unmounts
    Thanks again for your assistance.
    Steve

  • Email disconnect from server

    Dear All,
    I have an iPhon I set up my work email account. After setting up the account was working fine after few mints I got message on my iphone screen your connection to the server is faild. Some time I can get my emails but sometime I get connection failed.
    I will appreciate if any one can tell me how can I fix the problem please.
    Thanks

    hi beth-martin,
    what do mean?
    tnx

  • HT4623 Backed up our iPhone on iTunes, started the update.  Got an error notice, were disconnected from server.  Phone now has an unchangabel plug in to iTunes screen but cant contact iPhone server. What do we do?

    Backed up iPhone to iTunes on our computer then started the software update. Got an error notice and phone now has a screen indicating to plug in to iTunes that we can't change even if we turn the phone off and back on. Every attempt to connect to the iPhone software update server comes back with a could not contact message.  What do we do? How do we proceed?

    Many thanks for your answer.
    Before starting a new discussion I tried everything of your link, google etc... nothing works for me.
    I´m using a pc running windows 8, last version of itunes etc.. tried using different usb ports, uninstalling avast antivirus but nothing works.
    Any other suggestion?

  • !! Query not running - disconnecting from server!!

    BW GURUS!
    I have 140 queries out of our Live 1 (GL1) and now we are on GL2 (Go Live 2). I transorted all the queries in here.All the config and defnition everything is normal (even for the new queries I created in GL2 NOT Transported from earlier system....It does the same thing). When I open to run a query it is kicking me out of teh srever giving the following error message.
    My best guess is I miss some std setting that I need to implement in the process. It is something related to SAP exit or so.
    Error Group
    RFC_ERROR_SYSTEM_FAILURE
    Message
    Syntax error in program SAPLXRSR
    And the dump is as follows :
    Error in ABAP application program.
    The current ABAP program "CL_IM_RSR_OLAP_BADI===========CP" had to be
    terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    In program "SAPLXRSR ", the following syntax error occurred
    in the Include "ZXRSRU01 " in line 333:
    "The field "I_FISCYEAR" is unknown, but there are the following fields "
    "with similar names: "FISCYEAR" and "I_FISCPER"."
    Error analysis
    In program "SAPLXRSR ", the following syntax error occurred:
    "The field "I_FISCYEAR" is unknown, but there are the following fields "
    "with similar names: "FISCYEAR" and "I_FISCPER".
    Let me know your thoughts!
    Regards
    Praveen

    Check your user exit code for syntax errors first. Make sure that you check all includes as well. The error below suggests that you are using a field called "I_FISCYEAR" which probably isn't defined using a
    DATA:
       i_fiscyear type blah...

  • Photosmart 5520 connected to network, but keeps disconnecting from server (internet) for ePrint

    I just bought a new Photosmart 5520 and love it.  Everything works EXCEPT the HP ePrint service.  My printer is always connected to the network, but when I connect the ePrint, it would work for no more than 10 minutes before I get the message "The printer was unable to connect to the server.  Check the internet connection and try again".  The thing is, the printer is ALWAYS connected to the network, but gets kicked off the internet, rendering ePrint useless.  Anyone know the problem?  My router is a Netgear 7550 and my ISP is Frontier.  Please help

    Hi deskdownstairs,
    I see that you're having problems setting up ePrint.  I would try the steps below.
    1. Obtain your printer's IP address
    a. This can be done by pressing the wireless icon on printer.
    2. Enter the printer's IP address in a browser.
    3. Select the network tab at the top of the page.
    4. On the left select networking.
    5. Select Network Address (IP)
    6. Select Manual DNS Server
    a. Manual Preferred DNS should read 8.8.8.8
    b. Alternate DNS Server should read. 8.8.4.4
    7. Select apply you might get a warning just select okay.
    Let me know how it goes.

  • Unable to disconnect from WLAN for E71

    Hi,
    I am unable to disconnect from WLAN for E71 and need to switch off and again switch on to disconnect. Is there a way to disconnect from WLAN without switching off the mobile?
    Regards
    Naveen

    on the main screen of ur mobile u can see an option search wlan, when u want disconnect ur wlan click on that then u have a menu through that menu u can disconnect ur connection. or go to menu->control panel->connectivity->assistent wlan-> there u can select ur connected ap and deconnect it.
    ¨Arm yourself because no one else here will save you¨

  • Unable to disconnect from WLAN

    Hi,
    I am unable to disconnect from WLAN and need to switch off and again switch on to disconnect. Is there a way to disconnect from WLAN without switching off the mobile?
    Regards
    Naveen

    What phone are you using?
    If I have helped you with your problem in some way, please take a little time and hit the kudos button in my post. Without your feedback, I don't know if I am being helpful or should just be put out to pasture.

  • Clean way to De-register/De-commission the database with EBS from RAC/Cluster.

    Hi,
    We have a database with EBS on RAC. We are looking for Clean way to decommissioning the database from the cluster. We tried earlier, but when we again installed a fresh database on that server some how we had issues with the user oracle in cluster configuration files.
    Early response is highly appreciated.
    Thanks,
    Rajashekar

    Hi Hussein,
    We have two node db and two node application server in a cluster environment.
    We want to Remove/Decommission JUST DATABASE, APPLICATION related all files from the cluster. Cluster files should not be effected. After removing them we want install a fresh Db and Application on the same cluster.
    Looking for any standard method for decommissioning.
    Thanks,
    Rajashekar

Maybe you are looking for

  • Ram issues in Macbook Pro

    Hi, I have had my Macbook Pro for about 2 years now and decided to upgrade the ram. It has a 2.16ghz processor and 1gb ram from apple. I decided to put 2 2gb sticks in (I know it will only read 3gb, just didnt want to risk reducing preformance by usi

  • Where is the Command Wizard in BEx Web Application Designer(WAD) 7.0

    Hi, I am new to SAP and BEx Web App Designer and am reading through the help about the so-called Command Wizard. I have looked all over the app and I see nothing called a Command Wizard. I am I missing something obvious or is this buried somewhere in

  • Problem with Sun Outlook connector Microsoft LDAP Directory MAPI Service Pr

    Dear All I have big problem with sun outlook connector and I can find any way to fix the problem, I am using sun java system connector deployment to create installation script for my clients. in the tool I have specify the location of Microsoft LDAP

  • Restart not possible (Xml message)

    Hi All, I am facing the following error in SXMB_MONI , restart is not possible & unable to check the payload. can any one please let me know what is the cause for it & how to resolve it. INTEGRATION_SERVER_PIP  - - Sender Component      urn:wssproce

  • Loosing data from memory card

    hi, iam new to this community, i bought my nokia 5800 1 week back, im now facing a problem with memory card. 2 days back i lost a folder with ring tones, and yesterday i lost a movie. i dont know why it is happening. i dont want to loose ant data fur