MDM Server on Linux, Console on Windows - status is "stopped"

We installed MDM (SRM-MDM) on a Linux systems with MaxDB. The server itself seems to run fine:
Starting:  - Thu Dec  4 12:47:52 CET 2008
Linux mdmtest 2.6.16.60-0.33-xen #1 SMP Fri Oct 31 14:24:07 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
pending signals                 (-i) 128064
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 128064
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/xvda1            57677500   4284708  50462940   8% /
udev                  27262976       144  27262832   1% /dev
-rwxr-xr-x 1 root root 48603243 2008-12-03 16:19 /opt/MDM/bin/mds-r
mds Version 5.5.63.77
        Built on 2008-Oct-20
Client Interface Version 5.5.63.02
        - Interface CRC=0xf39a67cb
Console Interface Version 5.5.63.02
        - Interface CRC=0xf1cd6216
Web Interface Version 5.5.63.00
        - Interface CRC=0x9d7cb0c4
Program is now exiting ...
Loading shared library: ncs.so ...
ncs.so loaded.
When we try to connect an MDM Console from a Windows box it´s always showing the server as "stopped" although all the services are running:
mdm@mdmtest:~/mdm/mds> ps -ef | grep mds-r
mdm      12653 12652  0 12:47 pts/0    00:00:16 /opt/MDM/bin/mds-r
mdm      12896 12855  0 13:19 pts/0    00:00:00 grep mds-r
We already tried different versions of the console but it always is just "stopped". I can ping and telnet from the machine running the console, I can connect to the MDM ports (20003, 20004 etc.) without any problem.
That version numbering with SRM-MDM, patches, service packs and hotfixes and the actual build numbers is very confusing. I have no clue what else to try, maybe someone has an idea before I need to open an OSS call..
Thanx!
Markus

Hi Christian,
- When mounting the server in Console rather enter the IP of the server than its name.
I put the name in the hosts file of the Windows machine, I tried both - always the same
- Try to connect via CLIX ("clix mdsstatus" command). This should come with your installation.
C:ProgrammeSAP MDM 5.5CLIX>clix mdsStart <internal-ip>:MDT
Error: 0xffffffff, Unspecified error
- Can you actually start the server if it is stopped?
No - MDM-Console tells me, that it can´t connect to the Windows service...
Otherwise, I'm clueless at this moment as well. Keep us updated.
I will - thank you!
Markus

