MapiExceptionMdbOffline: Unable to make connection to the server. (hr=0x80004005, ec=1142)

Hello,
We have 2 Exchange 2013 (build 712) servers in a DAG with distinct subnets. Cisco ASA in between was set to have no filtering between servers in subnet.
We cannot add database copies nor move mailboxes.
Tes-Mapiconnectivty fails with
unspaceId  : e8a087f1-6197-48df-b094-d5c93a7b6070
Server      : CLI-SRV01
Database    : CLI-MDB01
Mailbox     : SystemMailbox{376e8d54-7154-484a-a0a3-58f22d73236f}
MailboxGuid :
IsArchive   :
Result      : *FAILURE*
Latency     : 00:00:00
Error       : [Microsoft.Exchange.Data.Storage.MailboxOfflineException]: Cannot open mailbox /o=First
              Organization/ou=Exchange Administrative Group
              (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=CLI-SRV01/cn=Microsoft System Attendant. Inner error
              [Microsoft.Mapi.MapiExceptionMdbOffline]: MapiExceptionMdbOffline: Unable to make connection to the
              server. (hr=0x80004005, ec=1142)
In event log:
The Microsoft Exchange Mailbox Replication service was unable to process jobs in a mailbox database.
Database: RDB
Error: MapiExceptionRecoveryMDBMismatch: Unable to open message store. (hr=0x80004005, ec=1165)
Diagnostic context:
    Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=132]
    Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=248][latency=0]
Adding database copy fails with
The seeding operation failed. Error: An error occurred while performing the seed operation. Error: Failed to open a log truncation context to source server 'CLI-SRV02.CLI.ch'. Hresult: 0xc7ff07d7. Error: Failed to open a log truncation context because the
Microsoft Exchange Information Store service is not running. [Database: CLI-PFDB02, Server: CLI-SRV01.CLI.ch]
How can I further verify communication from CLI-SRV02 to CLI-SRV01 ?
Any help welcome
/Patrice

Hi,
Let's begin with the following similar thread:
http://social.technet.microsoft.com/Forums/en-US/b651d65c-92f3-460c-b555-247acb8e6fd7/recovered-exchange-2013-arbitration-system-mailboxes?forum=exchangesvravailabilityandisasterrecovery
It is the same error in the event log with you when moving mailboxes. And it can be resolved by recreating the mailboxes.
Additionally, to check the network connection between two servers, I recommend you use the network monitor to catch the package.
Thanks,
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Angela Shi
TechNet Community Support

