Connecting 2 Clients via Server

Hi,
I asked a question about this a while ago, and got some helpful answers, but I just can't seem to get my head 'round the idea. I have 2 clients, and I want them each to connect to the server, and for the server to pair them up, and pass them off to a handler to do all the work.
The connection part of my client code:
public void start()
        try{           
                InetAddress address = InetAddress.getByName("localhost");
                connect = new Socket(address, PORT);
            input = new BufferedReader(new InputStreamReader(connect.getInputStream()));
            output = new PrintWriter(connect.getOutputStream(), true);
            thread = new Thread(this);
            thread.start();           
        catch(IOException exception)
            System.out.println("Error connecting to server " + exception);
    }The server code:
public Server()
        try
            //create server socket to listen for connections
            ServerSocket server = new ServerSocket(8000);
            while(true)
                //create socket when connection made
                Socket connection = server.accept();
                //assuming the 2 client connection goes here
                Handler thread = new Handler(connection);
                thread.start();
        catch(IOException exception)
                System.out.println("Error connecting: " + exception);
    }I have a feeling I'm just being really stupid about this, but I'd be really grateful if anyone could give me a clue, as it's really doing my head in!
C

hi there,
I believe rather than letting the server to connect two clients in two different threads, its beter if the server keeps two seperate connections with each clients and pass the required information about each clients -- viz. IP and Port nos.
Once each client gets their respective IP and Port no. , the clients themselves can connect to each other bypassing the server and helpin the load off the server machine.
Its like peer-2-peer computin.
i hope this idea can help
samabhik

