Stream Corrupted while connection

We have a java swing game that relies on connection with the server and that is established through object stream. Our problem is that in between game play �Stream Corrupted Exception� occurred and connection breaks.
Is there a way we can avoid this, so that connection will carry on till the game finish?
here is code at server for sending data
public void sendMessage(CMessage cMessage)
     if(bIsClosed==false)
       try
            ObjectOutputStream objOutputStream=new ObjectOutputStream(socket.getOutputStream());
          objOutputStream.writeObject(cMessage);
          objOutputStream.flush();
       }catch(Exception e)
            bIsClosed=true;
            System.out.println("Error Sending Message "+cMessage.get_title()+e.toString());
          server.removeConnection( socket );
}at receiving at client
Object objMessageRecived;
CMessage cMessageRecived;
while(true)
     try
          objMessageRecived=(new ObjectInputStream(socket.getInputStream())).readObject();
          cMessageRecived=(CMessage)objMessageRecived;
          m_cWindow.handle_message(cMessageRecived);
catch(IOException ex){
          System.out.println("Error in connection "+ex.toString());
          break;
     catch(ClassNotFoundException ce){System.out.println("Error in connection !!!!!! "+ce.toString());}
}Thanks for all your suggestions,
-Vidhi.

thats not a problem bcause we r using it quiot regularly.
and one more importent thing i like to say is after happening of this error actually connection is not breaked but client was't recived any message form server but can send am many as it can