Similar Messages

  • Satellite Server. Role is enabled but status is stopped

    I have a satellite server (SLES 11.3) that has two roles assigned: imaging and content. Imaging is working fine, but when I run zac satr, it reports:
    Role: Content Enabled: true. Status: Stopped.
    I've tried removing that role and then readding it, but get the same result. Is there a way I can force it to try to start so I can check the logs (zmd-messages? is that the right log to be checking?) and see where it's failing? Are there rpms that I can reinstall that might correct it?
    The one complication with this machine is that it used to be a primary server. I went through the primary server uninstall process and then set it up as a satellite. Everything was working fine, but now I'm running into this problem.
    I appreciate any thoughts the community might have on this problem.

    chndrcks,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Unable to restart MDM Server

    Hi All,
    I am using MDM SP4. We have a repository Z_ATLAS_MATERIAL_P_TST in SP4. Yesterday I tried to rename this repository but I was not aware that in SP4 we can't rename repository...it's a bug. So, when I renamed this repository to Z_ATLAS_MATERIAL_P_TST1 it gave me error "MDM Repository is invalid" and after 2-3 mins the console window get closed.
    Then I tried several times to mount that MDM server in new console session but everytime console gets terminated.
    But in the background MDM server and SQL server were running.
    Today, when I restarted the MDM server,it ran for 1-2 mins then it got terminated abrubtly.
    Can any one of please suggest what could be the reason and how to resolve it.
    Thanks,
    Varun

    Hi Varun,
    We also faced with such problem. First try to re install MDM Console client, even though if it doesnt start then try to restart your services through services.msc in the RUN. Restart your MDM server, Listeners and Database Services.
    Hope this solves your problem.
    Reward points if helpful.
    Prasad......

  • Delete MDM Server List

    Hi all,
    I am new to MDM. I have added a new MDM Server to the console and i would like to rename it or delete it so that i will not appear in the drop down box when i choose my MDM Server to mount. Is there a way for me to do this?

    Hello:
    I usually delete the following keys under regedit:
    HKEY_LOCAL_MACHINE -> Software -> SAP -> MDM 5.5 -> Common -> Known database servers
    and:
    HKEY_LOCAL_MACHINE -> Software -> SAP -> MDM 5.5 -> Common -> Known servers
    Please observe than modifying your Registry can be dangerous and you must backup first and do it only if you know what you're doing!!
    Greetings
    Alejandro

  • MDM console GUI on Windows is not mounting the MDM server on Solaris

    Hello MDM experts,
    This is kind of administrative problem. I am basis person, installing SAP MDM 5.5 SP04 for the first time.
    I have configured the MDM server (mds) on solaris 10 system. I have also configured MDM import server(mdis) and Syndication serever (mdss) on the same machine. I have installed the database software and configured the empty repository on the same host machine.
    So, Database and all the 3 MDM services (mds,mdis,mdss) are running on Solaris machine.
    After that, I installed "MDM console fat client GUI" component on my desktop and trying to "mount the server" by specifying the "hostname" of the solaris machine where MDM services are running.
    But I am not able to mount it...it says invalid server and does not mount.
    Any idea what might be the problem ????
    I referred following link :
    http://help.sap.com/saphelp_mdmgds55/helpdata/EN/8e/9f9c427055c66ae10000000a155106/frameset.htm
    which says, you should have administrative right on Solaris machine where MDM server is running....but how do I have that being a Windows user ???
    Please advise.

    Hello Mark,
    1. When I right click on the "SAP MDM servers" node in "Console Hierarchy" pane on the left hand side of the Console GUI, and select "Mount MDM Server..." option in context menu, I get a dialog box for entering my MDM server name.
    I typed in the fully qualified host name of my solaris server where "mds-r" is running.
    When I click "OK" button, it adds an entry in "Console Hierarchy" on left hand side, but the entry comes with "Yellow exclamation Mark" sign. Also it says Status "Invalid" when I see the "MDM servers" section on right hand side top.
    When I right click on my newly created entry of MDM server, all the options on context menu like "Mount Repository, Create Repository, Connect to MDM server" look greyed out. Only the option of "Unmount MDM server" seems to be enabled
    2. I tried to do the same thing on 2 different Windows machines and got the same output.
    Regards,
    Bharat

  • Error in starting MDM Server from MDM Console

    Hi,
    I have installed SAP MDM 5.5 SP05 on Windows 2003 Server.
    When i try to start the MDM Server (i.e. MDM Service) from the MDM console it gives me the following error:
    <i>Error Starting apmdmd(MDM Server): The machine 'apmdmd' is not Windows-based. The MDM server cannot be started from this application; please use CLIX on the machine instead. </i>
    But if i start the MDM Service manually and then mount the server, it works fine.
    Kindly help.
    Regards,
    Chintan Sheth

    It sounds to me like a problem potentially with either the permissions of the Windows user or perhaps a software firewall. The Console uses a low-level Windows API function to determine if the target machine on which MDS is installed is Windows-based. This function may be blocked by some OS or firewall-level setting. This may be the case even if you are able to use the same client machine to connect to the target machine via the Service Control Manager and start MDS from there.
    I would like to help with this problem, but I need to know a few more things:
    When the problem occurs, is the Console running on the same Windows machine as MDS?
    You mentioned Windows 2003 Server... when you run the Console on this machine, are you logged in as an Administrator of the machine? And do you still get the error when you attempt to start MDS from within the Console?
    Once MDS is started, and you mount it within the Console, are you having any other problems, such as logging in to a repository, or viewing logs?
    Is there a firewall installed on the machine or machines that the software is installed on? We may have to review the settings of the firewall, or try temporarily disabling it (on both ends, or at least on the machine running MDS), to see if the problem goes away -- then we'll know the problem is with the firewall settings.
    CLIX is a fine workaround if you can use it, but clearly this problem needs to be rectified.
    -cleo

  • Windows 8.1 MDM not responding to more than one SyncML from MDM server per session

    Here is the behaviour i see, which was not expected by Windows 8.1.
    1) Device is enrolled
    2) Client initiates the connection with the MDM server defined in provisioning XML during enrollment.
    3) MDM Server sends some commands as a SyncML response.
    4) Client accepts the commands and sends Status and results.
    5) Again MDM Server sends some commands as a SyncML response.
    6) Client doesn't respond to these commands or not sending any SyncML. Here is the problem that i am referring to.
    We are capturing the traffic in fiddler and found that device is not sending the next request where we are expecting the status for these commands. 
    The same is being repeated in all the requests client initiates. DM Client responds back only for one syncML sent by the MDM server per session.
    Is this the expected behaviour with Windows 8.1? Or are we doing something wrong to see this behaviour?
    Below is the SyncML for which I am expecting the response from the DM client. (Note: I got the response for the same SyncML in the first connection, but not in the second.)
    <SyncML xml:lang="en" xmlns="syncml:SYNCML1.2">
      <SyncHdr>
        <VerDTD>1.2</VerDTD>
        <VerProto>DM/1.2</VerProto>
        <SessionID>1</SessionID>
        <MsgID>1</MsgID>
        <Target>
          <LocURI>0</LocURI>
        </Target>
        <Source>
          <LocURI>https://####</LocURI>
          <LocName>AfariaWinPhoneProvider</LocName>
        </Source>
        <RespURI>https://####</RespURI>
      </SyncHdr>
      <SyncBody>
        <Status>
          <CmdID>1</CmdID>
          <MsgRef>2</MsgRef>
          <CmdRef>0</CmdRef>
          <Cmd>SyncHdr</Cmd>
          <TargetRef>https://####</TargetRef>
          <SourceRef>0</SourceRef>
          <Data>200</Data>
        </Status>
        <Get>
          <CmdID>2</CmdID>
          <Item>
            <Target>
              <LocURI>./cimv2/Win32_ComputerSystemProduct</LocURI>
            </Target>
          </Item>
        </Get>
        <Final />
      </SyncBody>
    </SyncML>

    Hello Sreekanth,
    I am facing similar issue, here is the behaviour description:
    1) Device is enrolled
    2) Client initiates the connection with the MDM server defined in provisioning XML during enrollment.
    3) MDM Server sends some commands as a SyncML response.
     4) Client doesn't respond to these commands or not sending any SyncML. 
    The same is being repeated in all client request. 
    Below is the SyncML
    for which I am expecting the response from the DM client:
    <SyncML xmlns="SYNCML:SYNCML1.2">
        <SyncHdr>
            <VerDTD>1.2</VerDTD>
            <VerProto>DM/1.2</VerProto>
            <SessionID>1</SessionID>
            <MsgID>1</MsgID>
            <Target>
                <LocURI>9302116</LocURI>
            </Target>
            <Source>
                <LocURI>https://#####</LocURI>
            </Source>
        </SyncHdr>
        <SyncBody>
            <Status>
                <CmdID>1</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>0</CmdRef>
                <Cmd>SyncHdr</Cmd>
                <TargetRef>9302116</TargetRef>
                <Data>212</Data>
            </Status>
            <Status>
                <CmdID>2</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>2</CmdRef>
                <Cmd>Alert</Cmd>
                <Data>200</Data>
            </Status>
            <Status>
                <CmdID>3</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>3</CmdRef>
                <Cmd>Replace</Cmd>
                <TargetRef>./devinf12</TargetRef>
                <Data>200</Data>
            </Status>
            <Get>
                <CmdID>75</CmdID>
                <Item>
                    <Target>
                        <LocURI>./DevDetail/SwV</LocURI>
                    </Target>
                </Item>
            </Get>
        </SyncBody>
    </SyncML>
    Here
    we had tried sending 
     <Target>
                <LocURI>0</LocURI>
            </Target>
    But it didn't worked.

  • MDM Console Connectivity to MDM Server

    Hi,
    My scenario is that I have install MDM Server on one machine with Oracle as Database.  Now when I try to connect to connect to that MDM Server using MDM Console from other machine it is not connecting.
    The machine on which Console is installed is already having Oracle Server installed for another aplication.  I did create a Net Alias and I can connect to Oracle Database on MDM Server using SQL plus of the server on which cnsole is installed.
    Someone say that I need to install oracle client on MDM Server side....is it so ?
    Regards
    Vijay

    Hi Vijay,
    Assuming your MDM Server is on a Windows system:
    Does a MDM Console on the very same machine connect to the MDM Server?
    Kind regards,
    Dennis

  • Windows 8.1 MDM not responding to first SyncML from MDM server per session

    Here is the behaviour which I face after enrolling Windows 8.1
    1) Device is enrolled
    2) Client initiates the connection with the MDM server defined in provisioning XML during enrollment.
    3) MDM Server sends some commands as a SyncML response.
     4) Client doesn't respond to these commands or not sending any SyncML. 
    The same is being repeated in all client request. 
    Below is the SyncML
    for which I am expecting the response from the DM client:
    <SyncML xmlns="SYNCML:SYNCML1.2">
        <SyncHdr>
            <VerDTD>1.2</VerDTD>
            <VerProto>DM/1.2</VerProto>
            <SessionID>1</SessionID>
            <MsgID>1</MsgID>
            <Target>
                <LocURI>{DevID}</LocURI>
            </Target>
            <Source>
                <LocURI>https://#####</LocURI>
            </Source>
        </SyncHdr>
        <SyncBody>
            <Status>
                <CmdID>1</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>0</CmdRef>
                <Cmd>SyncHdr</Cmd>
                <TargetRef>{DevID}</TargetRef>
                <Data>212</Data>
            </Status>
            <Status>
                <CmdID>2</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>2</CmdRef>
                <Cmd>Alert</Cmd>
                <Data>200</Data>
            </Status>
            <Status>
                <CmdID>3</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>3</CmdRef>
                <Cmd>Replace</Cmd>
                <TargetRef>./devinf12</TargetRef>
                <Data>200</Data>
            </Status>
            <Get>
                <CmdID>75</CmdID>
                <Item>
                    <Target>
                        <LocURI>./DevDetail/SwV</LocURI>
                    </Target>
                </Item>
            </Get>
        </SyncBody>
    </SyncML>
    Here we had tried sending 
     <Target>
                <LocURI>0</LocURI>
            </Target>
    But it didn't worked. Thanks in advance.

    Thanks Obaid for the information but still my question is not answered. Here are more details about it:
    I completed enrollment for a win8.1 device successfully, and got first SyncML message from device, but in the SyncML message,
    the the url of mdm server was  http://localhost:8000/handler.ashx as you mentioned, while the uri of device was 0,
    actually it should be the device Id. I responded a SyncML message to the device, but got no response from device any more. I’ve checked all registries after enrollment, all registries were well applied. Can give me some hints for such issue.
    Looking forward to your reply. Thanks a lot.
    The first message got from win8.1 device after enrollment is:
    <SyncML xmlns="SYNCML:SYNCML1.2">
        <SyncHdr>
            <VerDTD>1.2</VerDTD>
            <VerProto>DM/1.2</VerProto>
            <SessionID>1</SessionID>
            <MsgID>1</MsgID>
            <Target>
                <LocURI>http://localhost:8000/handler.ashx</LocURI>
            </Target>
            <Source>
                <LocURI>0</LocURI>
            </Source>
        </SyncHdr>
        <SyncBody>
            <Alert>
                <CmdID>2</CmdID>
                <Data>0</Data>
            </Alert>
            <Replace>
                <CmdID>3</CmdID>
                <Item>
                    <Source>
                        <LocURI>./DevInfo/DevId</LocURI>
                    </Source>
                    <Data>16313492</Data>
                </Item>
                <Item>
                    <Source>
                        <LocURI>./DevInfo/Man</LocURI>
                    </Source>
                    <Data>Microsoft Corporation</Data>
                </Item>
                <Item>
                    <Source>
                        <LocURI>./DevInfo/Mod</LocURI>
                    </Source>
                    <Data>Microsoft Windows NT Workstation 6.3 (Tablet Edition)</Data>
                </Item>
                <Item>
                    <Source>
                        <LocURI>./DevInfo/DmV</LocURI>
                    </Source>
                    <Data>1.2</Data>
                </Item>
                <Item>
                    <Source>
                        <LocURI>./DevInfo/Lang</LocURI>
                    </Source>
                    <Data>en-IN</Data>
                </Item>
            </Replace>
            <Final />
        </SyncBody>
    </SyncML>
    This message sent to device for which no response was received:
    <SyncML xmlns="SYNCML:SYNCML1.2">
        <SyncHdr>
            <VerDTD>1.2</VerDTD>
            <VerProto>DM/1.2</VerProto>
            <SessionID>1</SessionID>
            <MsgID>1</MsgID>
            <Target>
                <LocURI>0</LocURI>
            </Target>
            <Source>
                <LocURI>http://localhost:8000/handler.ashx</LocURI>
            </Source>
        </SyncHdr>
        <SyncBody>
            <Status>
                <CmdID>1</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>0</CmdRef>
                <Cmd>SyncHdr</Cmd>
                <TargetRef>0</TargetRef>
                <Data>212</Data>
            </Status>
            <Status>
                <CmdID>2</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>2</CmdRef>
                <Cmd>Alert</Cmd>
                <Data>200</Data>
            </Status>
            <Status>
                <CmdID>3</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>3</CmdRef>
                <Cmd>Replace</Cmd>
                <TargetRef>./devinf12</TargetRef>
                <Data>200</Data>
            </Status>
            <Get>
                <CmdID>75</CmdID>
                <Item>
                    <Target>
                        <LocURI>./DevDetail/SwV</LocURI>
                    </Target>
                </Item>
            </Get>
        </SyncBody>
    </SyncML>

  • When mount MDM server on MDM console...MDM Console hangs.

    Hi,
    when i try to mount MDM server on MDM console, MDM Console hangs and then i have to stop MDM console with task manager.
    For this i have tried with restarting  MDM server - then also issue was not resolved, then i have rebooted the server, then issue resolved.
    But rebooting the server is not permanent solution, this problem occurs everything next 3-4 days.
    Please let me know the cause and it's solution if anyone has faced the similar issue.
    ---------------Server details----------------
    SAP MDM 7.1SPS11
    OS - Suse Linux
    DB - MaxDB
    MDM Console is also SPS11
    Thanks and Regards,
    Murtaza Najmi

    Hi Murtaza,
    This may be due to the memory full issue. It is advisable to allocate appropriate memory in the RAM where server is running. Generally it will be done by the DB team or Linux/unix team. Raise this ticket to your concerned teams.
    Thanks,
    Vinoth

  • DAC Client in windows is not connected to DAC server in Linux

    Hi,
    I am using DAC 11g and server is in linux and client in windows.The status icon is still red
    1)we are unable to connect the client to the server in linux.
    2) we have checked that the DAC server in linux is up by running the command ps -ef | grep "com.siebel.etl.net.QServer".
    3)even we have checked the connectivity with telnet and even the port 3141 is also opened
    4) we have followed all the step suggested in previous thread
    Anybody help me.
    Edited by: 975976 on Apr 26, 2013 2:24 AM
    Edited by: 975976 on Apr 26, 2013 2:24 AM

    My DAc server is running fine.
    In DAC server setup i entered the details.Also DAC DB is running fine.
    Any other solution please.
    Also when i am trying to run ./standaloneServerSetupPrompt.sh i am getting following error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/oracle/Java/jdk1.7.0_21/jre/lib/i386/xawt/libmawt.so: libXrender.so.1: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
    at java.lang.Runtime.load0(Runtime.java:792)
    at java.lang.System.load(System.java:1059)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
    at java.lang.Runtime.loadLibrary0(Runtime.java:845)
    Can you tell me why this error is coming.
    Edited by: 975976 on Apr 26, 2013 4:29 AM
    Edited by: 975976 on Apr 26, 2013 4:48 AM

  • MDM Server Window Service failed after adding server password

    After adding MDM server password, MDM server window service can't start up. We have to use clix command to start the server. Is there anyway to fix window service problem?

    Hi Jean,
    From the version number it sounds like you're using version 5.5 SP4, right? The Console application was significantly changed in SP5 and you would no longer see the locked server icon... If you unmount the server from the Console, and re-mount it, isn't there an option on the context menu for the tree (right-click on the server node) to provide the password? Did you try "Connect to Server" or "Start Server" on this context menu?
    Thanks... I don't know if I can help you with your problem, but I will try!
    -Cleopatra
    Message was edited by: Author - found the option on the context menu to provide the password to the server
            Cleopatra Von Ludwig
    Message was edited by:
            Cleopatra Von Ludwig

  • Need to communicate c server on linux & java client on windows

    Hi!! I am new to socket programing in both C and Java.
    From let I downloaded some client server example for c and java and tried that to link !! (I allways learn this way , and I need to do that little urget )
    though cient server in linux is working perfectly fine and same for java. But problem is when I tried to communicate C server on linux and java client on windows, I end up with getting some junk characters. Though they are connected successfully.
    Here goes code for java client:
    package whatever;
    import java.io.*;
    import java.net.*;
    public class Requester{
         Socket requestSocket;
         ObjectOutputStream out;
         ObjectInputStream in;
         String message;
         Requester(){}
         void run()
              try{
                   //1. creating a socket to connect to the server
                   requestSocket = new Socket("192.168.72.128", 2006);
                   System.out.println("Connected to localhost in port 2004");
                   //2. get Input and Output streams
                   out = new ObjectOutputStream(requestSocket.getOutputStream());
                   out.flush();
                   in = new ObjectInputStream(requestSocket.getInputStream());
                   System.out.println("above do");
                   //3: Communicating with the server
                   do{
                        try{
                             System.out.println("in do");
                             //message = (String)in.readObject();
                             System.out.println("in try");
                             //System.out.println("server>" + message);
                             System.out.println("server>" + "message");
                             sendMessage("Hi my server");
                             message = "bye";
                             sendMessage(message);
                             System.out.println("try completed");
                        catch(Exception e){
                             e.printStackTrace();
                   }while(!message.equals("bye"));
              catch(UnknownHostException unknownHost){
                   System.err.println("You are trying to connect to an unknown host!");
              catch(IOException ioException){
                   ioException.printStackTrace();
              finally{
                   //4: Closing connection
                   try{
                        in.close();
                        out.close();
                        requestSocket.close();
                   catch(IOException ioException){
                        ioException.printStackTrace();
         void sendMessage(String msg)
              try{
                   String stringToConvert= "hello world";
                   byte[] theByteArray = stringToConvert.getBytes();
                      System.out.println(theByteArray.length);
                   out.writeObject(theByteArray);
                   out.flush();
                   System.out.println("client>" + msg);
              catch(IOException ioException){
                   ioException.printStackTrace();
              catch(Exception ex){
                   ex.printStackTrace();
         public static void main(String args[])
              Requester client = new Requester();
              client.run();
    And for C server
    / server
        #include <stdio.h>
            #include <sys/socket.h>
            #include <arpa/inet.h>
            #include <stdlib.h>
            #include <string.h>
            #include <unistd.h>
            #include <netinet/in.h>
            #define MAXPENDING 5    /* Max connection requests */
            #define BUFFSIZE 32
            void Die(char *mess) { perror(mess); exit(1); }
        void HandleClient(int sock) {
                char buffer[BUFFSIZE];
                int received = -1;
                /* Receive message */
                if ((received = recv(sock, buffer, BUFFSIZE, 0)) < 0) {
                    Die("Failed to receive initial bytes from client");
                /* Send bytes and check for more incoming data in loop */
                while (received > 0) {
                /* Send back received data */
                    if (send(sock, buffer, received, 0) != received) {
                        Die("Failed to send bytes to client");
    //            fprintf("%s",buffer);
                fprintf(stdout, "message Recieved: %s\n", buffer);
                    //Die("was not able to echo socket message");               
                /* Check for more data */
                    if ((received = recv(sock, buffer, BUFFSIZE, 0)) < 0) {
                        Die("Failed to receive additional bytes from client");
                close(sock);
        //     A TCP ECHO SERVER
        int main(int argc, char *argv[]) {
                int serversock, clientsock;
                    struct sockaddr_in echoserver, echoclient;
                    if (argc != 2) {
                      fprintf(stderr, "USAGE: echoserver <port>\n");
                    exit(1);
                /* Create the TCP socket */
                    if ((serversock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {
                      Die("Failed to create socket");
                /* Construct the server sockaddr_in structure */
                    memset(&echoserver, 0, sizeof(echoserver));      /* Clear struct */
                    echoserver.sin_family = AF_INET;                  /* Internet/IP */
                    echoserver.sin_addr.s_addr = htonl(INADDR_ANY);  /* Incoming addr */
                    echoserver.sin_port = htons(atoi(argv[1]));      /* server port */
        // A TCP ECHO SERVER ENDS
        // A TCP ECHO SERVER BINDING AND LISTNING
      /* Bind the server socket */
                  if (bind(serversock, (struct sockaddr *) &echoserver, sizeof(echoserver)) < 0) {
                        Die("Failed to bind the server socket");
              /* Listen on the server socket */
                  if (listen(serversock, MAXPENDING) < 0) {
                  Die("Failed to listen on server socket");
        // A TCP ECHO SERVER BINDING AND LISTNING
        // SOCKET FACTORY
    /* Run until cancelled */
                while (1) {
                        unsigned int clientlen = sizeof(echoclient);
                          /* Wait for client connection */
                        if ((clientsock =
                          accept(serversock, (struct sockaddr *) &echoclient, &clientlen)) < 0) {
                            Die("Failed to accept client connection");
                          fprintf(stdout, "Client connected: %s\n", inet_ntoa(echoclient.sin_addr));
                          HandleClient(clientsock);
        // SOCKET FACTORY ENDSI know that it is not C forum but I found no better place to post it
    Thanks

    kajbj wrote:
    ManMohanVyas wrote:
    hii!! just trying to make it a little more explinatory
    1) what I am trying to accomplish by the above code is: - just need to echo/print from the Server , message send by the Client. I know code is not that good but should be able to perform this basic operation( according to me ).You are wrong. I told you that it won't work as long as you are using ObjectOutputStream and ObjectInputStream. You shouldn't write objects.
    2) Message sent by the client is "hello world"(hard coded).No, it's not. You are writing a serialized byte array.
    3) what I am getting at the client end is "*message recieved: ur*" (before that It shows the Ip of client machine)
    It should print "hello world ".See above.
    You are having a problem, and I have told you what the problem is.hey I dont know what went wrong but . I posted all this just next to my first post ...before you posted !!
    And hard coded byte array includes "hello world"...may be I am not able to explain properly.

  • Unable to Start MDM Server through MDM Console

    Dear All,
    We have issue to start MDM through MDM Console , MDM instance is up and running SAP console.
    I have already mounted MDM Server but its show MDM is not started , we are try to start manualy while right clicking.
    It shows below error .
    error starting 'sap1024.sap.xxx.com (MDM Server)'
    Call to SAPWebServiceStartInstance failed with error .A connection attempt failed because the connected party did not properly respond after a period of time , or established connecton failed bacause connected host has failed to respond.
    Kindly suggest to resolve the above issue in MDM.
    thanks

    Closing the thread , same thread post in MDM .

  • How do I remove an unwanted server from the console window?

    Hi all, hope someone can help, as I'm rapidly running out of hair to pull out :-(
    I have one upstream server, set up perfectly on Windows Server 2012, and six downstream servers all running Windows Server 2008 R2 Enterprise. Five of my downstreams are set up and working as expected, but one is behaving a little strangely.
    Here is an example of one of my downstream servers which is configured correctly:
    Just showing the upstream server, as you would expect.
    Now here's my problem downstream server:
    As you can see, not only does it list the upstream server, as expected, it also shows itself as a server. I have tried right-clicking it and choosing 'Remove from Console', but it just comes back after closing and reopening the console.
    Any advice would be greatly appreciated,
    Carl...

    On all downstream servers, except ServerDOWN4 only the ServerUP01 is seen in the WSUS console. On ServerDOWN4, you can see ServerUP01 and ServerDOWN04 in the WSUS console.
    Is this normal?
    No, and the short answer here is that apparently the consoles were configured to connect to the wrong server, and on 'DOWN4', TWO servers were configured in the console.
    But here's a more significant question....
    Why, on WS2012 and WS2008R2 servers are you using the standalone console anyway? If you use
    SERVER MANAGER, which is the expected behavior, the *LOCAL* server will be automatically displayed.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

Maybe you are looking for

  • How do i add existing web addresses to the popup blocker?

    '''different windows/tabs continually open up on different sites especially those from "http://media.fastclick.net". Although it is in a new tab, it is rather annoying. '''

  • Limit Purchase Order Config in SRM 5.0

    We need to configure the Limit PO functionality so we can add Account Assignments that are orders. At this time, we are only able to use Cost Centers on our limit Purchase Orders. Please direct me to the SPRO location where I can change the config fo

  • Having 2 Views in WDA, can I call the non-default View by itself?

    I am developing a web dynpro that has 2 Views in 1 Window. View 1 is a selection screen with 2 parameters - Project Number & Project Manager View 2 is an Adobe Form which displays project info selected from what the user entered on V1. I created a We

  • Can't find data-generator

    Anybody read the document called "Key Data Warehousing Features in Oracle9i"? It mentioned a data-generator for the schema is available for download, however, i couldn't find it at all. Is there anybody knows where it is?

  • What's new in Power Query January 2014 update?

    I just downloaded Power Query Version 2.9.3547.162 (January 2014) and I'm wondering what's new. The What's new in Power BI page does not display any news. Thanks!