Similar Messages

  • Problem to connect from client to server RMISSLSecuritySocket

    Hi,
    I�m try to connect to my RMISSLSecuritySocket out of my LAN and the debug tell me:
    keyStore is :
    keyStore type is : jks
    keyStore provider is :
    init keystore
    init keymanager of type SunX509
    trustStore is: seguridad\clientstore
    trustStore type is : jks
    trustStore provider is :
    init truststore
    adding as trusted cert:
    Subject: CN=Romenawerson, OU=Romenawerson Software, O=Masser, L=SC, ST=SC, C=ES
    Issuer: CN=Romenawerson, OU=Romenawerson Software, O=Masser, L=SC, ST=SC, C=ES
    Algorithm: RSA; Serial number: 0x443264ec
    Valid from Tue Apr 04 13:22:04 BST 2006 until Mon Jul 03 13:22:04 BST 2006
    trigger seeding of SecureRandom
    done seeding SecureRandom
    %% No cached client session
    *** ClientHello, TLSv1
    RandomCookie: GMT: 1166208304 bytes = { 177, 248, 233, 26, 255, 131, 30, 219, 187, 7, 161, 130, 36, 97, 87, 143, 144, 27, 106, 206, 189, 167, 26, 137, 97, 16, 104, 162 }
    Session ID: {}
    Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
    Compression Methods: { 0 }
    AWT-EventQueue-0, WRITE: TLSv1 Handshake, length = 73
    AWT-EventQueue-0, WRITE: SSLv2 client hello message, length = 98
    AWT-EventQueue-0, READ: TLSv1 Handshake, length = 945
    *** ServerHello, TLSv1
    RandomCookie: GMT: 1166208307 bytes = { 184, 222, 131, 149, 231, 192, 11, 143, 18, 21, 255, 30, 23, 69, 88, 116, 202, 214, 156, 247, 108, 121, 158, 141, 11, 182, 75, 196 }
    Session ID: {70, 131, 237, 51, 103, 184, 128, 17, 11, 250, 79, 30, 226, 89, 202, 255, 40, 244, 207, 103, 23, 232, 181, 12, 213, 90, 153, 213, 5, 179, 105, 119}
    Cipher Suite: SSL_RSA_WITH_RC4_128_MD5
    Compression Method: 0
    %% Created: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
    ** SSL_RSA_WITH_RC4_128_MD5
    *** Certificate chain
    chain [0] = [
    Version: V1
    Subject: CN=Romenawerson, OU=Romenawerson Software, O=Masser, L=SC, ST=SC, C=ES
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: Sun RSA public key, 2048 bits
    modulus: 26218049066688812844166292053322592777371129439466024553015697381624406300839227173808057660437842049778162997716778672465698869907347066124616563594240125762524939915402315386003803148278000690289855047564064085048848218487772248550902777635260652977838418228357272143568678808697631825834935842172373214502488401919079625206784817447169856160975190854447483259794542577274185756524489133463104507701871398035038051874790106390687139882093092278152813019096166210094417604042911501907793329618438553321927409287787349853730049580333692091467723730149335152659294835570337214736792744190512402485625826849470971056221
    public exponent: 65537
    Validity: [From: Tue Apr 04 13:22:04 BST 2006,
                   To: Mon Jul 03 13:22:04 BST 2006]
    Issuer: CN=Romenawerson, OU=Romenawerson Software, O=Masser, L=SC, ST=SC, C=ES
    SerialNumber: [    443264ec]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 99 79 9F 84 5E A9 54 D5 19 D9 B9 2E EC F0 8F 98 .y..^.T.........
    0010: B2 35 DD 26 34 84 37 3C 47 50 2E 2A 05 5C 21 C3 .5.&4.7<GP.*.\!.
    0020: D6 98 24 CB 04 9E CF DC 1E 35 5C 4A 0A 29 EA 4E ..$......5\J.).N
    0030: 21 84 26 9A 6E 47 A2 17 77 A1 60 2A A6 F3 E9 92 !.&.nG..w.`*....
    0040: DD 76 77 D5 20 ED 94 9F AA FD 56 4F 6F 77 75 E3 .vw. .....VOowu.
    0050: EE E4 3B 4F 80 10 1A 68 E3 20 7A D8 27 19 31 54 ..;O...h. z.'.1T
    0060: 9C 90 8C D8 49 EA 48 73 FD F6 C6 6F 71 56 89 2E ....I.Hs...oqV..
    0070: 3D 4F 29 0D ED 50 8E BA FA A6 2B 54 D9 91 1D 98 =O)..P....+T....
    0080: E9 1A E7 17 DB DC 6B 84 D9 A4 32 6B BD 65 F1 F1 ......k...2k.e..
    0090: 24 10 69 B7 43 C7 76 B5 E3 29 4C 41 12 62 E2 DF $.i.C.v..)LA.b..
    00A0: 95 6F 6A FA 52 B8 FB C5 DB 1C B8 54 F3 20 0E B4 .oj.R......T. ..
    00B0: BE B6 B6 36 09 F3 CF 3A 1E E8 68 1D 34 D9 EF 43 ...6...:..h.4..C
    00C0: 3F FC 11 D2 B8 45 A7 1C 72 81 DD 3A 82 FC F7 DC ?....E..r..:....
    00D0: C8 98 69 86 83 09 96 BF D9 1D 94 36 2E 50 7F 48 ..i........6.P.H
    00E0: 05 B2 3B A6 F1 75 34 06 38 14 BE BD 60 3B F7 17 ..;..u4.8...`;..
    00F0: 03 92 B4 38 99 47 5F 96 DC F1 33 22 C5 BE FB 91 ...8.G_...3"....
    Found trusted certificate:
    Version: V1
    Subject: CN=Romenawerson, OU=Romenawerson Software, O=Masser, L=SC, ST=SC, C=ES
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: Sun RSA public key, 2048 bits
    modulus: 26218049066688812844166292053322592777371129439466024553015697381624406300839227173808057660437842049778162997716778672465698869907347066124616563594240125762524939915402315386003803148278000690289855047564064085048848218487772248550902777635260652977838418228357272143568678808697631825834935842172373214502488401919079625206784817447169856160975190854447483259794542577274185756524489133463104507701871398035038051874790106390687139882093092278152813019096166210094417604042911501907793329618438553321927409287787349853730049580333692091467723730149335152659294835570337214736792744190512402485625826849470971056221
    public exponent: 65537
    Validity: [From: Tue Apr 04 13:22:04 BST 2006,
                   To: Mon Jul 03 13:22:04 BST 2006]
    Issuer: CN=Romenawerson, OU=Romenawerson Software, O=Masser, L=SC, ST=SC, C=ES
    SerialNumber: [    443264ec]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 99 79 9F 84 5E A9 54 D5 19 D9 B9 2E EC F0 8F 98 .y..^.T.........
    0010: B2 35 DD 26 34 84 37 3C 47 50 2E 2A 05 5C 21 C3 .5.&4.7<GP.*.\!.
    0020: D6 98 24 CB 04 9E CF DC 1E 35 5C 4A 0A 29 EA 4E ..$......5\J.).N
    0030: 21 84 26 9A 6E 47 A2 17 77 A1 60 2A A6 F3 E9 92 !.&.nG..w.`*....
    0040: DD 76 77 D5 20 ED 94 9F AA FD 56 4F 6F 77 75 E3 .vw. .....VOowu.
    0050: EE E4 3B 4F 80 10 1A 68 E3 20 7A D8 27 19 31 54 ..;O...h. z.'.1T
    0060: 9C 90 8C D8 49 EA 48 73 FD F6 C6 6F 71 56 89 2E ....I.Hs...oqV..
    0070: 3D 4F 29 0D ED 50 8E BA FA A6 2B 54 D9 91 1D 98 =O)..P....+T....
    0080: E9 1A E7 17 DB DC 6B 84 D9 A4 32 6B BD 65 F1 F1 ......k...2k.e..
    0090: 24 10 69 B7 43 C7 76 B5 E3 29 4C 41 12 62 E2 DF $.i.C.v..)LA.b..
    00A0: 95 6F 6A FA 52 B8 FB C5 DB 1C B8 54 F3 20 0E B4 .oj.R......T. ..
    00B0: BE B6 B6 36 09 F3 CF 3A 1E E8 68 1D 34 D9 EF 43 ...6...:..h.4..C
    00C0: 3F FC 11 D2 B8 45 A7 1C 72 81 DD 3A 82 FC F7 DC ?....E..r..:....
    00D0: C8 98 69 86 83 09 96 BF D9 1D 94 36 2E 50 7F 48 ..i........6.P.H
    00E0: 05 B2 3B A6 F1 75 34 06 38 14 BE BD 60 3B F7 17 ..;..u4.8...`;..
    00F0: 03 92 B4 38 99 47 5F 96 DC F1 33 22 C5 BE FB 91 ...8.G_...3"....
    *** ServerHelloDone
    *** ClientKeyExchange, RSA PreMasterSecret, TLSv1
    AWT-EventQueue-0, WRITE: TLSv1 Handshake, length = 262
    SESSION KEYGEN:
    PreMaster Secret:
    0000: 03 01 E3 5F 8B 56 4D 06 C4 F6 12 CD 93 81 AF 2C ..._.VM........,
    0010: 62 26 48 E1 F7 98 41 3E 97 99 40 AD 80 2A 2D C6 b&H...A>..@..*-.
    0020: F7 13 6D 2A 15 EF 4C F9 E3 B4 90 9E 6E 07 51 C5 ..m*..L.....n.Q.
    CONNECTION KEYGEN:
    Client Nonce:
    0000: 46 83 ED 30 B1 F8 E9 1A FF 83 1E DB BB 07 A1 82 F..0............
    0010: 24 61 57 8F 90 1B 6A CE BD A7 1A 89 61 10 68 A2 $aW...j.....a.h.
    Server Nonce:
    0000: 46 83 ED 33 B8 DE 83 95 E7 C0 0B 8F 12 15 FF 1E F..3............
    0010: 17 45 58 74 CA D6 9C F7 6C 79 9E 8D 0B B6 4B C4 .EXt....ly....K.
    Master Secret:
    0000: 91 F9 46 EC DC 49 20 6E 1B 36 43 FD 25 49 FD 03 ..F..I n.6C.%I..
    0010: AC 97 EF 22 8F 8C 16 F3 82 4C 38 BD C1 E6 D5 38 ...".....L8....8
    0020: 11 20 1C D1 41 50 C6 96 96 92 39 0B D8 2C 00 DF . ..AP....9..,..
    Client MAC write Secret:
    0000: 5E 90 BF 8E 39 D1 B8 4C 43 65 32 D4 6E 92 F0 C0 ^...9..LCe2.n...
    Server MAC write Secret:
    0000: 41 EF 1A 63 21 69 D7 C6 82 FA E0 EA CC F2 7F C6 A..c!i..........
    Client write key:
    0000: 16 A2 E1 AD 6C BA 83 E7 DD 22 59 44 21 48 A2 12 ....l...."YD!H..
    Server write key:
    0000: 7B FC 54 77 6F 67 92 99 88 71 6C 34 ED 48 C2 1C ..Twog...ql4.H..
    ... no IV used for this cipher
    AWT-EventQueue-0, WRITE: TLSv1 Change Cipher Spec, length = 1
    *** Finished
    verify_data: { 185, 57, 235, 98, 149, 175, 131, 220, 206, 66, 222, 206 }
    AWT-EventQueue-0, WRITE: TLSv1 Handshake, length = 32
    AWT-EventQueue-0, READ: TLSv1 Change Cipher Spec, length = 1
    AWT-EventQueue-0, READ: TLSv1 Handshake, length = 32
    *** Finished
    verify_data: { 170, 212, 47, 137, 112, 161, 231, 13, 84, 116, 170, 163 }
    %% Cached client session: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
    AWT-EventQueue-0, WRITE: TLSv1 Application Data, length = 23
    AWT-EventQueue-0, setSoTimeout(900000) called
    AWT-EventQueue-0, READ: TLSv1 Application Data, length = 35
    AWT-EventQueue-0, setSoTimeout(0) called
    AWT-EventQueue-0, WRITE: TLSv1 Application Data, length = 35
    AWT-EventQueue-0, WRITE: TLSv1 Application Data, length = 72
    AWT-EventQueue-0, READ: TLSv1 Application Data, length = 322
    28-jun-2007 18:17:57 sun.rmi.transport.WeakRef pin
    M�S FINA: AWT-EventQueue-0: strongRef = sun.rmi.transport.DGCImpl@1551f60
    28-jun-2007 18:17:57 sun.rmi.transport.ObjectTable putTarget
    M�S FINA: AWT-EventQueue-0: add object [0:0:0, 2]
    28-jun-2007 18:17:57 sun.rmi.transport.ConnectionInputStream done
    M�S FINA: AWT-EventQueue-0: send ack
    AWT-EventQueue-0, WRITE: TLSv1 Application Data, length = 17
    AWT-EventQueue-0, READ: TLSv1 Application Data, length = 17
    AWT-EventQueue-0, WRITE: TLSv1 Application Data, length = 31
    The Exception is: Connection refuse to host: 192.168.1.21; java.net.ConnectException: Connection timed out: connect
    I think that the Hadshaked it�s ok, but I don�t know why I can�t connect satisfactorily. In my LAN the aplication is working perfectily. Please help me!!!!!!!! Sorry but my english is not very well.

    Hi,
    After installation of XI , We have to do some post installation activities to configure the XI as an Integration server...
    If you have not done the post installation activities ..try to execute the Template Installer..
    It will do all the post installation activities ...here is the path.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/c25a42793d1653e10000000a155106/frameset.htm
    If this is helpfull for you ....reward points...
    regds,
    vasanth.

  • Send Message Client to Client Via Server

    Hi,
    I am trying to create Messenger similar to msn but very simple.
    I have managed to create some parts of it after nonstop day night reading up on sockets, and threading etc.. so so far i have a Server + ServerThread and Client class, which is capable of:
    * Server that can accept multiple client connections.
    * Each client can send message to the server Only
    Thats all so far but I do intend to
    * Make Client send Client messages via the Server <-- Next Important Step
    * Add and Remove Users (User Lists)
    Lets say I have a Server (S) and Clients (C1) and (C2)
    at the moment both C1 and C2 can connect to S and send messages to it only.
    How can I, or what would I need to do so that I can make C1 and C2 actually send each other messages? I understand I may need the server to somehow get the messages recieved from C1 and C2 and send them to one another?
    Do correct me in my assumptions or methods I am using, as you may know better methods or techniques to use to implement what I need to do.
    Thanks
    QTQ
    P.S If you need anymore information in regards to this or have any questions, please do ask.

    thanks topfoxy for the reply, I've managed to send msgs to everyone and private... but used a different method i think.. basically on each connection it would add the sockets to a vector list adn the same with usernames. and to send to everyone on the server the thread will just loop all the socket vector sending it to each user.. on private it will use the uservector to get the index of the user name and then using that index to get hte socket and hten sending it to that socket only... :)... what do you think? good or bad?

  • Want to connect to client's server with ARD, and run ARD on the server.

    Hi, I have Apple Remote Desktop and use it to monitor, update and service clients servers. I also have client's buy ARD to use internally to access, update and maintain computers on the network.
    When I try to access/sign-in to a server with ARD, when it's running ARD, it will not connect.
    What is the proper way to ARD into a server and still be able to run ARD on the server to connect with and work on other computers on the local network?
    Thanks in advance.

    On the client server install of ARD, open ARD, select preferences, select security tab, and make sure "allow control of this computer when ARD is running" is selected.

  • How can i connect oracle8 client to server in linux?

    Who can give me a sample?
    I mean how to config some .ora file....
    null

    http://lmgtfy.com/?q=apple+id+disabled

  • Error : Connecting to Client

    Hi
      While connecting to client using server and repository am getting an error : " WinSock error on connect ".
    This is happening with particular reporsitory, kindly advise
    1. what will be exact reason  and
    2. how to overcome the same?
    thanks
    Alexander

    Hi Alexander,
    Whenever you get WinSock error, try to unload & unmount the repository, stop the server and start server and then mount & load the repository.
    Whenever the connection to backend database is lost, this error pops up.
    Good Luck.
    Rajani Kumar

  • Windows VNC clients cannot connect to Snow Leopard Server native VNC server

    I am resurfacing the following related comment made in another post that discusses the same issue I am having with VNC on Snow Leopard. This is still an issue and I cannot connect to our Xserve's Snow Leopard Server with a VNC client on Windows.
    I don't want to install another third party VNC server onto our SL Server, and am looking for a VNC client for windows that will connect to our SL Server.
    Does anyone have any solutions?
    == QUOTED TEXT BELOW ==
    Re: Newbie: Connect Windows -> OSX Server
    Posted: Nov 4, 2009 9:26 AM in response to: Antonio Rocco
    I would politely disagree. Yes, definitely, the Mac 'Screen Sharing' app works a treat, and Apple Remote Desktop.app works as well, but I am coming from a Window's PeeCee.
    For me, connecting to my 10.5(.8) Server via tightvnc gives 'Server did not offer supported security type!". Using RealVNC to this machine states "No matching security types Do you wish to reconnect to ... ?" a telnet to this AppleVNCServer service (port 5900), shows RFB 003.889 *, or Remote Frame Buffer Major 3, minor 889.
    Also, connecting to multiple 10.6(.1) Clients with Tightvnc correctly asks for a password but then hangs at "Status: Security type requested". Using RealVNC opens, connects, asks for authentication, and exits. Telneting to this AppleVNCServer service (port 5900), also shows RFB 003.889 *.
    The Current Version of the protocol is supposed to be 3.8, that is Major version 3, minor version 8. Not 80 or 800 but Eight). http://www.realvnc.com/docs/rfbproto.pdf and I believe that tightvnc only supports up to version 3.7.
    On each station I have installed the 'old' OSXVnc.app as a service (to a unique port). OSXVnc utilizes protocol 3.3 and I can control them successfully, but that is of my own doing because of this issue.
    Now JollysFastVNC works a treat to any machine I have EVER tried to connect to. I have not tried COTVNC or any of the others (too slow for me, when they wer e around)
    Also, I just noticed that RealVNC states that their free and personal version will not connect to Mac OSX (x86 and PPC) but the Enterprise one will. I just Dl'ed the Enterprise Viewer and it gave essentially the same thing ('protocol is not valid' message, even after it asks for a password). Anyway, I am not here to hijack this thread, just trying to keep the info flowing and open.
    Maybe I am the only one with these problems but the bottom line is I cannot use Real or Tight, or UltraVNC to administer my server or clients as long as AppleVNCServer gives out the 003.889 protocol version.
    Peter
    * The ProtocolVersion message consists of 12 bytes interpreted as a string of ASCII characters in the format "RFB xxx.yyy\n" where xxx and yyy are the major and
    minor version numbers, padded with zeros.

    Searching on the net brought me to the same solution that Mr. Hoffman found as well, I was a bit skeptical at first but since he recommended it, and all my other attempts failed, it was a last resort and I have some additional notes of my own for a successful solution. Read the two links below first before doing anything, as they contribute to the solution in tandem.
    http://forums.macrumors.com/showpost.php?p=7221295&postcount=20
    http://forums.macrumors.com/showpost.php?p=9081641&postcount=28
    I should probably just create an entirely new post with all of the steps that worked for me, but it's rather straightforward nonetheless.

  • Axis2 and wsdl- Exception thrown when client attempting server connection

    Hi all,
    I am trying at the moment to develop an Axis2 server, and test it with a client.
    The server is to provide a soap wsdl service, returning an object request.
    I have generated server code and client code using axis2's wsdl2java tool, and all seemed fine.
    The server I created using this generated code seems to work, so far as i can tell, as I can connect to it through a browser.
    For example, using the browser I can connect to it via:
    http://localhost:8888/services/PersonInfo
    and it gives me a page showing 'Deployed Services', listing the operations available.
    but the funny thing is here that it seems to auto-direct me to another url: http://localhost:8888/axis2/services/ which I have not specified.
    For the server I am using the axis2 supplied SimpleHTTPServer. Here is the complete code excluding the actual generated code:
    public class EmbeddedAxis2Server {
        public static void main(String[] args) throws Exception {
            ConfigurationContext context = ConfigurationContextFactory.
            createConfigurationContextFromFileSystem(null, null);
            AxisService service =
            AxisService.createService(caps.integration.rhos.dk.schema.astraiaservice._2008._04._15.PersonInfo.class.getName(), context.getAxisConfiguration());
            context.getAxisConfiguration().addService(service);
            SimpleHTTPServer server = new SimpleHTTPServer(context, 8888);
            server.start();
    }I can even call the published operation using the browser, via the url:
    http://localhost:8888/axis2/services/PersonInfo/getPersonInfo
    and pass in arguments using the usual form variables syntax.
    HOWEVER!! My problem is (and maybe it is related to the url redirect strangeness I mentioned above, or maybe not), that my coded client is not able to connect.
    I generated the client stubs also using wsdl2java, and call the functions... but I get this show stopping exception:
    org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) 127.0.0.1/services/PersonInfo
         at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
         at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
         at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
         at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
         at caps.integration.rhos.dk.schema.astraiaservice._2008._04._15.PersonInfoStub.getPersonInfo(PersonInfoStub.java:142)
         at com.astraia.axisclient.Client.getPersonInfo(Client.java:44)
         at com.astraia.axisclient.Client.main(Client.java:23)Here is the client code (excluding generated stub)
        public static void getPersonInfo(){
            try
                 ConfigurationContext context = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
                 PersonInfoStub stub =new PersonInfoStub(context);
                GetPersonInfoIn req =new GetPersonInfoIn();
                req.setCivilRegistrationIdentifier("CIV123");
                req.setHospitalCode("HOS123");
                req.setRequestId("123");
                req.setUserName("sean");
                GetPersonInfoOut res = stub.getPersonInfo(req);
                System.out.println(res.toString());
            } catch(Exception e){     e.printStackTrace();       System.out.println("\n\n\n");      }
        }If anyone has any idea of what this problem is about, I would love to hear about it!
    Kind Regards,
    svaens
    Edited by: svaens on Apr 28, 2008 2:11 AM

    Hi, I have an update!!!
    Another aspect of my problem (which I had forgotten to mention) was a mysterious difference in the original wsdl file, and the one that was generated by my SImpleHTTPServer when my browser contact it, and requested the wsdl. That is, when I use the url in my firefox browser
    [http://localhost:8888/axis2/services/PersonInfo?wsdl|http://localhost:8888/axis2/services/PersonInfo?wsdl]
    the wsdl that was returned to the browser was different in several ways to the original wsdl that I generated my server side java code from using the axis2-1.3 wsdl2java.sh script.
    I had noticed this, and decided to create a client using this new and strangely different wsdl, and see if this provides different results.
    It worked!!! After creating my stub java code with the new wsdl file, and the wsdl2java tool, and modifying my custom java code to match the different stub generated, the client was able to connect to the server, and return me a serialized object.
    Does this give you any clues as to what may be the real problem?
    Differences in the wsdl include:
    1. the targetNamespace attribute listed in the wsdl:definitions tag shows the namespace backwards!!
    2. The new generated wsdl file has two extra element types,
    GetPersonInfo, and GetPersonInfoResponse, + GetPersonInfoIn , GetPersonInfoOut
    while the original only game me GetPersonInfoOut & GetPersonInfoIn.
    The client code I had to change now looks like this:
    try
                ConfigurationContext context = ConfigurationContextFactory.
                createDefaultConfigurationContext();
            PersonInfoStub stub =  new PersonInfoStub(context);
                GetPersonInfo reqs =   new GetPersonInfo();
                GetPersonInfoIn req = new GetPersonInfoIn();
                reqs.setGetPersonInfoIn(req);
                req.setCivilRegistrationIdentifier("CIV123");
                req.setHospitalCode("HOS123");
                req.setRequestId("123");
                req.setUserName("sean");
                GetPersonInfoResponse res = stub.getPersonInfo(reqs);
                GetPersonInfoOut resultObj = res.get_return();
                            OMFactory fac = OMAbstractFactory.getOMFactory();
                            OMElement xml = resultObj.getOMElement(GetPersonInfoResponse.MY_QNAME, fac);
                            XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
                            writeOMElement(xml, writer);
            } catch(Exception e){
                e.printStackTrace();
                System.out.println("\n\n\n");
            }

  • The WSUS administration console was unable to connect to the WSUS Server via the remote API. (Server 2k8)

    I have installed a new server for WSUS on Server 2k8, This is a stand alone server on Internet No client system is connected on this server as I have to copy these updates to my LAN which never connects to internet. (Previously I was using server 2k3. for
    online & server 2008 on my LAN , now I have changed the server for Online)
    Wsus has finished the synchronization & downloaded updates of around 67GB & its downloading more updates. The server shows me some updates are waiting to approved. but when I click the link for those updates I get following error message.
    error code is as follows -
    The WSUS administration console was unable to connect to the WSUS Server via the remote API.
    Verify that the Update Services service, IIS and SQL are running on the server. If the problem persists, try restarting IIS, SQL, and the Update Services Service.
    System.Net.WebException -- The operation has timed out
    Source
    System.Web.Services
    Stack Trace:
       at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
       at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
       at Microsoft.UpdateServices.Internal.DatabaseAccess.ApiRemotingCompressionProxy.GetWebResponse(WebRequest webRequest)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.UpdateServices.Internal.ApiRemoting.ExecuteSPSearchUpdates(String updateScopeXml, String preferredCulture, Int32 publicationState)
       at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.ExecuteSPSearchUpdates(String updateScopeXml, String preferredCulture, ExtendedPublicationState publicationState)
       at Microsoft.UpdateServices.Internal.BaseApi.Update.SearchUpdates(UpdateScope searchScope, ExtendedPublicationState publicationState, UpdateServer updateServer)
       at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.GetUpdates(UpdateScope searchScope)
       at Microsoft.UpdateServices.UI.AdminApiAccess.UpdateManager.GetUpdates(ExtendedUpdateScope filter)
       at Microsoft.UpdateServices.UI.AdminApiAccess.BulkUpdatePropertiesCache.GetAndCacheUpdates(ExtendedUpdateScope updateScope, ComputerTargetScope computerTargetScope)
       at Microsoft.UpdateServices.UI.SnapIn.Pages.UpdatesListPage.GetListRows()
    I Have tried desabling the firewall,disabling the antivirus protection. Tried by changing the default rule Please Help.

    Hi Sagar,
    First, please check if the RAM is exhausted. When there is not enough RAM, this issue may occurs.
    Please try to run iisreset on the WSUS server, then try to reconnect.
    Also, please try to run the server cleanup wizard to remove the unused update.
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • "System cannot connect to the application server" (Admin Client only)

    Hello Experts,
    I have a strange issue: I am getting "system cannot connect to the application server" when I am trying to launch BPC Admin.
    I successfully connect to the same application server with Excel client on the same PC.
    I am able to connect via Admin from another PC.
    The installation in question is a new installation. The only difference between my PC and a troubled one is IE7 vs. IE8 - IE8 is the one giving issues.
    BPC site is in Local Intranet zone. Windows Authentication is enabled. What am I missing? Local Policy? IE8 settings? Folder permissions (I'm local admin on both PCs)?
    It's BPC 7.5 SP05.
    Thanks in advance,
    Akim
    P.S. OS: Windows Server 2003 SP2 32-bit (Citrix box).
    Edited by: Akim Zubarchuk on Mar 30, 2011 12:28 AM

    Hi Akim,
    Check client diagnostic for admin client can provide good information.
    Any way if you are able to connect with excel client not with admin client I will say:
    1. Check the rights of user used to connect with admin console
    2. Check proxy settings
    3. Disable antivorus or firewall into that computer.
    4. Make sure the installation of admin client was correct done.
    In my opinion it is a big probability to be point 3 or 4.
    Regards
    Sorin Radulescu

  • Ubuntu client flakey connection to  windows 7 server

    Hi.
    This is very strange, but:
    1) server is windows server, and I can connect to it via java app from another windows machine
    2) from ubuntu machine running client app, I can occassionally connect to the Windows Server.
    3) ubuntu server: Linux 2.6.24-24-server , running java version "1.6.0_24"
    4) windows server: Windows 2008 Server 64bit running Oracle 11g Release 11.2.0.1.0
    Both machines are on Subnet 10.* network and firewalls are down on subnet.
    I can ping each machine just fine.
    When I attempt to connect from ubuntu machine the connection DOES (always) show up in v$session on server, but client not is returned a connection (Yet occasionally does).
    I tried to turn on TNS tracing on server but couldn't see any tracing being done (tried setting in sqlnet.ora and listener.ora)
    trace_level_server = 10
    trace_file_server = server.trc
    trace_directory_server = <path_to_trace_dir>
    I also tried client side logging with using ojdbc6_g.jar and starting up the java prog like:
    java -Doracle.jdbc.Trace=true -Djava.util.logging.config.file=jdbc.properties
    jdbc.properties :
    .level=SEVERE
    oracle.jdbc.level=FINER
    oracle.jdbc.handlers=java.util.logging.FileHandler
    java.util.logging.FileHandler.level=FINER
    java.util.logging.FileHandler.pattern=jdbc.log
    java.util.logging.FileHandler.count=1
    java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
    But didn't get any tell-tale signs...
    Can anyone give me some suggestions to check on for A) the java program connectivity and/or B) the tracing problem on server?
    Thanks,
    Joel
    Edited by: rhinosi on Oct 26, 2011 8:39 PM

    This forum is dealing with connections from Oracle to foreign database using the gateway.
    For me it looks like you're having a JDBC connection issue which is better handled in this forum:
    https://forums.oracle.com/forums/category.jspa?categoryID=288
    If my understanding is correct, please close this thread and repost it in the JDBC forum.
    Thanks.

  • How to share internet if the server connects to it via VPN?

    Hi, mac brothers! Need your help.
    I have a server with 2 ethernet cards (en0, en1). It connects to internet via VPN on en0. LAN clients connect to the server using en1. I can't share VPN internet connection to LAN %(. (tried to find the answer in the 10.4 server documentation, but there is nothing about it).
    I know how to share internet connection when there is no VPN - direct connection via DSL modem...
    Can you help me?
    PS; 0S X Server 10.4.11

    You need to use NAT and have the firewall running.
    And then you need to use the VPN connection (PPTP?) "interface" (when connected), probably ppp0 - not en0, in your NAT config. This can be achieved by dragging the config (small symbol in lower right corner in NAT config in Server Admin) to the desktop, edit it (look for en0 and change it to ppp0), save it, and then drag it back into the NAT config window and save.
    I think the VPN tunnel must be up before turning on NAT/firewall so if you reboot the server you might need to turn NAT/firewall off -> on to make it work again.
    If the WAN/ppp0 IP is not static (so you can enter it in your server DNS) you probably will have trouble with many of OS X services running in the server.
    Most OS X server installations using an Internet connection with a shifting public IP is better off by putting a NAT router which can do the in initial connection (by DHCP, PPTP, PPPoE, whatever), between it and the Internet.

  • Connect the SAP B1 server to the Remote SAP B1 client

    hi experts..
    i want to know how to connect the SAP B1 server to the Remote SAP B1 client machine.

    Hi Raleigh,
    The reason why it is slow or hanging, is u need to upgrade the RAM in your Server. we have implemented the same concept and the speed is also good.
    But we have done with one Single Server in the Office, which can be accessed both through Local LAN and via internet, for this we had given two IP Address for the Server.
    One will be Public Static IP and the other is Local Static IP.
    Hi raleigh,
    I configured static ip with Nat mode in router.It was connecting from out side and while connecting it was asking Licence server ip,then i have given ip after that it was showing ths error"connection to the Licence server failed (60070-15)".Please help me.

  • Unable to connect to data mining server via data miner

    Hello!
    After installing Critical Patch October 2005 we receive the following error message while trying to connect to the data mining server: "Unable to connect to data mining server".
    Before installing the patch we had no problems connecting via data miner (Windows 2000 Client).
    We are running Oracle DB 10.1.0.3 on SUSE 9 Linux.
    Any help would be appreciated.
    Regards
    Alexander

    Hello Xiafang!
    Thanks for your reply.
    The query results are:
    SQL> conn sys@oraentw as sysdba
    Enter password:
    Connected.
    SQL> select comp_id, version, status from dba_registry;
    COMP_ID VERSION STATUS
    WK 10.1.0.3.0 VALID
    EM 10.1.0.3.0 VALID
    XDB 10.1.0.3.0 VALID
    AMD 10.1.0.3.0 VALID
    CONTEXT 10.1.0.3.0 VALID
    SDO 10.1.0.3.0 VALID
    ORDIM 10.1.0.3.0 VALID
    EXF 10.1.0.3.0 VALID
    OWM 10.1.0.2.0 VALID
    ODM 10.1.0.3.0 VALID
    CATALOG 10.1.0.3.0 VALID
    COMP_ID VERSION STATUS
    CATPROC 10.1.0.3.0 VALID
    JAVAVM 10.1.0.3.0 VALID
    XML 10.1.0.3.0 VALID
    CATJAVA 10.1.0.3.0 VALID
    APS 10.1.0.3.0 VALID
    XOQ 10.1.0.3.0 VALID
    17 rows selected.
    SQL> select parameter, value from v$option where parameter like '%Data Minin%';
    PARAMETER
    VALUE
    Data Mining
    TRUE
    Data Mining Scoring Engine
    FALSE
    What do you suggest to do next?
    Thanks in advance
    Alexander

  • Best way to connect mac clients through Lion Server to AD?

    Ok, so here's what we are trying to set up for our school network. We currently have a 2003 server system hosting our PCs.
    Authentication - through 2003 server AD
    When client logs in:
    Mac Client -------sends info to --------> Lion Server ----passed data through to-----> 2003 Server
    2003 Server -----responds with authentication----> Lion Server ---applies profile management to client------> Mac Client
    My thought is that Lion Server needs to connect to the 2003 server via the active directory setup in Users and Groups, but the clients should be connecting to the Lion server via LDAP3.
    We can authenticate to the AD server directly from the clients or from the server, no issues there. Yet putting the Lion Server in "attached to another server" mode in Server Admin Tools doesn't Kerberize, even after giving proper permissions to the server via AD. I'm assuming that Kerberization needs to happen in order for Lion server to pass ther login data from the mac client to the 2003 server and vice versa, right?
    Also, we would like to have the users' 2003 network user folders on the desktop automatically, or preferrably what they access when they go to Home. I noticed some options in Profile Manager as well as Workgroup Manager to make this happen. I assume that once the data between the 3 is working proerly, this will be close to a no-brainer.
    So, advice is much appreciated here, first time setting up this type of hybrid system. Thanks!

    I appreciate all your help. I really do.
    This is basically what I needed to know - You said,
    "The audio out on a TV will source whatever input is associated with the current screen."
    With my current macmini to TV setup - I have to have a separate audio line (apart from the dvi cable for video ) to the TV. I was not sure if that macmini audio line to the TV would transfer to the receiver. If it did not then I assumed (since the macmini only has one audio out line that I would have to split that audio line - one to the TV and one to the receiver ). That was my thinking anyway, but if whatever is on the screen will transport to the receiver then I should have no problem.
    Thank you again for helping me think through this.
    Pete

Maybe you are looking for