Problem in receiving message from server

Hi all,
i am new to socket programming. i tried a simple echo server-client programs. The problem is client is able to send the message but it is not receiving and no problem with server. can anyone help me?

(a) is the client flushing its output stream?
(b) is the server flushing its output stream?
(c) are there any exceptions being thrown?
(d) What if anything is the server receiving?
(e) What if anything is the client receiving?

Similar Messages

  • Problem in receiving messages via RFC Sender Adapter

    Hi,
    I have problems in receiving messages from SAP backens systems. Sometimes we are getting all messages sometimes not. Strange.
    We are transfering report-results via asynchronous RFC calls. To avoid big message sizes we split them up in max. 1000 rows blocks.
    Each RFC call on backend side is completed with COMMIT WORK!
    We increased the number of connections in the RFC sender adapter. Then it was better, but the problem still exists! Not so often, but sometimes !?!?!
    I hope everybody can help me. Thanks a lot!
    best regards,
    Hannes

    hi,
    when you don't receive messages what do you see in SM58
    on the r3?
    any errors over there?
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Problem with receiving message over socket

    class TCPClient5 {
    public static void main(String argv[]) throws Exception
    java.io.InputStream s = null;
    java.io.InputStreamReader r = null;
    try {
    URLConnection uc = new URL("http://www.countryflower.com/Country_Flower_Home_Pic.jpg").openConnection();
    s = uc.getInputStream();
         System.out.println(uc.getContentLength());
    int x = uc.getContentLength();
    BufferedInputStream buffer = new BufferedInputStream(s);
    File f = new File("c:\\Users\\dell\\Desktop\\image\\image.jpg");
    DataOutputStream outdata = new DataOutputStream(new FileOutputStream(f));
    int n = 0;
    while(true) {
    n = s.read(byte[x] buffer,0,buffer.length); ----- here I am getting error
    if (n == -1) break;
    if (n == 0) {Thread.sleep(50); continue;}
    outdata.write( buffer,0,buffer.length);
    outdata.close();
    finally {
    //if (b != null) b.close();
    if (r != null) r.close();
    if (s != null) s.close();
    In above code I am getting error .................
    I am unable to receive message from server..........Please help me with code

    n = s.read(byte[x] buffer,0,buffer.length); ----- here I am getting errorHere we are unable to read your mind. What error? The syntax you've typed isn't correct, is that really what you have?
    if (n == -1) break;
    if (n == 0) {Thread.sleep(50); continue;}'n' can never be zero. Omit this line.
    outdata.write( buffer,0,buffer.length); That should be outdata.write(buffer, 0, n);

  • TS3999 Received 2 appointments, same date, same content, just different hours. Since then I receive message from iCal: Access to "Subject" in account "iCloud" is not permitted. The server responded "403" to CalDAVWriteEntityQueueableOperation. It's a bug!

    Received 2 appointments from a customer, same date, same content, just different hours. Since then I receive message from iCal: Access to “Subject” in account “iCloud” is not permitted. The server responded "403" to CalDAVWriteEntityQueueableOperation. In my opinion this is a bug, because iCloud is not able to handle 2 appointments at the same date with same content, just at different hours. The different hours should be enough individuality for each event on calendar.

    In my opinion this is a bug, because iCloud is not able to handle 2 appointments at the same date with same content, just at different hours. The different hours should be enough individuality for each event on calendar.
    Here are 4 identical events (other than time) in Calendar on my mac
    Here is how they appear at iCloud.com
    I concluded that iCloud has no problem with identical events seperated by time, so the question becomes what is wrong with your setup as opposed to what is wrong with iCloud.

  • Cannot receive message from ASA 5505 b syslog server?

    Dear All,
    I have some problem on Syslog server. i was enable command as below for syslog server:
    logging enable
    logging timestamp
    logging buffer-size 409600
    logging console critical
    logging monitor debugging
    logging buffered warnings
    logging trap informational
    logging history informational
    logging asdm informational
    logging host inside 192.168.7.10 6/0
    logging debug-trace
    But my syslog server did not receive message from ASA 5505....
    I don't what is going on?
    Do you have any command on this?
    Best Regards,
    Rechard

    Why did you put the /0 after the logging host command?
    Just put logging host inside
    Have a look at this lnk:
    http://ciscosystems.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00805a2e04.shtml
    Please rate if helpful.
    Regards
    Farrukh

  • Hi, my iPhone was stolen and now i can't receive messages from people with iPhones. What do i do to fix this problem, and get my old messages? This has been a problem for 3 weeks!

    Hi, my iPhone was stolen and now i can't receive messages from people with iPhones. What do i do to fix this problem, and get my old messages? This has been a problem for 3 weeks!

    This won't get your old messages back but will help with new ones: https://selfsolve.apple.com/deregister-imessage

  • TS4002 Hello, icloud receive messages from gilly hicks, but does not receive messages from another personal account... this is happening me since one week and i dont know how to solve this.... error in the mail delivery system says not valid IPv4 SMTP err

    Hello, icloud receive messages from gilly hicks, but does not receive messages from another personal account... this is happening me since one week and i dont know how to solve this.... error in the mail delivery system says not valid IPv4
    SMTP error from remote mail server after RCPT TO:<[email protected]>:
       host mx6.me.com.akadns.net [17.158.8.114]: 550 5.7.0 Blocked - see https://support.proofpoint.com/dnsbl-lookup.cgi?ip=184.173.9.56:
       [email protected]
    i do alse receive from gmail....
    please help... what is happening!!!!

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • "mail" will not dowload messages from server

    My "mail" program has been working fine until today. Now it will not download my messages from the server. I have made no changes what so ever in the settings and I have reviewed them & they seem ok. Being a rather new (6 mo) to mac I have no idea where to start. I have a duo intel 20 and when I switch to Outlook Express in windows no problem. Any ideas would be appreciated. I have it set to check for mail every 5 min. Also I can send ok. Jim Johnston

    Hi Jim
    I have a similar problem. Mail stopped receiving messages from the server on Tuesday afternoon around 4pm. I can see the messages on the server via a webmail page, so I know messages are there.
    Strange twists:
    1 if i rebuild the inbox, Mail will fetch all the mails from the server - but only those dating from before c4pm last Tuesday - the later ones stay on the server and are not fetched
    2 ditto if I trash the preference file for received mail (as recommended in other posts) - again, it will fetch all mails up until c4pm on Tuesday, and no later
    3 ditto if I trash the entire account, and then add a new account with the same settings - again, it will fetch messges only from before c4pm on Tuesday
    4 my dotmac mails are set to forward to the server/account in question. Mail will fetch all of these successfully from the server - even those dating from after c4pm on Tuesday - so what am I to make of that?! The account and server are identical to the one in points 1-3 above.
    I have (of course) contacted my ISP and they are mystified - they said they'll get back to me, but that was 36 hours ago and no news yet...
    I read somewhere that filling the HD can have weird knock-on effects on Mail. My HD did temporarily fill as I was importing my iTunes library from my backup disk (I got the warning that the library wouldn't fit, so I cancelled the entire operation and actually imported nothing at all). I still have more than 6GB free on the HD.
    I can send mails successfully using the account/server/ISP in question.
    Can anyone help?

  • I am having some trouble with receiving messages from iMessage users when I don't have my iMessage turned on. When I called for support, I spent 30 min waiting and the woman's response to me was "Turn on your iMessage." I prefer not to use it

    I have an iPhone 5s and a MacBook Pro. Ever since I updated my computer software to Yosemite, it linked my Apple ID with my phone number and I am not receiving messages from iMessage users on my phone, but rather to my computer. I don't like to use iMessage so I keep it off and would like to receive all messages as SMS texts. I have already tried changing my Apple ID password, logging off of my Apple ID in iMessage on my phone and turning it off, and changing settings on messages on my computer. Nothing is working. Either the messages continue to go to my computer or the messages trying to be sent say they cannot be sent.
    After spending 30 + minutes waiting for technical support, the woman helping me (who did not give me her name) told me I should just turn on iMessage. After explaining that I don't like having iMessage on and asking why it worked for at least a year up until this point she said "things change and sometimes we don't know why things do what they do". She asked me about various other things on my phone such as bluetooth and told me to turn on and off airplane mode and the call disconnected. I have not been contacted since, even though she has my phone number.
    I am hoping for some help and also hoping people don't get the type of service I received tonight.

    I think you can solve your problems by removing your AppleID email address from BOTH the Messages setting on your iPhone and the iMessages settings on your Mac.
    On iPhone:
    Settings > Messages > iMessage > Dissabled
    Settings > Messages > Send & Receive > touch the "(i)" < touch "Remove This Email"
    On Mac:
    Open "Messages" application
    Click "Messages menu > Preferences
    Click "Accounts"
    Select your AppleID account
    Under the "You can be reached for messages at" settings, uncheck your AppleID email address and your phone number
    Then uncheck the "Enable this account" setting
    And lastly, ask all of your friends with iPhones to delete all iMessage conversations (blue bubbles) in their entirety.
    To test, send a friend a new text using their phone number (not their email address) and watch the color of the bubble.  If it's green then you are using SMS.

  • Still can't receive messages from Iphone Users

    Greetings,
    I know there are many topics asking similar questions if it's googled, and I think I have read through almost all of them to no prevail. I know veterans of these boards probably get tired of seeing the same topics, but im desperate and will try to keep it quick. I really appreciate any help.
    I recently upgraded from a 4S to a Galaxy S5 and have not been able to receive messages from Iphone users since. I still have my old Iphone. Here are the steps I've tried:
    1) Ensure "IMessage" is disabled in my old phone
    2) Unregistered my phone number with my Apple ID. I currently have no phone numbers registered with them
    3) Changed my Apple ID Password
    4) Unregistered my Iphone with my ITunes Account.
    5) I also have a Macbook Air and a 2010 model IMac. I have also ensured I am signed out on those devices and my phone number isn't linked in anyway I could find.
    6) I called Apple 3 Days ago and the representitive was very nice and professional but ultimately was incorrect. He advised me that the new IoS7 is more advanced and should check about every 12 hours to see if the user on the other end has an active IMessage account. He said to wait 24 hours just to be safe. He also advised people running older IOS systems could take up to 3-4 days to contact me correctly. Furthermore he said if after that time frame their phones still sent me IMessages instead of SMS then THEY were having problems and should call Apple. I just really doubt that is the case.
    I have tested it out with 5 Iphones now with help from some friends, all running IOS7 and still no luck 3 days after the phone call to Apple.
    7) I tried logging back into IMessage today on my Macbook and it worked, I was still able to send and receive texts from Iphone users. This seems like it should not be possible since it is not linked to my phone number anymore. It is logged into the same Email that I used to have linked to my phone number.
    Now as others have said, If I have them hold down the bubble and send as text message 3 times their phone will remember and keep sending my texts, however that is unreasonable to ask everyone to do. There should just be a way to completely delete your Apple ID. Is there anything I'm possibly overlooking? I really appreciate any help.

    I am right there with you. This describes my problem to a T. Only other issue I am having is group texts. Iphone users who include me in a group text still send as imessages as well, so even if I text them first and they reply, it send as an imessage. Get it together apple.

  • 'Cannot obtain error message from server' when trying to use ODBC

    Post Author: Grant C
    CA Forum: Data Connectivity and SQL
    Hi, I'm developing some reports using Crystal XI on my local PC, using an Oracle 10i back end on a separate server.  The SQL for the report is in a method in an oracle package.
    When I set the datasource location, selecting 'Oracle Server' then entering the details works fine, and the report runs.  However, when I try to use an ODBC connection I get the following error:
    Database Connection Error: 'Cannot obtain error message from server.'
    The ODBC link is set up as a System DSN, which works fine when I test it.  I think I need to use ODBC as some of the reports (which I inherited) seem to fail when run on the Crystal Server, and it seeme to be the ones set up with ODBC which work.
    Any thoughts?  Thanks.

    Hi Mars-
    It sounds like your NI-DAQ installation may have become corrupted. I would suggest uninstalling and reinstalling the DAQmx 7.4 driver to correct this problem and ensure that you're up to date. This download is available here: NI-DAQ 7.4
    If the problem persists you may want to uninstall and reinstall LabVIEW and then NI-DAQ in that order. The error message will usually give an indication as to which VI the error occurred in. Please let us know which VI is failing if you're unable to avoid the error with these suggestions.
    Have a good day-
    Tom W
    National Instruments

  • Cannot receive messages from one person only...

    My friend and I both have iphone 4s (with iOS 6.1.3). One day i stopped receiving messages from her. I can still receive an iMessage from her (but since neither one of us has data that is dependent on internet availability) but regular text messages won't come through. She can receive regular messages from me. I can receive regular messages from everyone else (including other iphone users). I don't know what happened. I have tried multiple suggestions i found online (including deleting and readding her contact, she did same, restarted phones, typed number manually, typing number twice etc.) but none of them work. If anyone could help it would be much appreciated!!

    I'm having a similar problem. I can receive texts from this one person but he cannot receive mine. I can also not call him but he can call me. He uses A T&T but does not have this problem when texting other verizon users. I have an Iphone 4S and he has an Iphone 5. This has been happening for 3 days. I have tried resetting the networks, restarting my phone,  and checking blocked contacts. Nothing is helping with the issue.

  • BizTalk 2013 SB-Messaging Adapter: Unable to receive messages from a Azure service bus Subscription

    Hi,
    I am trying to receive messages from a Azure service bus subscription using SB-Messaging Adapter in BizTalk Server 2013 but getting the following error.
    "The token provider was unable to provide a security token while accessing 'https://overcasb-sb.accesscontrol.windows.net/WRAPv0.9/'.
    Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
    It seems the error is related with Service Bus Authentication and Authorization with the Access Control Service. Can anybody help me out if I am missing something here? 
    Also for consuming the AWSB (namespace, topic name, subscription name, Issuer name, Issuer Key) I have referred the following link
    http://soa-thoughts.blogspot.in/2013/02/biztalk-server-2013-new-adapters-series.html
    Thanks!
    Regards,
    Gautam
    gautam

    Hi,
    When I am trying to receive the same messages from a Azure service bus subscription using .net (C#) client,
    BusSubscriberbusSubscriber =
    newBusSubscriber("TestTopic2",
    "Endpoint=sb://overcasb.servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue=wqYlT4yHZimeUZacH+1V1hj/ZrKu7zK9ELaaLYDxqjc=",
    "AssetMovement",
    "AssetMovement");
    I am getting the same error here also.
    "The token provider was unable to provide a security token while accessing 'https://overcasb-sb.accesscontrol.windows.net/WRAPv0.9/'.
    Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
    By setting  <defaultProxy useDefaultCredentials="true" /> in appconfig, I got rid of the above error. And now its working fine with .net(C#) client.
    <configuration>
      <system.net>
        <defaultProxy useDefaultCredentials="true" />
      </system.net>
    </configuration>
    The same setting I tried in BTSNTSvc.exe config file and ofcourse restarted the host instance but still getting the same error. Any help?
    gautam

  • Configuring MDB to receive message from MQSeries Queues bound on WL JNDI

    Hi,
    I am using weblogic7.0 sp2. I need to configure my MDB to receive message from MQ Series (on a different server). The queue is bound to WL JNDI using a server startup program.
    Anyone with experiece, please help.
    Thanks,
    Fasih

    I'd start here:
    http://e-docs.bea.com/wls/docs70/faq/index.html
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • My imessage wont activate and work, and i dont receive messages from people useing imessage? how do i get imessage to work?

    My imessage wont activate and work, and i dont receive messages from people useing imessage? how do i get imessage to work?

    I recently moved back to Australia for school from Canada and signed up for the new iphone 6 plus. After using icloud to save and backup from my previous iphone 4s, all of the apps eventually worked....except for whatsapp. After looking through my phone and numerous chat forums, it appears that my imessage and facetime are stuck in, "waiting for activation".....is anyone else having problems with this?
    I am curious as I am unable to receive the whatsapp code to re-activate my application. This brings me to my second question, is this an iphone/apple problem or a whatsapp third party problem?
    I've had friends send imessages to me and they appear to coming through. I have already rebooted and restarted my phone numerous time. A strong connection to wifi and data stream have all come in loud and clear.
    I have tried all of the directions that were posted and still have no whatsapp and imessage still inconsistent.
    Thank you

Maybe you are looking for

  • How do I setup an external hard drive to mount at boot (without any login action) in Mavericks?

    First the Details: MacBook Pro, Retina, 15-inch, Late 2013 OS X Mavericks 10.9.5 USB 3.0 External Hard drive I am currently using an external drive for my user storage.  Right now I log in with a separate User account to mount the drive, log off, and

  • Adobe Premier elements 11 not playing any MOV files.

    Good Morning: I have been trying to get my Elements 11 to acccept MOV from my camera, Iphone 4s, Iphone 5 and Ipad air and it gives me "Cannot open" every time. Anything I can try or is there a patch? Thank you Bruce

  • Multiple Context - Changing http server port

    Hi, Is it possible to change the firewall https port to different port? Normally in single context mode you can change it with this command. http server enable 4434 In multiple context mode there is no option for the port... http server enable ?

  • MacBook Pro not waking up after being put to sleep

    Hey everyone, got a weird question. I bought an external monitor for my MacBook Pro (late 2010, Lion). For the past few days, whenever I put it to sleep using the sleep command in the Apple menu, I come home at night and find that it woke up at some

  • Accidental Volume Name Change

    Today we had an unwelcome name change to our raid array. The name was changed when unwelcome visitors fingered the keyboard and replaced the name of the volume with spaces. This immediately effected all managed computers attempting to access the moun