How to make the server respond with a popup?

I want to make the server respond with a popup?my code is like this,but it does not work,why?
<code>
public class Welcome2
     public static void main(String[] args)throws IOException
          ServerSocket server = new ServerSocket(2222);
          while(true)
               Socket s = server.accept();
               BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
               String msg = in.readLine();
               if(msg.equals("visitor"))
                    System.out.println("recv...");               
                    JOptionPane.showMessageDialog(null,"Visitor coming!\n");
     System.exit(0);
               server.close();
</code>
it can properly print out "recv...",but no popup,why?

Define "does not work". What happens?
Does your program compile? Do you get an exception? Does the program receive a line? Is the line equal to whatever you expect? Is showMessageDialog() called? Put in some debugging println's to see what happens.

Similar Messages

  • How do I resolve this related Ical message? The server responded with "400" to operation CalDAVUploadDropBoxFileQueueableOperation.

    How do I resolve this related Ical message? The server responded with “400” to operation CalDAVUploadDropBoxFileQueueableOperation.

    I am having this problem too...and also I (most of the time) can't invite anyone on my google apps domain to a meeting. WEIRD! HELP!!! I just switched to Mac from PC...this was supposed to be EASY!
    I get all kinds of error  messages...
    1) The request for “Test Appointment” in “[email protected]” in account “yyyy.com Google” failed.  The server responded with “400” to operation CalDAVScheduleEventQueueableOperation. *My google calendar *IS* updated despite the error, but the appointment is greyed out on my calendar.
    2)  The URL https://calendar.google.com/calendar/dav/[email protected]/user///calendar.google.com/calendar/dav/[email protected]/user/ encountered HTTP error 404. Make sure the URL is correct. The URL *IS* correct.
    Also, when I try to invite people to appointments, iCal adds random attendees and frequently will not add an attendee if they are in my domain. HELP.

  • When opening the Calendar app, I am greeted with a box that says "This calendar can not be refreshed."  After clicking on "OK" another box pops up saying "The server responded with an error."  How can I get rid of these?

    When opening the Calendar app, I am greeted with a box that says "This calendar can not be refreshed," and after clicking ok there is another box saying "The server responded with an error."  How do I get rid of this.  The calendar functions all right, but just have to close both of those boxes after doing any action in the calendar app.

    Please take each of the following steps that you haven't already tried, until the problem is resolved. Back up all databefore making any changes.
    Step 1
    From the Calendar menu bar, select
    Calendar ▹ Preferences ▹ Accounts
    Choose the affected account from the list on the left and uncheck the box marked
    Enable this account
    Then check the box again. Test.
    Step 2
    Make a note of the account settings, then delete the account and add it back with the same settings.
    Step 3
    If you can't add the account, the settings may be invalid. Verify them. How you do that depends on what kind of account it is. If it's a Google calendar and you've activated 2-step verification, you need to generate an application-specific password in your Google account and enter it in place of your old password.
    Step 4
    Quit Calendar. Triple-click the line below on this page to select it:  
    ~/Library/Calendars/Calendar Cache  
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a file named "Calendar Cache" selected.
    Move the selected file to the Trash. There may be one or two other files in the same folder with names that begin in "Calendar Cache". If so, delete those files too.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • Can anyone explain how to fix this? The server responded with "502" to operation CalDAVAccountRefreshQueueableOperation.

    I repeatedly get this error message for iCal whenever I am on line:
    The server responded with "502 to operation CalDAV Account refresh queaeable operation." How can this be fixed.

    Open up iCal Preferences and select the 'Accounts' tab.  What accounts do you have listed there?  Do you know what they all are?  Do you use them all?  If there are any that you know you don't use then remove them.  If you don't know what they are then unclick 'Enable this account' and see if it makes any difference, not just to the problem but to how you use iCal.  If you lose data then you need that account.  It might be worth noting the details of that account then removing it and recreating it.  You could also try changing the refresh frequency so that if you can't remove the problem totally then at least it won't bother you so often.

  • HT4968 Calendar is locked on my Mac. I keep getting the message "The server responded with an error: Access to iCloud is not permitted. The server responded 403 to operation caldavmigrate to server queue able operation." How do I resolve?

    Calendar is locked on my MAC.
    I keep getting the message" The server responded with an error: Access to icloud is not permitted. The server responded 403 to oepration caldavmigrate to server queueable operation."
    How do I recify?

    We previously had a similar issue when migrating multiple accounts from MobileMe to iCloud.  The issue was resolved by disabling and then enabling iCal sync through iCloud on our iMacs in System Preferences.
    Always backup your calendar before troubleshooting (File > Export > iCal Archive).
    The following steps are roughly from a Apple Support Community discussion.
    Open iCloud in System Preferences.
    Switch off (uncheck) iCal sync in iCloud System Preferences pane.
    Backup iCal before doing this. You will need to remove calendar data.
    Open iCal and verify the iCloud account is removed in the iCal preferences under accounts.
    Close iCal, reopen System Preference and switch on (check) iCal sync in iCloud System Preferences pane.
    Reopen iCal and verify the iCloud account is enabled in the iCal preferences under accounts.
    At this point if the problem persists you might try completely signing out of iCloud and then signing back in. But remember to backup all related data (iCal, Contacts, Mail, Photostream, etc) before turning off iCloud sync!

  • ICloud, when tries to sync with iCal reverts with the following message The server responded with "509" to operation CalDAVWriteEntityQueueableOperation. It would not sync my calendars.Any ideas how to fix it?

    iCloud, when tries to sync with iCal reverts with the following message The server responded with “509” to operation CalDAVWriteEntityQueueableOperation. It would not sync my calendars. Any ideas how to fix it? Thanks.

    Same issue here, hope someone has a clue how to solve this.

  • ICal issue - "The server responded with an error"

    Hi All. I've been having this error pop up on my iCal for the last week after the last iOS update and it's driving me a little batty.
    I don't have any shared calendars, appointments loaded in. I'm just running the iCal calendar frm icloud between my Air and my iPhone.
    Error that pops up reads:
    The server responded with an error.
    The URL ***icloud***/principal/ encountered HTTP error 404. Make sure the URL is correct.
    I haven't changed anything in settings. The appointments are still syncing between my computer and phone however, this pop up comes up every 5-30 seconds on my computer if iCal is open.
    Ideas on how to fix it?

    Is this the pop-up you get?
    The request for account “[email protected]” failed.
    The server responded with
    “HTTP/1.1 502 Bad Gateway”
    to operation CalDAVAccountRefreshQueueableOperation.
    I've never seen it before but am getting it this evening (UK time). Also if I try to log in to MMe Calendar it's not logging in but going to 'find my iPhone' like it did when Mail was mucking about a few weeks back.

  • Failed to load resource: the server responded with a status of 404 (Not Found)

    I uploaded 2 x small Wordpress sites to Azure this morning using the local Git repository on my iMac. They worked fine when I checked them earlier and now I see the websites are not loading correctly with 30+ errors on each effecting all .css, .js and
    .jpg files - using view source, these are the error messages.
    Failed to load resource: the server responded with a status of 404 (Not Found)
    When I open the web root in my ftp client the files are definitely there as you would expect. I am using Azure Small Basic Hosting, any thoughts on what has gone wrong and how to fix the websites?
    Site 1: http://goo.gl/VONbHc
    Site 2: http://goo.gl/wdTP67
    Liam

    Hi,
    I tested your site 1, when I open http://goo.gl/VONbHc, it direct me to
    http://templestudios.azurewebsites.net/ ,so I think you create templestudios as your azure website name. it seems that the page will go directory to another page, one image html code as below.
    <img width="300" height="225" title="Portrait Photography" class="thumb wp-post-image" alt="Portrait Photography" src="http://www.photostudio.ie/wp-content/uploads/portrait-girl-dublin-300x225.jpg">
    The image was not found seems more relate to
    http://www.photostudio.ie , I open this site, contents are as following screenshot.
    Hope this helps
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ICal: The server responded with an error. The event ... was rejected by iCloud because it already exists

    I exported my ical to send to a friend, then opened it to make sure that it would work to find out that it duplicated all my events, this how now left me with an infinite error message of "The server responded with an error. ... event already exists".
    Please help! It took me amny hours to organise my school calender and deleteing it is not an option.

    Yes where is the easy fix? I imported a calendar from my kids school district and whenever I enter a new event the error message for all events pops up.....The solution suggested by one is extremely cumbersome so I did not even try it....
    Apple where r u with user friendliness? Please

  • "The server responded with an error" - Calendar

    I get the error message "The server responded with an error" every five minutes from the calendar app, along with the following:
    "The URL https://calendar.google.com/calendar/dav/[my e-mail is here]/user/ encountered HTTP error 404. Make sure the URL is correct.
    I used to sync a google calendar but deleted it because I don't use it anymore. I just want the error message to go away.
    Thanks for your help!

    My use case is slightly different; we still use our google calendar inside "iCal", and we got the same error text.
    Not sure whether this will solve it longer-term, but I simply deleted the Google account from Calendar / Accounts...  and then re-added it. After ~20 minutes, the pop-up has not popped up, so I'm calling this 'success' for now.
    Here's how:
    In Calendar on the Mac, choose Calendar / Accounts... ( this will open System Preferences / Internet Accounts )
    Find the Google account which is syncing its calendar to iCal
    Select it (click) and then remove it by clicking the minus icon [ - ] below the list of accounts. Read and confirm that you're removing the account. It's your choice.
    Close (quit) Calendar if you have not already closed it. This may not be necessary, but I quit the application just the same.
    Back in Internet Accounts, click the [+] to add a new account. Choose Google.
    Enter your Google account name and password. Choose Calendar and un-check any that you do not want.
    Re-open Calendar and the google calendars should re-sync and display as expected. If you chose any custom colors, you may need to reset them according to your preferences.
    I hope this helps. Good luck!

  • Constant message:"the server responded with an error"??

    how do i fix a recurrent message that interferes with the use of my calendar...the message flashes constantly and says as a title:  "the server responded with an error" next it says "access to apple open training in "home" in account "icloud" is not permitted.  the server responded 403 to operation caldavwriteentityqueuable operation end of message...then it gives me a choice of ignore, try again or revert to server...until now i used to click ignore and it would sort of not come back that often, now it comes back in about 2 seconds whether i'm using the calendar or not and i have to constantly click it off...the most serious part is that it renders my calendar unusable...i need help!! thank you.  ana maria wilson

    Greetings,
    1. First make an iCal backup:  Click on each calendar on the left hand side of iCal 1 at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    2. Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    ---NOTE: Removing these files may remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Once the computer is back up and running open iCal.
    Go to iCal > Preferences > Accounts and delete your MobileMe account if present.
    Quit and re-open iCal and then check iCal > Preferences > Accounts to make sure the MobileMe accounts stayed gone.
    Now re-add it as Account Type : MobileMe and enter your full MobileMe email address and password exactly.
    Hope that helps.

  • I received the error (in iCal on my iMac): "The server responded with an error". The error message is very large, and if there is a way to acknowledge and close it I can't find it. Because this error message is open, I can't do anything in iCal. Any sugge

    I received the error (in iCal on my iMac): "The server responded with an error". The error message is very large, and if there is a way to acknowledge and close it I can't find it. Because this error message is open, I can't do anything in iCal. Any suggestions on how I could kill this error message? Thanks.
    iMac, Mac OS X (10.7.2)
    Basically i tried to enter too much information into my calendar and it has crashed  now i can not get rid of the error message or use the calendar  can anyone help please

    did you find ou how to get rid of it i can't

  • I added a reminder in iCal and it froze up.  The error message is:The server responded with an error.

    I added a reminder in iCal and it froze up.  The error message I am receiving is:The server responded with an error.  The application then locks up and I can't find out how to resolve the issue.

    Check the parameters in your email account against what is recommended by your email provider.
    Settings > Mail, Contacts, Calendars > account
    Have you contacted the support contact at your email provider?

  • I received the error (in iCal on my mac) : "The server responded with an error" while creating an event. I can't delete or acknowledge this error and now iCal is frozen. Any suggestions?

    I received the error (in iCal on my iMac): "The server responded with an error". The error message is very large, and if there is a way to acknowledge and close it I can't find it. Because this error message is open, I can't do anything in iCal. Any suggestions on how I could kill this error message? Thanks.

    did you find ou how to get rid of it i can't

  • When I try entering a new event in iCal on my MacBook Air, I get an error message popping up on my screen that says: The request for account "iCloud" failed.  The server responded with "502" to operation CalDAVSetPropertyQueueableOperation. Help!!??

    When I try entering a new event in iCal on my MacBook Air, I get an error message popping up on my screen that says:
    The server responded with “502”
    The request for account “iCloud” failed. 
    The server responded with “502” to operation CalDAVSetPropertyQueueableOperation.
    The request for account “iCloud” failed.
    I am then given the option of staying Online or going Offline.
    Can anyone help me?
    thanks

    Hello b.krushel,
    Thank you for using Apple Support Communities
    Any number of things could cause this issue, so I would recommend this article named iCloud: Troubleshooting iCloud Calendar found here http://support.apple.com/kb/TS3999.
    These sections in particular:
    General Troubleshooting
    Make sure there are no current issues listed on the System Status that affect iCloud Calendar. The System Status is located on the iCloud Support webpage.
    Make sure you have fully enabled iCloud Calendar for the client you are using (for more setup and troubleshooting information on iOS, OS X, Windows and iCloud.com, see the additional details below).
    Check to see if the issue you are seeing is covered in iCloud Help. To search iCloud Help, visit help.apple.com/icloud.
    Check your settings and preferences as something may not be set up correctly. For example, having incorrect date and time settings can cause issues which are easily resolved by entering the appropriate settings.
    Troubleshooting Calendar on OS X Mountain Lion (iCal on OS X Lion)Note: For instructions on setting up iCloud Calendar with Calendar or iCal on your Mac, see iCloud Setup.If you are having trouble with Calendar or iCal on a Mac and you are using iCloud Calendar, try each of these steps, testing after each to see if the issue is resolved:
    Make sure you are using OS X Lion v10.7.2 or later. Click here for help verifying the version of OS X you are using.
    Make sure your computer is online. Attempt to view www.apple.com and iCloud.com. If you can't connect to the Internet, your iCloud calendars and events will not update in iCal. Click here for more information about troubleshooting your Internet connection.
    Verify that your iCloud member name is entered into the iCloud Preference pane in System Preferences. See iCloud Setup for more information about setting up iCloud on a Mac.
    Make sure you enter and update calendar information in the iCloud section of Calendar or iCal. Only calendars and events in the iCloud section of the Calendar or iCal Calendar list will be pushed to iCloud. Both Calendar and iCal for the Mac support the display of and interaction with multiple accounts and datastores, for example, iCloud, On My Mac, Exchange, Google, and so on. This makes it easy to create or modify events or calendars in a section of  Calendar or iCal that may not be updating iCloud. Learn more about moving local calendars to iCloud.
    In some cases, you may find that you have data duplicated in both the local On My Mac and the iCloud sections of Calendar or iCal. Learn more about resolving this issue.
    You can make the iCloud calendar your default calendar for all new events. In Calendar on OS X Mountain Lion, choose Calendar > Preferences > General, or in OS X Lion, choose iCal > Preferences > Generaland under the Default Calendar heading, select one of the Calendars under the iCloud heading. Close the Preferences window to save this change.
    If recent changes simply don't appear, try forcing Calendar or iCal to refresh by selecting Refresh All from theCalendar menu.
    Make sure your account was successfully created in Calendar on your Mac (or iCal). After upgrading to iCloud Calendar, you may need to quit and reopen Calendar (or iCal). To confirm your account is configured correctly in iCal:
    Open Calendar (or iCal).
    Open Calendar (or iCal) Preferences.
    Click Accounts. You should see an account with your iCloud member name entered.
    Turn iCloud Calendars off and back on
    Quit Calendar (or iCal).
    Choose Apple () menu > System Preferences > iCloud.
    Remove the checkmark in the checkbox next to Calendars.
    Close System Preferences and wait about a minute.
    Open System Preferences and choose iCloud.
    Replace the checkmark next to Calendars.
    Close System Preferences.
    Open Calendar (or iCal) and test to see if the issue has been resolved.
    Restart your computer. This may sound simple, but it does reinitialize your network and application settings and can frequently resolve issues.
    Take care,
    Sterling