Similar Messages

  • Stream Corrupted  exception BLOB + Oci driver

    Hi,
    I have used blob which is java object and using Weblogic oci driver. So far things
    are fine. I'm able to inser ,update etc.
    If i change my database charset to UTF8 i get stream corrupted Exception. I'm
    using weblogic 6 and is using its connection pool. i have added connection pool
    settings to config.xml.
    If instead of connection pool i explicitly load driver and while connecting i
    add this to properties object
    props.put("weblogic.oci.min_bind_size", "660");
    props.put("weblogic.codeset","UTF8");
    This works fine.
    Now my problem is how do i set this above mentioned properties to config.xml.
    any help will be appreciated.
    Regards
    -Sugs

    Hey suganda,
    Can you please send me the code you are using for insertion and
    retrieval. I am not able to retrieve a blob, i don't know hy
    i am using oci drivers like you. so please help
    "Soumik" <[email protected]> wrote:
    >
    Hi
    I guess what you can do is.
    Open the weblogic server console
    got to the connection pool that you have
    In the
    Propertie
    (Key=Value) textbox
    write
    weblogic.oci.min_bind_size=660
    weblogic.codeset=UTF8
    the operation will automatically write it to config.xml
    soumik
    "Sugandha" <[email protected]> wrote:
    Hi,
    I have used blob which is java object and using Weblogic oci driver.
    So far things
    are fine. I'm able to inser ,update etc.
    If i change my database charset to UTF8 i get stream corrupted Exception.
    I'm
    using weblogic 6 and is using its connection pool. i have added connection
    pool
    settings to config.xml.
    If instead of connection pool i explicitly load driver and while connecting
    i
    add this to properties object
    props.put("weblogic.oci.min_bind_size", "660");
    props.put("weblogic.codeset","UTF8");
    This works fine.
    Now my problem is how do i set this above mentioned properties to config.xml.
    any help will be appreciated.
    Regards
    -Sugs

  • An error occurred while connecting to the AirPlay device "Apple TV". An unknown error occurred (-15000).

    Hi ,
    I acquired an Apple TV (Gen3) a couple of days ago.
    The Apple TV seems to be connected properly to WIFI (Good signal)
    I watched streaming videos on Youtube and film trailers – the speed is ok.
    I followed the protocol but, still, I cannot connect Itunes to the Apple tv.
    These are the error messages:
    On the TV : apple tv could not connect to library
    In Itunes: An error occurred while connecting to the AirPlay device “Apple TV”. An unknown error occurred (-15000).
                    Please note that Apple TV doesn’t appear in the list of devices in Itune’s preferences menu.
    The Home Share is enabled on both devices and I connected with the Same Apple ID on each device.
    Airplay is on.
    Ref Apple TV :
    Apple tv: Model MD199HC/A
    Serial number DY******RHN
    apple tv software : 5.3(6105)
    Imac: OS X version 10.8.4
    I already tried to :
    Unplug/plug modem and router
    Test connectivity
    Disable the Firewall
    Re-enable the firewall with Itunes in the list of ‘allowed’ devices
    Re-set Apple TV (3 times) + Up to date
    Re-start Apple TV and computer several time
    Itunes is up to date
    Could you please help?
    Many Thanks
    Sylvie
    <Edited By Host>

    Hi all,
    Thanks for your comments.
    In my knowledge, there isn't any security software active on my computer.
    After re-setting my routeur several times, I finally swapped it against an Airport Time Capsule.
    It solved the problem, however, I would be interested to know if a (less expensive) solution exists.
    Sylvie

  • I keep getting this message An unknown error (-15006) occurred while connecting to the AirPlay device " AirPort Express".

    Please help. I have been having major difficulties with my Airport Express. It used to work fine but for the last year or so it continually disconnects, skips and ultimately drops out and itunes gives me this message "An unknown error (-15006) occurred while connecting to the AirPlay device “AirPort Express”. I keep resetting, unplugging, restarting Itunes, or my computer. It works for a couple of hours and then I get the message again. It's making me nuts and was a bummer at last week's party when we had no music, yet again. I have looked up the support discussions, but there is no answer as to how I can fix it. I am currently using Mt Lion OS. Does this have anything to do with it? Checked for software updates, but nada.
    Any suggestions.

    It may be possible the where you have the AX located may just be in a spot where it does not get a good signal even it is only 8 feet away.
    I suggest that you download and install iStumbler. You will use it to determine the signal quality by making Signal-to-Noise Ratio (SNR) measurements. This will be easiest if your Mac is a laptop ... or you can borrow one. When taking the measurements, you only want your "main" AirPort running as this is what we want to measure at the location of the AX.
    SNR (in dB) = Signal (in dBm) - Noise (in dBm)
    You can easily find the Signal and Noise value using System Profiler on your Mac laptop.
    ref: Click on the Apple icon on the menu bar > About This Mac > More Info... > Contents > Network > AirPort > Interfaces > en1 > Current Network Information > Find your wireless network > Signal / Noise
    While your still in the System Profiler, note the value for Transmit Rate.
    These values should be negative numbers. For example, mine currently read: -67 dBm / -95 dBm, with a transmit rate of 27 (Mbps). Plugging in these numbers yield: SNR = -67 - (-95) = 28. My Mac Mini is about four rooms away from my AEBS with about five walls between them. As you can see, the signal is still quite useable ... but the bandwidth is minimal, especially for streaming.
    SNR Guideline
    40dB+ SNR = Excellent signal
    25dB to 40dB SNR = Very good signal
    15dB to 25dB SNR = Low signal
    10dB to 15dB SNR = Very low signal
    5dB to 10dB SNR = No signal
    Please post back your results.

  • I had itunes played from my PC to my music system that is connected through a nework.  It use to work fine, but now I get an error message that say "An error occured while connecting to the Airplay Device "Stereo".  An unknown error occured (-15000)".

    When trying to play itunes from my PC to my stereo connected to an Airport Express, I gen an error that says "An error occured while connecting to the Airplay device "Stereo" an unknown error occured (-15000)".  This has happened before and for reasons unknown to me, the problem corrects itself, then it starts again/  Makes me wish I did not have my music on itunes.

    moehadi, Welcome to the discussion area!
    This is typically caused by a firewall or Internet security software running on your PC. Please read the comments in "Error -3256 or -15000 when streaming to AirPort Express base stations using iTunes".
    Also there is "iTunes 8: Unknown error -15000 when attempting to stream music to devices connected to AirPort Express with AirTunes".

  • An unknown error (-15006) occurred while connecting to the AirPlay device AirPort Express". How do I solve this?

    An unknown error (-15006) occurred while connecting to the AirPlay device to my AirPort Express”.  Does anyone know how to solve?

    It may be possible the where you have the AX located may just be in a spot where it does not get a good signal even it is only 8 feet away.
    I suggest that you download and install iStumbler. You will use it to determine the signal quality by making Signal-to-Noise Ratio (SNR) measurements. This will be easiest if your Mac is a laptop ... or you can borrow one. When taking the measurements, you only want your "main" AirPort running as this is what we want to measure at the location of the AX.
    SNR (in dB) = Signal (in dBm) - Noise (in dBm)
    You can easily find the Signal and Noise value using System Profiler on your Mac laptop.
    ref: Click on the Apple icon on the menu bar > About This Mac > More Info... > Contents > Network > AirPort > Interfaces > en1 > Current Network Information > Find your wireless network > Signal / Noise
    While your still in the System Profiler, note the value for Transmit Rate.
    These values should be negative numbers. For example, mine currently read: -67 dBm / -95 dBm, with a transmit rate of 27 (Mbps). Plugging in these numbers yield: SNR = -67 - (-95) = 28. My Mac Mini is about four rooms away from my AEBS with about five walls between them. As you can see, the signal is still quite useable ... but the bandwidth is minimal, especially for streaming.
    SNR Guideline
    40dB+ SNR = Excellent signal
    25dB to 40dB SNR = Very good signal
    15dB to 25dB SNR = Low signal
    10dB to 15dB SNR = Very low signal
    5dB to 10dB SNR = No signal
    Please post back your results.

  • An unknown error (-15006) occurred while connecting to the AirPlay device "Apple TV".

    LOADS OF PROBLEMS WITH AIPORT EXPRESS
    An unknown error (-15006) occurred while connecting to the AirPlay device “Apple TV”.

    I had the same issue, started getting the error after my Airport Express had been working perfectly for over two years.
    On another post in this site, someone advised disabling IPv6.
    System Preferences -> Network -> Advanced -> TCP/IP -> Configure IPv6 to OFF
    This instantly fixed the streaming for me. Not sure why or if it will work for AppleTV.
    Hope this helps.

  • An error occurred (-42086) while connecting to the AirPlay device "Apple TV"

    I have 2013 Macbook air and recently while I'm streaming content to my apple tv, it kicks me off and displays (An error occurred (-42086) while connecting to the AirPlay device “Apple TV”) on my mac. Anyone know how to fix this? Streaming to the apple tv has worked fine up until now.

    OSX: 10.8.5
    Mac Air, 8GB, 1.7GHz, i7
    This problem has resurfaced; this thread has no solution.
    My symptoms: the 42086 error; or spinning beach ball that requires shutdown of laptop, since Command+Tab will not allow switching to another app. This started happening after the last AppleTV "upgrade" to 6.1.

  • An unknown error (-15006) occurred while connecting to the AirPlay device "Frontera Speakers".

    I have seen several threads that address problems connecting an Airport Express to an existing network. However, I have had no luck with any of the suggestions. I have configured at Airport Express base station as an AirPlay device. The unit shows up as connected in Airport Utility 5.6 and can be selected through iTunes. After several moments of displaying a dialog box indicating a connection to remote speakers the following error is displayed in the finder: An unknown error (-15006) occurred while connecting to the AirPlay device "Speakers" Airport Utility lauches automatically and displays the following error: Make sure your Apple Wi-Fi base station is plugged in and in range of your computer or connected via Ethernet and try again. (-6753)
    I have rebuilt permissions and reset the airport multiple times. At a loss.
    MacBook Pro early 2012 running 10.7.4
    Airport Express Model A1084
    Any help would be appreciated.

    It may be possible the where you have the AX located may just be in a spot where it does not get a good signal even it is only 8 feet away.
    I suggest that you download and install iStumbler. You will use it to determine the signal quality by making Signal-to-Noise Ratio (SNR) measurements. This will be easiest if your Mac is a laptop ... or you can borrow one. When taking the measurements, you only want your "main" AirPort running as this is what we want to measure at the location of the AX.
    SNR (in dB) = Signal (in dBm) - Noise (in dBm)
    You can easily find the Signal and Noise value using System Profiler on your Mac laptop.
    ref: Click on the Apple icon on the menu bar > About This Mac > More Info... > Contents > Network > AirPort > Interfaces > en1 > Current Network Information > Find your wireless network > Signal / Noise
    While your still in the System Profiler, note the value for Transmit Rate.
    These values should be negative numbers. For example, mine currently read: -67 dBm / -95 dBm, with a transmit rate of 27 (Mbps). Plugging in these numbers yield: SNR = -67 - (-95) = 28. My Mac Mini is about four rooms away from my AEBS with about five walls between them. As you can see, the signal is still quite useable ... but the bandwidth is minimal, especially for streaming.
    SNR Guideline
    40dB+ SNR = Excellent signal
    25dB to 40dB SNR = Very good signal
    15dB to 25dB SNR = Low signal
    10dB to 15dB SNR = Very low signal
    5dB to 10dB SNR = No signal
    Please post back your results.

  • ITunes - An Error occured while connecting to the remote speaker. (-15000)

    I have been using airportexpress for the last 9 months with no problem. I used to use Windows Vista (32bit) to play itunes music and stream the music to the airportexpress which connects to my living room AV system.
    Couple of days ago, I rebuilt my machine now running Win7 (64bit). Since then, I am not able to stream the audio to the airport express. Whenever I select the remote speakers, wait for about 30 secs and I get this error : An error occurred while connecting to the remote speakers "livingroom". An unknown error occured (-150000).
    Does anyone experience this ? From the same machine, I am able to connect to the airport express using the airport utility. Wireless is working fine. I just not able to stream my music to it.
    Regards
    Moehadi

    moehadi, Welcome to the discussion area!
    This is typically caused by a firewall or Internet security software running on your PC. Please read the comments in "Error -3256 or -15000 when streaming to AirPort Express base stations using iTunes".
    Also there is "iTunes 8: Unknown error -15000 when attempting to stream music to devices connected to AirPort Express with AirTunes".

  • Z3v is very slow at searching in apps while connected to Wi-Fi. Is there any way to fix?

    I recently received the Z3v as a gift this Christmas and it seems that there is an issue with the Wi-Fi because when I try to search Google Play or use any app that uses my Wi-Fi such as Hulu or Wikipedia it takes forever to load but if I connect using my mobile connection the problem disappears. However, I can use Chrome using my Wi-Fi and web pages load just fine even the ones that have their own apps on the play store although those apps take forever. I can even stream video without any buffering at 1080p the only problem is searching for a video to play on Youtube or Hulu since browsing takes forever to load but playing is no problem. I have done a factory reset on my phone and the problem is still there. Hoping that there is something I can do to fix this issue since it seems to be something wrong with the software and not the actual hardware since I'm able to browse and stream. Would just return it and get a new one but a tempered glass screen protector was applied in store the day it was purchased and activated and I don't think it will be replaced for free on the replacement phone.
    Thank you, for anyone who helps on this matter.

        Sion, Congrats on your new phone! I'm glad that your phone data is working with our wireless service; however, I know the importance of ensuring it is connecting to available Wifi Networks, properly. Have you had the opportunity to test the phone with other Wifi Networks outside of your home? This will be helpful in determining if there is an issue with the phone, itself, or just in connecting to that particular Network. Do you receive any error messages, while connected. At times a restart of your Wifi home router is helpful in resolving connection issues, as well. Please keep us posted, we'll do all we can to help.
    TanishaS1_VZW
    Follow us on Twitter @VZWSupport

  • Cant stream movies while using airplay

    CAnt stream movies while using airplay. says error occured

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router. (Also try removing it’s power cord for at least 30 seconds)
    Restart your mobile device.
    If you are still having problems, the following article(s) may help you.
    Troubleshooting AirPlay
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings
    Wifi Diagnostic Software (for Mac users)
    You may also find some help on this page, where I’ve collected some of the more unusual solutions to network issues.
    When making adjustments to your network for better optimisation, you may find some of the points mentioned on this page helpful.

  • Can't connect to internet while connect with spaeker

    I just bought airport express from istudio. I wanna surf the internet while connect the speaker too. how can i do
    so i wanna get how to set up this one. I use dlink access point plug from dlink router

    Hello yosarena. Welcome to the Apple Discussions!
    In order to surf the Internet while streaming to the AirPort Express Base Station (AX), the AX needs to be configured to "Join a wireless network."
    (ref: AirPort Utility > Select the AX > Manual Setup > AirPort > Wireless > Wireless Mode = Join a wireless network)
    This will allow you to connect to the D-Link's wireless network for Internet access and stream to the AX simultaneously.

  • How do I find all the purchased items on my iPhone? When I try to update the iPhone iOS while connected to my MacBook it says there are purchased items on the phone that have not been transferred to my iTunes library and that I should transfer them.

    How do I find all the purchased items on my iPhone? When I try to update the iPhone iOS while connected to my MacBook it says there are purchased items on the phone that have not been transferred to my iTunes library and that I should transfer them before updating.

    Thanks. This seems to have worked easily.

  • When my iPhone 4S (with ios7) experiences a failed call while connected to my Bluetooth hands free in my car(screen locked) the failed call appears on the locked screen, as it should, then when I unlock the phone it automatically redials the failed call,

    When my iPhone 4S (with ios7) experiences a failed call while connected to my Bluetooth hands free in my car(screen locked) the failed call appears on the locked screen, as it should, the problem arises whenever I unlock the phone, it automatically redials the last failed call, it doesn't do this with missed calls that are on the locked screen, if any. It is really annoying as sometimes the phone doesn't respond to attempts to end the call before it connects to the number. I then have to explain that it was my phone and not me, I look like an idiot, which I don't really need any extra help with!! Does anyone have any ideas? I don't want to stop missed call from showing in the locked screen but it might be associated with the failed calls and therefore be the only resolution

    I have had the same issue which was driving me mad but think I have just found a way around it. In iOS 7 if you swipe up on the lock screen to access quick settings and go into timer then click the home button you get into the phone without calling the person back. Not a great 'fix' but hope it works for you. Come on Apple this isn't good enough, fix this bug otherwise you will lose your customers.

Maybe you are looking for