Similar Messages

  • New Local Move Request - Error: MapiExceptionLogonFailed: Unable to make connection to the server.

    I am in the process of doing a migration from SBS 2003 std. edition to SBS 2011 std. I am at the point the migrating mailboxes from the Exch 03 server to the Exch 2010 server.  I initially received an error when selecting mailboxes that the mailbox
    db on the Exch03 server did not exist.  I followed the resolution steps from another forum post to add the Exch 2010 server to the "first administrative group" via the security tab and give full permissions.  This solved that issue and
    I was able to proceed through the wizard to actually create the local move request.  However, after processing the request, I get the following error...
    Summary: 1 item(s). 0 succeeded, 1 failed.
    Elapsed time: 00:00:03
    <username>
    Failed
    Error:
    Mailbox database '0180b88c-0cb2-4b2f-981a-6bdaecc10fcb' is offline.
    MapiExceptionLogonFailed: Unable to make connection to the server. (hr=0x80040111, ec=1010)
    Diagnostic context:
        Lid: 13720   dwParam: 0x6D9      Msg: EEInfo: Flags: 0
        Lid: 11672   dwParam: 0x6D9      Msg: EEInfo: NumberOfParameters: 4
        Lid: 8856    dwParam: 0x6D9      Msg: EEInfo: prm[0]: Unicode string: ncacn_ip_tcp
        Lid: 8856    dwParam: 0x6D9      Msg: EEInfo: prm[1]: Unicode string: <Exch03server>.<domainname>.local
        Lid: 12952   dwParam: 0x6D9      Msg: EEInfo: prm[2]: Long val: -545057711
        Lid: 12952   dwParam: 0x6D9      Msg: EEInfo: prm[3]: Long val: 382312662
        Lid: 45169   StoreEc: 0x824    
        Lid: 44273
        Lid: 59431   EMSMDB.EcDoConnectEx called [length=114]
        Lid: 34855   EMSMDB.EcDoConnectEx returned [ec=0x3F2][length=56][latency=4]
        Lid: 56945
        Lid: 59431   EMSMDB.EcDoConnectEx called [length=114]
        Lid: 34855   EMSMDB.EcDoConnectEx returned [ec=0x3F2][length=56][latency=4]
        Lid: 59505   StoreEc: 0x3F2    
        Lid: 52465   StoreEc: 0x3F2    
        Lid: 60065
        Lid: 33777   StoreEc: 0x3F2    
        Lid: 59805
        Lid: 52209   StoreEc: 0x3F2    
        Lid: 19778
        Lid: 27970   StoreEc: 0x3F2    
        Lid: 17730
        Lid: 25922   StoreEc: 0x3F2    
    Click here for help... http://technet.microsoft.com/en-US/library/ms.exch.err.default(EXCHG.141).aspx?v=14.1.218.11&t=exchgf1&e=ms.exch.err.ExC2B9A8
    Exchange Management Shell command attempted:
    '<domainname>.local/MyBusiness/Users/SBSUsers/<username>' | New-MoveRequest -TargetDatabase 'Mailbox Database 2011012823'
    Elapsed Time: 00:00:03
    I have tested running the command from the EMS and get the following...
    Mailbox database '0180b88c-0cb2-4b2f-981a-6bdaecc10fcb' is offline.
        + CategoryInfo          : NotSpecified: (0:Int32) [New-MoveRequest], RemoteTransientException
        + FullyQualifiedErrorId : AC277C79,Microsoft.Exchange.Management.RecipientTasks.NewMoveRequest
    On the Exch03 Server I have verified/tested/done the following:
    --Verified the Information Store Service is running
    --Tested restarting the service
    --Verified the Mailbox store is mounted
    --Tested Dismounting and mounting
    --Tested the Exch2010 mailbox db store is functioning properly by creating a test account and verifying w/ OWA.
    --Verified routing group b/w servers
    --verified network connectivity b/w servers
    --Verified DNS is functioning properly on both servers
    --Installed Exchange Server MAPI Client and CDO 1.2.1 on Exch2010 server.
    --Tested rebooting both severs
    I am at a loss.  Any ideas would be greatly appreciated.  I am unable to continue w/ the migration until I get past this step.

    Hi,
    Thank you for sharing the resolution.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Thanks Gen Lin-MSFT

  • I have a 5th generation iPod touch that is suddenly "unable to connect to the server", not entirely sure what this means but I'm unable to connect to the internet even though I'm connected to Wifi. Can't connect to iTunes on my pc either. Any input?

    I have a 16GB iPod touch that suddenly stopped connecting to the internet last night. Everytime I try to get mail, or access anything with Safari I get a message saying that it can't connect to the server. Also I've plugged it in to my home computer but it won't connect to iTunes either. I haven't updated to iOS8 yet as I didn't have enough space for it and I had planned on deleting all my music files, updating the software and putting whatever music I could fit back on to the device afterward, but now I'm hesitant to do that as I have no way to get any of the files back onto the device. Could this be because I haven't updated to iOS8 yet? I've been having other problems such as apps crashing unexpectedly lately as well, for example my music shuts off randomly and apps such as Twitter and Tumblr and a few others crash on launch. I'm definitely not a genius when it comes to technology by any means, so I have no idea what's causing this problem or how to fix it, any help would be greatly appreciated!

    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Sharepoint Integrated SQL Reporting - Unable to connect to the server that is specified......

    This is driving me crazy.  I have Reporting services implemented on several sites in Sharepoint.  For some reason just one site refuses to work.  I see all the features are there.  I can create data sources. 
    When I try to create a report I get :
    "Unable to connect to the server that is specified in the URL,
    http://help.site.  Make sure that the server is running, the URL is correct, and you have permission to use the server"
    I'm using my domain admin account, I know know this works on every other site.  I know I haven't forgotten the general setup of the service. 
    The only difference is this site allows "anonymous" connections.  Has anyone heard of an issue about using anon and reporting services?  Either way I authenticate before I login but that doesn't have an effect.
    David Jenkins

    Thank you forums!!!!
    I found an existing thread. 
    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/d815b9fb-3431-490d-bd51-e7e21fcb788e
    1) Opened up IIS
    2) Expanded my intranet folder
    3) Expanded _vti_bin
    4) Highlighted "ReportServer"
    5) Double Clicked on Authentication
    6) Disabled "Anonymous Access" to the reporting folder itself
    7) Opened report builder 3.0 and typed in http://intranet.company.com" BOOM instant connection :D
    David Jenkins

  • Unable to connect Firefox can't establish a connection to the server at 'URL of the site' why does this appear in all browser??

    I have used these sites
    -www.facebook.com
    -www.dubbedonline.tv/ and some others for a long time but few weeks ago i couldn't access them anymore and this appeared :
    Unable to connect
    Firefox can't establish a connection to the server at www.facebook.com.
    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
    i have also tried many ways to access them but none of the solution worked, one of them was checking troubleshooting problems and it detected that the remote device won't accept the connection, so, how can i fix this?

    You can check the connection settings.
    *Tools > Options > Advanced > Network : Connection > Settings
    *https://support.mozilla.org/kb/Options+window+-+Advanced+panel
    If you do not need to use a proxy to connect to internet then try to select "No Proxy" if "Use the system proxy settings" or one of the others do not work properly.
    See "Firefox connection settings":
    *https://support.mozilla.org/kb/Firefox+cannot+load+websites+but+other+programs+can
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Unable to connect to the server - windows sockets

    //////socket connector method////
    bool SocketConnecter::connect(const std::string& ip, size_t port)
    size_t uport = htons(port);
    std::string sPort = toString(uport);
    // Resolve the server address and port
    const char* pTemp = ip.c_str();
    iResult = getaddrinfo(pTemp, sPort.c_str(), &hints, &result); // was DEFAULT_PORT
    if (iResult != 0) {
    Verbose::show("\n -- getaddrinfo failed with error: " + toString(iResult), always);
    return false;
    // Attempt to connect to an address until one succeeds
    for (ptr = result; ptr != NULL; ptr = ptr->ai_next) {
    char ipstr[INET6_ADDRSTRLEN];
    void *addr;
    char *ipver;
    // get pointer to address - different fields in IPv4 and IPv6:
    if (ptr->ai_family == AF_INET) { // IPv4
    struct sockaddr_in *ipv4 = (struct sockaddr_in *)ptr->ai_addr;
    addr = &(ipv4->sin_addr);
    ipver = "IPv4";
    else { // IPv6
    struct sockaddr_in6 *ipv6 = (struct sockaddr_in6 *)ptr->ai_addr;
    addr = &(ipv6->sin6_addr);
    ipver = "IPv6";
    // convert the IP to a string and print it:
    inet_ntop(ptr->ai_family, addr, ipstr, sizeof ipstr);
    printf("\n %s: %s", ipver, ipstr);
    // Create a SOCKET for connecting to server
    socket_ = socket(ptr->ai_family, ptr->ai_socktype, ptr->ai_protocol);
    if (socket_ == INVALID_SOCKET) {
    int error = WSAGetLastError();
    Verbose::show("\n -- socket failed with error: " + toString<int>(error), always);
    return false;
    iResult = ::connect(socket_, ptr->ai_addr, (int)ptr->ai_addrlen);
    if (iResult == SOCKET_ERROR) {
    socket_ = INVALID_SOCKET;
    int error = WSAGetLastError();
    Verbose::show("WSAGetLastError returned " + toString(error));
    continue;
    break;
    freeaddrinfo(result);
    if (socket_ == INVALID_SOCKET) {
    int error = WSAGetLastError();
    Verbose::show("\n -- unable to connect to server, error = " + toString(error));
    return false;
    return true;
    /////////Test stub////
    int main()
    title("Testing Socket Client", '=');
    try
    Verbose v(true);
    SocketSystem ss;
    SocketConnecter si;
    while (!si.connect("localhost", 9080))
    Verbose::show("client waiting to connect");
    ::Sleep(100);
    title("Starting string test on client");
    clientTestStringHandling(si);
    title("Starting buffer test on client");
    clientTestBufferHandling(si);
    si.sendString("TEST_STOP");
    Verbose::show("\n client calling send shutdown\n");
    si.shutDownSend();
    catch (std::exception& ex)
    Verbose::show(" Exception caught:", true);//always = true
    Verbose::show(std::string("\n ") + ex.what() + "\n\n");
    I am trying to connect to the server, but the connector method shows the message "unable to connect to server" 
    While debugging i found the iResult to be -1 which makes the socket INVALID_SOCKET
    Kindly help resolve this

    Hi askatral,
    connect function can return invalid_socket for many reasons, what does the function WSAGetLastError return?
    There are some Variables that I cannot find how it is declared, like "socket_" and "ptr". So I cannot check if there is anything wrong in your code.
    Maybe this sample in the document of connect function is helpful for this issue:
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms737625(v=vs.85).aspx
    Best regards,
    Shu
    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.

  • VideoError: 1000: Unable to make connection to server or to find FLV on server

    Hello there,
    I am using a simple FLVPlayback control in my AS3 document. In that I invoked FLVPlayback's methods like play, seek, and stop. Whenever I use these methods I get "VideoError: 1000: Unable to make connection to server or to find FLV on server" error while publishing the file. If I remove these method call then I am not getting this error.
    Note: If I load above published file in another file then I'm not getting this error, however same is not working on LMS.
    It will be of great help if someone help me resolve this issue.

    I added trace that you have mentioned in first frame and here is output:
    Player Name :: vPlayer
    Player Source :: courseContent/LN_1324634806568/sampleVideo_01.mp4
    VideoError: 1000: Unable to make connection to server or to find FLV on server
              at fl.video::VideoPlayer/stop()
              at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::showFirstStream()
              at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::setState()
              at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::httpNetStatus()

  • VideoError: 1000: Unable to make connection to server

    VideoError: 1000: Unable to make connection to server or to
    find FLV on server
    I've spent a lot of time in the past couple of weeks trying
    to figure out what could be the problem.
    I developed a Live Streaming Flash (swf) that play fine in my
    local host with my Labtop with FMS3 Installed.I can see my live
    video in internet only when i use my laptop. What puzzled me is
    that even when i connected to Internet my Live stream and the
    dynamic playlist work perfect on my laptop but never in any other
    computer. I have tested it on several computers in different
    places, the only thing i get always is this code;
    VideoError: 1000: Unable to make connection to server or to
    find FLV on server
    at fl.video::VideoPlayer/play()
    at fl.video::FLVPlayback/
    http://www.adobe.com/2007/flash/flvplayback/internal::showFirstStream()
    at fl.video::FLVPlayback/
    http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio
    n()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.video::VideoPlayer/
    http://www.adobe.com/2007/flash/flvplayback/internal::setState()
    at fl.video::VideoPlayer/
    http://www.adobe.com/2007/flash/flvplayback/internal::httpNetStatus()
    Does anybody know what can cause this error and how to fix
    it?
    Thanks in advance,
    Delluchi

    I can't answer your question but it sounds like you have a similar problem to me, I can make the connection fine from my laptop but no other pc can connect or see the stream. Why can't someone just tell you in plain english how to ....  better still why can't Adobe actually tell you in plain english! Hope you work it out, if you do let me know please!

  • 1000: unable to make connection to server or to find FLV

    Hi,
    this is driving me crazy. This is so simple, I can't believe
    there is a problem. I placed and FLVPlayback component in my flash
    file, and named it "my_playback".
    I created an actions layer and in it I do:
    my_playback.contentPath("moviename.flv") ;
    and the stupid flash gives me the error when I run it :
    1000:unable to make connection to server or to find FLV.
    Now the damn "moviename.flv" is in he same directory as the
    flash file, so what is going on?
    I just can't believe that the simplest things are are so hard
    with Flash, I am getting so annoyed by it, I am almost ready to
    give up on Flash.
    Does someone have an idea of what is going on?
    thanks
    -Malena

    no idea..
    what version of flash?
    what is in the contentPath parameter for that component
    instance?
    I cant reproduce your problem, can I have your fla
    file?

  • Unable to open any websites from the search engines. the ones I have tried are google, yahoo and ask. They opened until recently. The popup says" Firefox can't establish connection to the server." Ask worked last night but is not working now.

    When I try to open a web site from one of the search engines a pop up shows stating that Firefox can't establish connection to the server. I can't open any websites through any of the search engines.

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How to make the client connect to the server at the command prompt?

    I found this code on IBM's website, it was a training session on servers and clients using java.
    The code compiles fine and the server seems to start up properly when I use java Server 5000. I think whats happening is the server is running and listening for a connection on port 5000.
    When I try to run the client I get the following error.
    Exception in thread "main" java.lang.NoSuchMethodError: main
    I see a start() method but no main. As far as I know, applications should all have main, it seems as if the person who wrote this kinda confused applets with application. Not that I would really know what happened.
    If you have time, could you tell me if there's an easy fix for this? I would love to have this client/server working if it isn't too much trouble. As I have looked all over the net for a free client/server applet that will actually let me see the java code and none of the free ones do allow getting to their source.
    Most of them allow you to customize them somewhat but also have built in advertising that can't be removed.
    This is the closest I have come to finding one that lets me look under the hood. But alas it doesn't work out of the box and I don't know what to do to fix it.
    Heres the code: Server:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class Server
      // The ServerSocket we'll use for accepting new connections
      private ServerSocket ss;
      // A mapping from sockets to DataOutputStreams.  This will
      // help us avoid having to create a DataOutputStream each time
      // we want to write to a stream.
      private Hashtable outputStreams = new Hashtable();
      // Constructor and while-accept loop all in one.
      public Server( int port ) throws IOException {
        // All we have to do is listen
        listen( port );
      private void listen( int port ) throws IOException {
        // Create the ServerSocket
        ss = new ServerSocket( port );
        // Tell the world we're ready to go
        System.out.println( "Listening on "+ss );
        // Keep accepting connections forever
        while (true) {
          // Grab the next incoming connection
          Socket s = ss.accept();
          // Tell the world we've got it
          System.out.println( "Connection from "+s );
          // Create a DataOutputStream for writing data to the
          // other side
          DataOutputStream dout = new DataOutputStream( s.getOutputStream() );
          // Save this stream so we don't need to make it again
          outputStreams.put( s, dout );
          // Create a new thread for this connection, and then forget
          // about it
          new ServerThread( this, s );
      // Get an enumeration of all the OutputStreams, one for each client
      // connected to us
      Enumeration getOutputStreams() {
        return outputStreams.elements();
      // Send a message to all clients (utility routine)
      void sendToAll( String message ) {
        // We synchronize on this because another thread might be
        // calling removeConnection() and this would screw us up
        // as we tried to walk through the list
        synchronized( outputStreams ) {
          // For each client ...
          for (Enumeration e = getOutputStreams(); e.hasMoreElements(); ) {
            // ... get the output stream ...
            DataOutputStream dout = (DataOutputStream)e.nextElement();
            // ... and send the message
            try {
              dout.writeUTF( message );
            } catch( IOException ie ) { System.out.println( ie ); }
      // Remove a socket, and it's corresponding output stream, from our
      // list.  This is usually called by a connection thread that has
      // discovered that the connectin to the client is dead.
      void removeConnection( Socket s ) {
        // Synchronize so we don't mess up sendToAll() while it walks
        // down the list of all output streamsa
        synchronized( outputStreams ) {
          // Tell the world
          System.out.println( "Removing connection to "+s );
          // Remove it from our hashtable/list
          outputStreams.remove( s );
          // Make sure it's closed
          try {
            s.close();
          } catch( IOException ie ) {
            System.out.println( "Error closing "+s );
            ie.printStackTrace();
      // Main routine
      // Usage: java Server <port>
      static public void main( String args[] ) throws Exception {
        // Get the port # from the command line
        int port = Integer.parseInt( args[0] );
        // Create a Server object, which will automatically begin
        // accepting connections.
        new Server( port );
    }CLIENT:
    import java.io.*;
    import java.net.*;
    public class ServerThread extends Thread
      // The Server that spawned us
      private Server server;
      // The Socket connected to our client
      private Socket socket;
      // Constructor.
      public ServerThread( Server server, Socket socket ) {
        // Save the parameters
        this.server = server;
        this.socket = socket;
        // Start up the thread
        start();
      // This runs in a separate thread when start() is called in the
      // constructor.
      public void run() {
        try {
          // Create a DataInputStream for communication; the client
          // is using a DataOutputStream to write to us
          DataInputStream din = new DataInputStream( socket.getInputStream() );
          // Over and over, forever ...
          while (true) {
            // ... read the next message ...
            String message = din.readUTF();
            // ... tell the world ...
            System.out.println( "Sending "+message );
            // ... and have the server send it to all clients
            server.sendToAll( message );
        } catch( EOFException ie ) {
          // This doesn't need an error message
        } catch( IOException ie ) {
          // This does; tell the world!
          ie.printStackTrace();
        } finally {
          // The connection is closed for one reason or another,
          // so have the server dealing with it
          server.removeConnection( socket );
    }Thanks for your time.

    CLIENT:
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    public class Client extends Panel implements Runnable
      // Components for the visual display of the chat windows
      private TextField tf = new TextField();
      private TextArea ta = new TextArea();
      // The socket connecting us to the server
      private Socket socket;
      // The streams we communicate to the server; these come
      // from the socket
      private DataOutputStream dout;
      private DataInputStream din;
      // Constructor
      public Client( String host, int port ) {
        // Set up the screen
        setLayout( new BorderLayout() );
        add( "North", tf );
        add( "Center", ta );
        // We want to receive messages when someone types a line
        // and hits return, using an anonymous class as
        // a callback
        tf.addActionListener( new ActionListener() {
          public void actionPerformed( ActionEvent e ) {
            processMessage( e.getActionCommand() );
        // Connect to the server
        try {
          // Initiate the connection
          socket = new Socket( host, port );
          // We got a connection!  Tell the world
          System.out.println( "connected to "+socket );
          // Let's grab the streams and create DataInput/Output streams
          // from them
          din = new DataInputStream( socket.getInputStream() );
          dout = new DataOutputStream( socket.getOutputStream() );
          // Start a background thread for receiving messages
          new Thread( this ).start();
        } catch( IOException ie ) { System.out.println( ie ); }
      // Gets called when the user types something
      private void processMessage( String message ) {
        try {
          // Send it to the server
          dout.writeUTF( message );
          // Clear out text input field
          tf.setText( "" );
        } catch( IOException ie ) { System.out.println( ie ); }
      // Background thread runs this: show messages from other window
      public void run() {
        try {
          // Receive messages one-by-one, forever
          while (true) {
            // Get the next message
            String message = din.readUTF();
            // Print it to our text window
            ta.append( message+"\n" );
        } catch( IOException ie ) { System.out.println( ie ); }
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    public class ClientApplet extends Applet
      public void init() {
        String host = getParameter( "192.168.1.47" );
        int port = Integer.parseInt( getParameter( "5000" ) );
        setLayout( new BorderLayout() );
        add( "Center", new Client( host, port ) );
    }Sorry about that. Now when I run an html file with this applet I just get the x in the corner.
    Thanks for looking.

  • I just switched from a PC and am installing googlemail on my macbook. it has successfully connected my calendar and contacts. But my mail is not linking. i get a unable to connect to the server message. any ideas wise ones pls

    i have just switched from a PC and installing my googlemail account onto my Macbook pro. I can successfully see my calendar and contacts but my mail will not connect. i get an error message - can not connect to the server. Any ideas please?

    Neil,
    I don't use Apple's Mail client (I use MS Outlook) but setting up your Gmail account should be fairly straightforward. Just make certain that you have your settings correct.
    For your incoming server, be sure to use the "map.gmail.com" server, using SSL, using port "993" (usually the default).
    For your outgoing server, be sure to use the "smtp.gmail.com" server, override the default port and use port "465" and use SSL to connect and make sure that you enter your email address and password to access the SMTP server.
    If you've already set up your account with these settings, you may need to Google "gmail setup apple mail" and find the Google document relating to same.
    Good luck,
    Clinton
    MacBook Pro (15” Late 2011), OS X Yosemite 10.10, 16GB Crucial RAM, 960GB M500 Crucial SSD, 27” Apple Thunderbolt Display

  • There is a problem with the server's security certificate. The security certificate is not from a trusted certifying authority. SAP Business One is unable to connect to the server

    Hello,
    I have an issue with connecting client SB1H on Windows, the scenario is as follows:
    1.- Server:
         Suse Linux Enterprise Server 11.3 kernel version: 3.0.76-0.11 IBM
         NDB and Server are review 69 SP06
    2.- Client:
         Windows 8 Pro Virtual Machine on Microsoft Hyper-V
         SB1H PL 11 version 32bits    
         SAP HANA Studio version 1.0.60
    When I run SB1H the following message appears:
    There is a problem with the server's security certificate. The security certificate is not from a trusted certifying authority. SAP Business One is unable to connect to the server.
    Any idea what could be the solution?

    Hi,
    Please check SAP notes:
       1993392 - Server components setup wizard: New default values for certificates and single sign-on option
    1929288 - Do not configure SSL for XApp during installation or upgrade if XApp is installed on a different machine than the SAP HANA server
    Thanks & Regards,
    Nagarajan

  • [Forum FAQ] "Unable to connect to the server by using Windows PowerShell Remoting" error while installing RDS roles on Server 2012 R2

    When you try to install RDS role on server 2012 R2 using standard deployment, this issue may occur (Figure 1).
    “Unable to connect to the server by using Windows PowerShell remoting”.
    Figure 1: Unable to connect to the server by using Windows PowerShell remoting
    First of all, we need to verify the configurations as it suggested:
    1. The server must be available by using Windows PowerShell remotely.
    2. The server must be joined to a domain.
    3. The server must be running at least Windows Server 2012 R2.
    4. The currently logged on user must be a member of the local Administrators group on the server.
    5. Remote Desktop Services connections must be enabled by using Group Policy.
    In addition, we need to check if the “Windows Remote Management “service is running and related firewall exceptions have been created for WinRM listener.
    To enabling PowerShell remoting, we can run this PowerShell command as administrator (Figure 2).
    Enable-PSRemoting -Force
    Figure 2: Enable PowerShell Remoting
    However, if issue persists, we need to check whether it has enough memory to work.
    By default, remote shell allots only 150 MB of memory. If we have IIS or SharePoint App pool, 150 MB of memory is not sufficient to perform the remoting task. Therefore, we need to increase
    the memory via the PowerShell command below:
    Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 1000
    Then, you need to restart the server and the issue should be resolved.
    You can get more information regarding Remote Troubleshooting by below link:
    about_Remote_Troubleshooting
    If you need further assistance, welcome to post your questions in the
    RDS forum.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    i found another possible reason, this solution worked for me:
    http://oyvindnilsen.com/solution-for-powershell-remoting-error-it-cannot-determine-the-content-type-of-the-http-response-from-the-destination-computer/
    I tried to set up powershell remoting on a server and kept getting this error:
    Enter-PSSession : Connecting to remote server failed with the following error message : The WinRM client cann
    ot process the request. It cannot determine the content type of the HTTP response from the destination comput
    er. The content type is absent or invalid. For more information, see the about_Remote_Troubleshooting Help to
    pic.
    After a bit of troubleshooting I discovered that the problem was that the authentication packets was to big (over 16k), this will cause WinRM to reject the request. The reason for authentication packets getting too big can be because the user is member of very
    many security groups or in my case because of the SidHistory attribute.
    The solution was to increase the MaxFieldLength and MaxRequestBytes keys in the registry under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters
    If the keys does not exists you can create them, be sure to use the DWORD type.
    I sat MaxFieldLength to DEC value 40000 and MaxRequestBytes to DEC value 32768 and rebooted the server. Problem solved.

  • I can no longer access facebook from my macair and when i try the following error message appears "unable to establish a secure connection to the server.

    I have had no issue accessing Facebook in the past using my MacAir.  Last night each time I would try and access the page, an error message would appear, saying that unable to establish a secure connection to the server "www.facebook.com"".  The problem continues this morning.  I have not updated any software or made any changes.  One minute it was working, the next it was not.  I do not have any parental controls; I have deleted the cookies; and I have reset safari.  I can access all other websites that I have tried.  I am using Version 6.0.4.

    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:  Remove All Website Data
    Then delete the cache.
    Now open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If nothing above helped, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
    If it's not an extensions issue, restart your internet modem and router.  Then quit and relaunch Safari and try Facebook.

Maybe you are looking for

  • AWI (Auth Workstation Importing) not working

    Hi, we are experiencing a really strange behavior of our ZDM 6.5SP2 AWI service; we get the error in zenwsimp.log Mar 5, 2008 5:13:29 PM Politica_Import_Remove_CCRTV:General:Importar desde la estacin.BORA-NCS.SRV_CENTRAL.CCRTV Mar 5, 2008 5:13:29 PM

  • Why I can´t install cs6?

    I just bought cs6, but i cant install it. I have a mac pro version os x 10.5.8. do I need a different version? can I update my current version?

  • Vo based on where like clause

    Hi All, In my Vo the query is:- select empno,ename from emp where ename like :1 now i am setting the variable in VO as follows:- setWhereClauseParams(null); setWhereClauseParam(0, empNameKey); executeQuery(); But i am getting an error :- SQL error du

  • App store gone to an older version?

    My App Store has suddenly gone to the very first version. Why? How do I get the latest App Store look back on my iPhone? Thanks

  • S440 - M.2 Length (SSM / SSD)

    Hi Folks, I recently bought a S440 and would like to add a SSM (M.2) now to install the OS on it. Unfortunately I'm not able to find an answer about the length of the SSM (2242, 2260, 2280). Is anyone able to provide me with this detail or can refer