Maybe you are looking for

  • How do I configure Azure to let my cloud service make an outbound API call

    My cloud service works locally when I debug it, but when I deploy it, I know it has database access because database updates are taking place. It seems like the service is not able to call make calls to the Yammer API on port 443 for SSL (is that rig

  • (500) Internal Server Error when create storage table use development account

    Yesterday, our team suddenly cannot use storage emulator all, it always said 'can not create database' when start the emulator. Finally, we found a issue may affect this, we delete the WAStorageEmulatorDb30.mdf file in C:\Users\[User], and create man

  • Report Broadcasting error

    I need help while broadcasting Collection Report region wise. I have created 21 variants for this report and saved it as new workseet in Roles AR. Then I have choosen Distribute on web and given all the variants and schedules and executed it. I dont

  • Pharmaceutical Industry Process KPI's

    Hi, As a part of my work, I am conducting research on Pharma Industry processes with a view to align IT(ERP) with business. In this regard, it would be great if some one could lead me to find good overview of the Pharma processes (such as Clinical Tr

  • Java_es-5-websuite-ga-windows-x86 installation issue not setting JAVA_HOME

    looks like the installer from java_es-5-websuite-ga-windows-x86.zip is not setting the JAVA_HOME variable correctly. C:\Sun\JavaES5\DSEE\dscc6\bin>dsccsetup.exe initialize Failed to create child process ["1/bin/java.exe" -Dsun.directory.clip. [...]