Can an Axis client receive a server request ?

Hi,
I wish my question won't be stupid but I'm a newbie about Web Services.
According to the Axis architecture guide, the classic communication schema between the client and the server is :
Axis Client ----HTTP request----> Server
Axis Client <----HTTP response---- Server
But can I do this ?
Axis Client <----HTTP request---- Server
Axis Client ----HTTP response----> Server
and this ?
Axis Client ----HTTP request----> Server
Axis Client <----HTTP response---- Server
Axis Client <----HTTP request---- Server
Axis Client ----HTTP response----> Server
Thanks for your answers.

At the first time, thanks for your help.
It can be usefull to a remote management server to configure a parameter of a router.
The remote management server get the list of parameters of the router and test if the concerned value is the good one.
Axis Client <----HTTP request---- Server : getParameterValues
Axis Client ----HTTP response----> Server : getParameterValuesResponse
It is not the good value so the server set it.
Axis Client <----HTTP request---- Server : setParameterValues
Axis Client ----HTTP response----> Server : setParameterValuesResponse
Globaly it is the client (the router) which send requests to the server but in this particular case, it is the server.
Did I make a mistake ? What I want to do is it possible ?
Thanks.

Similar Messages

  • TS3274 Get a message on emails "can't send or receive emails; server failed

    Before sending and after receiving an email I get a message "cannot receive email server failed" / I can hit "ok" and the email sends anyway; how can I fix this aggravating message?

    Hello, Gthomp. 
    Thank you for visiting Apple Support Communities.
    There could be a couple causes for this and I will include a couple solutions.  Sometimes the account credentials need to be authenticated and can cause this message.  Try forcing all applications to close and power cycle the device.  Two step verification may be enabled causing this error, try checking if this feature is enabled, disable and test.  The last solutions I could recommend would be in the second article and third article below.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    iOS: Gmail account will not connect to Gmail server
    http://support.apple.com/kb/TS3058
    Cheers,
    Jason H.

  • Exchange 2010, Outlook 2010, some clients receive "server unavailable" when logging into outlook

    We have a single exchange 2010 server running hub, cas, and mailbox as a virtual machine in VM 5. Currently on version 14.3 build 123.4 running on Server 2008 R2.  Clients connecting to this server are all running Outlook 2010 with a mix of OS between
    xp and win 7.   Domain controllers are all 2003 sp2.   We have a multi-campus environment with most users accessing across a WAN connection (mpls and metro-e).  Quota Limits of 1gig imposed on all mailboxes.   We do still
    have a Exchange 2003 server that we are completing the migration of users off of in our environment.  But all mailboxes on exchange 2010 are accessed thru Outlook 2010.  Migration from 2003 to 2010 happens only after Office 2010 is installed. 
    We are a little over 50% migrated - (~750 users, 1100 entities)
    I have some 2010 clients complaining that they receive "the server is unavailable" when launching outlook for the first time in the morning.  A second time it usually opens.  This happens for remote WAN and local LAN users.  Also,
    during the day as outlook is open, when trying to open an email or navigate between folders in the inbox they will also have outlook stop responding as it tries to contact the server.
    Monitoring the server - CPU averages 40-50% thru the day with spikes in the 75-100%.  Usually the processes that spike are Store.exe or msftefd.exe. 
    I have verified that IPV6 is disabled on the exchange server - and it doesn't exist on the 2003 DC's.  Searching for answers keeps turning up results for OOF or Outlook 2003 RPC.  Neither are the case here. 
    Would we benefit from adding a 2nd server into our environment?  If so - hub? Cas? which would be better to offload off the primary? 
    or is there a better way to handle this issue?

    Hi,
    According to your description, the issue happens on every morning. Thus, it’s mostly likely caused by that there are too many sessions bringing the performance issue.
    To confirm it, we can use performance monitor to check the following counters when Outlook works slowly:
     RPC request, RPC average latency and RPC operation/sec
    http://technet.microsoft.com/en-us/library/dd335215(v=exchg.141).aspx
    If you have any question, please feel free to let me know.
    thanks,
    Angela Shi
    TechNet Community Support

  • The WinRM client received an HTTP server error status (500)

    Hi All,
    I have installed the Exchange 2010 Management Tools and a few roles on our DC (Windows Server 2008 R2) but i cannot even connect to it to configure anything.
    If i use the management tools GUI i get an error message saying:
    "Connecting to remote server failied with the following error message: The WinRM client received an HTTP server error status (500), but the remove service did not include any other informaition about the cause of the failure. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError $true'."
    Using the Exchange Management Shell is get a similar error:
    "Connecting to remote server failied with the following error message: The WinRM client received an HTTP server error status (500), but the remove service did not include any other informaition about the cause of the failure. For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException
    + FullyQualifiedErrorId: PSSessionOpenFailed"
    This comes up 3 times and then said it failed to connect and to enter the Server FQDN i want to connect to.
    I have seen other posts where they have said to disable anonymous access for PowerShell in IIS which i have done and to also run the set-user yourusername -remotepowershellenabled:$true which i cannot run because i cannot even connect into it via PowerShell.
    Tried to see if there was a way to reinstall the management tools because i have a feeling they didnt install properly but cant find a way to do that.
    Tried to uninstall everything but i cannot because it says there are already mailboxes created (presume some default ones) but i cannot connect to remove them to uninstall.
    I seem to have reached a wall and cannot see how to proceed.
    Please help. Thanks.

    Have you tried loading EMS via Admin Tools > Windows Powershell Modules? Amazingly, that will probably work fine for you.
    Assuming that loads, or that you can run EMS on another machine:
    Check Powershell directory in IIS on the problem server. Make sure SSL is not required. Allow only Anonymous access - no basic/IWA auth etc.
    If you can get into Windows Powershell Modules, run the set-user command suggested above from there.
    Remove-powershellvirtualdirectory, and then New-powershellvirtualdirectory (either remotely or using Windows Powershell Modules.
    Re-check SSL/authentication once this is done.
    -Max
    Hi Max,
    Tried loading EMS via Admin Tools > Windows Powershell Modules but didnt work. Got the following error:
    Import-Module : There were errors in loading the format data file:
    Microsoft.Exchange.Management.PowerShell.Setup, C:\Program Files\Microsoft\Exchange Server\V14\bin\Exchange.format.ps1x
    ml : File skipped because it was already present from "Microsoft.Exchange.Management.PowerShell.E2010".
    At line:24 char:34
    +                     Import-Module <<<<  $_.Name -ErrorAction SilentlyContinue
        + CategoryInfo          : InvalidOperation: (:) [Import-Module], RuntimeException
        + FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Commands.ImportModuleCommand
    I think it is a problem with the PowerShell IIS VirtualDirectory because when i browse any other virtual directory i get a response of some sort but when i browse the PowerShell virtual directory i get the same 500 error message.
    This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.
    Now i think i have made things worse. I was looking at the remove and new point you made an accidently deleted the whole PowerShell virtual directory in IIS using the IIS GUI. I didnt use the Remove-powershellvirtualdirectory command. Now i dont know how to get it back :(
    When i try to run New-powershellvirtualdirectory and specify to call it PowerShell it says it is already
    New-PowerShellVirtualDirectory : The virtual directory 'PowerShell' already exists under 'DC01.mainserver/Default Web S
    ite'.
    Parameter name: VirtualDirectoryName
    At line:1 char:31
    + New-PowerShellVirtualDirectory <<<<
        + CategoryInfo          : InvalidArgument: (DC01\PowerShell (Default Web Site):ADObjectId) [New-PowerShellVirtualD
       irectory], ArgumentException
        + FullyQualifiedErrorId : 7833EE63,Microsoft.Exchange.Management.SystemConfigurationTasks.NewPowerShellVirtualDire
       ctory
    I have tried to use the remove command but it doesnt find it no matter what i put in the identify parameter. It should be "Default Web Site" right?
    Anyways, i have created a new PowerShell virtual directory called ExchPowerShell (still would like to find a way have it called PowerShell) and removed SSL and enabled only Anonymous access. Now get a different error message:
    VERBOSE: Connecting to DC01.mainserver
    [dc01.mainserver] Connecting to remote server failed with the following error message : The WinRM client sent a request
     to an HTTP server and got a response saying the requested HTTP URL was not available. This is usually returned by a HT
    TP server that does not support the WS-Management protocol. For more information, see the about_Remote_Troubleshooting
    Help topic.
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
       eption
        + FullyQualifiedErrorId : PSSessionOpenFailed
    Did a search and i think this is because i now had a different PowerShell virtual directory so if i try to connect and specify the new virtual directory name i get the same error i was getting.
    Failed to connect to any Exchange Server in the current site.
    Please enter the Server FQDN where you want to connect: DC01.mainserver/ExchPowerShell
    VERBOSE: Connecting to DC01.mainserver/ExchPowerShell
    [dc01.mainserver] Connecting to remote server failed with the following error message : The WinRM client received an HT
    TP server error status (500), but the remote service did not include any other information about the cause of the failu
    re. For more information, see the about_Remote_Troubleshooting Help topic.
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
       eption
        + FullyQualifiedErrorId : PSSessionOpenFailed
    Thank for all you help so far.

  • LabVIEW DSC 2011 / OPC Client IO Server / Can I write to the OPC Server using OPC Groups?

    Hi
    I am using LabVIEW DSC module as a OPC client. My Shared Variables are binded to automation system OPC Server via "OPC Client IO Server".
    On the OPC Server side it seems that the every write commands comes like one item at time, not like grouped.
    Now I have tested this with the NI OPC Server as server and KepServer and LabVIEW DSC IO Server as OPC Clients.
    When I use the NI OPC Server : OPC Diagnostics there are different events messages when the update request comes from KepServer or LabVIEW DSC.
    There are log files on attachements for both write events.
    Attachments:
    Data from the KepServer.txt ‏6 KB
    Data from the LabVIEW DSC OPC Client.txt ‏18 KB

    Hello Pentsi,
    I have received confirmation (from the PSE in the US) that DSC doesn't support group writes
    There however work-arounds that might provide a solution:
    - The first solution I had in mind was like this. Update the 50 OPC items as fast as possible.
    Then use a 51st item as synchronization OPC item to check/indicate if new data has arrived/has been set/is available.
    So LabVIEW sets 50 OPC values as fast as possible. The 51st value becomes goes from false to true when the first 50 values are written.
    When this (51st) value is true on the OPC server you can read out the first 50 values (from the non-LabVIEW side). When you've read out these values, then you can set the 51st value back to false (from the non-LabVIEW side).
    In the meanwhile at the LabVIEW side you wait until the 51st value goes back from true to false.
    When it becomes false, then you write again those 50 values and afterwards set the 51st synchronization value from false to true.
    And this keeps on going...
    Note: Keep in mind that you only have to monitor one event at the side of the Automation System OPC Server in this case (the 51st) and based on an event occuring over there you can just do a group read of the 50 others. Also keep in mind that the maximum rate (6500 updates per second) from inside LabVIEW with the DSC Module OPC client I/O server was also mentioned in this document (http://digital.ni.com/public.nsf/allkb/63C043359F1​E12538625726E005BCD0C?OpenDocument).
    Could this be a possible solution for your problem?
    If you're using one of the OPC servers in this list (http://zone.ni.com/devzone/cda/tut/p/id/6417#toc19), then you can also use NI OPC Servers to update tags instead, which supports a faster update rate.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Async tcp client and server. How can I determine that the client or the server is no longer available?

    Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
    I thought I will get an exception if the client or the server is not available but this is not happening.
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    How can I determine that the client or the server is no longer available?
    Server
    public class Server
    private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
    private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
    private TcpListener tcpListener;
    private bool isStarted;
    public event Action<string> NewMessage;
    public async Task Start(int port)
    this.tcpListener = TcpListener.Create(port);
    this.tcpListener.Start();
    this.isStarted = true;
    while (this.isStarted)
    var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
    var cts = new CancellationTokenSource();
    this.cancellationTokens.Add(cts);
    await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
    public void Stop()
    this.isStarted = false;
    foreach (var cancellationTokenSource in this.cancellationTokens)
    cancellationTokenSource.Cancel();
    foreach (var tcpClient in this.clients.Values)
    tcpClient.GetStream().Close();
    tcpClient.Close();
    this.clients.Clear();
    public async Task SendMessage(string message, IPEndPoint endPoint)
    try
    var tcpClient = this.clients[endPoint];
    await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
    try
    var stream = tcpClient.GetStream();
    this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
    while (!cancellationToken.IsCancellationRequested)
    var data = await this.Receive(stream);
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(NetworkStream stream, byte[] buf)
    await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive(NetworkStream stream)
    var lengthBytes = new byte[4];
    await stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await stream.ReadAsync(buf, 0, buf.Length);
    return buf;
    Client
    public class Client
    private TcpClient tcpClient;
    private NetworkStream stream;
    public event Action<string> NewMessage;
    public async void Connect(string host, int port)
    try
    this.tcpClient = new TcpClient();
    await this.tcpClient.ConnectAsync(host, port);
    this.stream = this.tcpClient.GetStream();
    this.Process();
    catch (Exception exception)
    public void Disconnect()
    try
    this.stream.Close();
    this.tcpClient.Close();
    catch (Exception exception)
    public async void SendMessage(string message)
    try
    await this.Send(Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(byte[] buf)
    await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await this.stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive()
    var lengthBytes = new byte[4];
    await this.stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await this.stream.ReadAsync(buf, 0, buf.Length);
    return buf;

    Hi,
    Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
    According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    Console.WriteLine(exception.Message);
    Unable to read data from the transport connection: An existing   connection was forcibly closed by the remote host.
    By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
    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.

  • When I receive an email request for a meeting, when I open it I get an error message asking if I want to revert to server, try again or ignore. If I choice revert to server it delete the event, if I choice ignore it accepts but won't sync with my other de

    When I receive an email request for a meeting, when I open it I get an error message asking if I want to revert to server, try again or ignore. If I choice revert to server it deletes the event, if I choice ignore it accepts it but won't sync with my other devices.

    Interesting suggestion, but it's not clear to me how I would do that if I'm not using an "(at) icloud.com" email address/account. I am having the same problem with changed invitations that come from an organizer who is using Google Apps. My email account is hosted at my ISP - it's not obvious to me how I can use iCloud to access that email account (and therefore the changed invitation). Suggestions?

  • ?? can not create an instance of org.apache.axis.client.Service

    hi,
    firstly, i should introduce what i am doing now.
    I want to write a Jeanbean, which can invoke 2 web services.
    I found in tomcat, when I submitted the parameters from a web page form, there was Internal Server Error.
    The problem is I can not created an instance of org.apache.axis.client.Service, or an instance of org.apache.axis.client.AxisClient.
    But very stange, I tried to create an instance of org.apache.axis.client.Transport, which should exist in the same package with Service and AxisClien, there was no exceptions.
    can anyone give me some hints?

    Is it a "class not found" error? Have you tried viewing the jar file that you think org.apache.axis.client.Service is in to be sure that it's really in there?
    jar tvf <filename>

  • Handle Received data of Multiple TCP clients on TCP Server by displaying them into Datagrid

    Hello All,
    I have developed a C# based TCP server GUI application which is accepting the data from multiple TCP clients on TCP server.
    The data i am receiving from TCP clients is a 32 bit data. In my application multiple TCP client data goes like this:
    00012331100025123000124510321562
    01112563110002512456012451032125 and so on...
    Now i want those data of the TCP clients to be parsed into 4 bits first and display it in 8 columns (32/4=8) of (say) datagrid as each 4 bit represents some characteristics of the TCP client. The same thing
    should work for next TCP client on second row of datagrid.            
    Can you give me some suggestion or an example how to go about this? Any help would be appreciated.
     Thank you in advance.
    Here is my code for receiving data from multiple TCP clients.
    void m_Terminal_MessageRecived(Socket socket, byte[] buffer)
    string message = ConvertBytesToString(buffer, buffer.Length);
    PublishMessage(listMessages, string.Format("Sockets: {0}", message));
    // Send Echo
    // m_ServerTerminal.DistributeMessage(buffer);
    private string ConvertBytesToString(byte[] bytes, int iRx)
    char[] chars = new char[iRx + 1];
    System.Text.Decoder d = System.Text.Encoding.UTF8.GetDecoder();
    d.GetChars(bytes, 0, iRx, chars, 0);
    string szData = new string(chars);
    return szData;

    Now i want those data of the TCP clients to be parsed into 4 bits first and display it in 8 columns (32/4=8) of (say) datagrid as each 4 bit represents some characteristics of the TCP client. The same thing
    should work for next TCP client on second row of datagrid
    If mean it's a Windows Forms application and you want to display those bits in a DataGridView control, then please see these threads:
    Add row to datagridview
    Programmatically add new row to DataGridView
    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.

  • Windows Server 2008 Server Manager - The WinRM Client Cannot Process the Request.

    Hello,
    I have recently purchased a Dedicated Server, and I have installed Windows Server 2008 R2. I want to use Server Manager because I don't really have that much experience with command line commands, so I wanted to use server manager, I can remotely connect
    to my server but when I use Server Manager I get the error "The WinRM Client Cannot Process the Request, if the authentication scheme is different from Kerberos..." I haven't set up a domain between my PC and the Dedi, as I do not know how/or know
    if this is applicable in this situation.
    Thanks for your time!
    Bill Gates Mate

    Hi,
    If you are using the non-domain management method, please refer the following article to add the trust host.
    The related article:
    Remoting Week: Non-Domain Remoting
    http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/29/remoting-week-non-domain-remoting.aspx
    More third party article:
    The WinRM client cannot process the request. If the authentication scheme is different
    http://technico.qnownow.com/the-winrm-client-cannot-process-the-request-if-the-authentication-scheme-is-different/
    I’m glad to be of help to you!
    *** This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites;
    therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure
    that you completely understand the risk before retrieving any software from the Internet. ***
    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.

  • Socket Question: Client not receiving the server messages...

    I have a client and server where in the client sends the server a file name to look for. The server looks for that file and checks for its existence and reads the file line by line displays it and then sends it to client. The client should recieve the contents send by the server and display it line by line. Here is what I have done
    Server
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import javax.swing.*;
    public class Server extends JFrame
         public static void main( String args[] )
    //Pass the port no as an argument
    Server s = new Server(Integer.parseInt(args[0]));
    s.runServer();
         private ServerSocket ss;
         private Socket Connection;
         private BufferedReader input;
         private BufferedWriter output;
         private PrintWriter poutput;
         private int port;
         private int bufLength;
         private JTextArea display;
         public Server(int port)
              super( "Socket Server" );
              display = new JTextArea();
              getContentPane().add( display, BorderLayout.CENTER );
              setSize( 400, 300 );
              setVisible( true );
    // Construct of a socket
              try
                   ss = new ServerSocket(port);
              catch( SocketException se )
                   se.printStackTrace();
                   System.exit( 1 );
              catch( IOException io )
                   io.printStackTrace();
         public void runServer()
              String fileName = null;
              try
                   Connection = ss.accept();
                   input = new BufferedReader(new InputStreamReader(Connection.getInputStream()));
                   OutputStreamWriter out = new OutputStreamWriter(Connection.getOutputStream());
                   boolean done = false;
                   while(!done)
                        String lline = input.readLine();
                        if (lline != null)
                             done = true;
                             display.append( "\nThe server has read the file name:" + lline);
                             fileName = lline.trim();
                   input.close();
                   File fileLoc = new File(fileName);
                   if (fileLoc.exists())
                        input = new BufferedReader(new FileReader(fileLoc));
                        boolean eof = false;
                        while (!eof)
                             String line = input.readLine();
                             if (line == null)
                                  eof = true;
                             else
                                  display.append( "\nThe server has read the line:" + line);
                                  out.write(line);
                             Connection.close();
                   else
                        String message = "The file specified does not exist on this server. Recheck your request";
                        poutput.println(message);
                   out.flush();
              catch (Exception e)
                   System.out.println(e);
    Client
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Client extends JFrame implements ActionListener
    private JTextField enter;
    private JTextArea display;
    private BufferedReader bufferInput;
    private BufferedWriter bufferOutput;
    private Socket connection;
    private JPanel p;
    private JLabel label;
    private PrintWriter out;
    private int serverPort;
    private int bufLength;
    public Client(int serverPort)
    super( "Client Socket" );
    label = new JLabel("Enter file name to retrieve:");
    enter = new JTextField();
    enter.addActionListener( this );
    getContentPane().add( enter, BorderLayout.NORTH );
    display = new JTextArea();
    getContentPane().add( display, BorderLayout.CENTER );
    setSize( 400, 300 );
    setVisible( true );
         String serverHost = "spentapa-nt";
    try
    connection = new Socket(serverHost, serverPort);
    //Input stream
    bufferInput = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    //Output Stream
         out = new PrintWriter(connection.getOutputStream(),true);
    catch( SocketException se )
    se.getMessage();
    se.printStackTrace();
    System.exit( 1 );
    catch( IOException io )
              io.printStackTrace();
    public void actionPerformed( ActionEvent e )
         String fileName = null;
    try
              Object o = e.getSource();
              if(o==enter)
                   fileName = enter.getText();
                   System.out.println("The file entered is :"+ fileName);
              out.println(fileName);
    display.append( "\nThe File is:" + "\n" );
    //sends the text file to the server
    //receives the contents of the text file from the server
    boolean eof = false;
    boolean eof = false;
         while (eof)
              String line = bufferInput.readLine();
              if (line == null)
                   eof = true;
              else
                   display.append( "\n" + line);
              System.out.println(line);
         out.flush();
    catch ( Exception ioe )
    display.append(ioe.getMessage() + "\n" );
    ioe.printStackTrace();
    public static void main( String args[] )
    //Pass the Host Name and Port no. as arguments
    Client c = new Client(Integer.parseInt(args[0]));

    For starters, change while(eof) to while(!eof)

  • Client Upgraded from Tiger to Leopard Can No Longer Connect to Tiger Server

    I just finished upgrading a G5 2GHz DP Powermac from Tiger to Leopard. This was an Archive and Install upgrade with importing the old settings. After verifying the account migration, including .Mac connectivity, and fixing all 3rd party software compatibilities/upgrades, I tried to connect to our Tiger 4.11 server by clicking on the server's Icon in the Shared section of the Finder Sidebar. The finder then switches to browse the the server for shares: "Connecting..." is displayed under the tool bar, with a "Share Screen..." and "Connect As..." buttons to the right.
    At this point the "Connecting..." remains displayed with the spinning circle in the bottom right of the Finder window.... spinning. This situation continues for several minutes until is seems the system gives up.
    If I click on the Path button on the Tool Bar, and go up to the Shared level, ALL the Shares on the Network are displayed, including all the Tiger Client machine shares. I can click on the triangle beside the Tiger Client's icon, and all the drives and home directories on the Mac are listed. All the client shares can be accessed without any issues. NOTE: There are no other Leopard clients on the LAN.
    Prior to the Leopard upgrade, this client could connect to the Tiger server as well. All the other clients on the LAN can access the Tiger server also.
    On the Leopard client I have tried clicking and the "Connect As..." button and using the menu "Connect to Server" and specifying the server's IP, and I get the same "Connecting..." message with a "non-connecting" result.
    I can only assume that somehow the Account Name and password are not being passed correctly. But, using "Connect As..." should resolve that. However, "Connect As..." does not give me a user/password window!
    If I check the AFP Access log on the Server, the only messages displayed are "Mounted Volume..." No messages in the error log, and no messages in the "Connections" section.
    Can anyone help me figure out why the Leopard client can not connect to the Tiger Server?
    My apologies if the description of my problem is a bit disjointed. I have been thrown into server admin and am learning "Trial by Fire".
    Any help or suggestions on how to resolve this issue will be greatly appreciated.
    Thanks
    Gary
    Message was edited by: Gary Sumlak

    OK. A quick update.
    After waiting for about 10 minutes for the rotating circle in the bottom right corner to stop, I was able to click on the "Connect As..." button. It took another 10 minutes, but the Connect As window eventual popped up. I entered the Userid and Password (saving to Keychain) and was able to see all the sharepoints on the the server. I browsed all the connected drives and folders without issue.
    I then disconnected from the server. Reviewing the AFP logs on the server shows messages for the connection Login and Logout.
    I then tried to reconnect to the server, and again another 10 minutes wait, although this time the Leopard client eventually connected automatically with the proper User, as per the AFP logs confirms.
    Although, the client can now connect to the server, for it to take 10 minutes will be unacceptable to management, not to mention the end user. Tiger clients can connect in a couple seconds!
    Is there a way to reduce the Leopard login time to, say, a couple seconds, like it does with the Tiger clients?
    Again, any help or suggestions would be greatly appreciated.
    Thanks
    Gary

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database.
    if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
    how can i solve it without upload the file to the server first, then load it into database??
    try
    ResultSet rset = null;
    PreparedStatement pstmt =
    conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
    pstmt.setInt (1, docId);
    pstmt.execute ();
    // Open the destination blob:
    pstmt.setInt (1, docId);
    rset = pstmt.executeQuery (
    "SELECT content FROM docs WHERE id = ? FOR UPDATE");
    BLOB dest_lob = null;
    if (rset.next()) {
    dest_lob = ((OracleResultSet)rset).getBLOB (1);
    // Declare a file handler for the input file
    File binaryFile = new File (fileName);
    FileInputStream istream = new FileInputStream (binaryFile);
    // Create an OutputStram object to write the BLOB as a stream
    OutputStream ostream = dest_lob.getBinaryOutputStream();
    // Create a tempory buffer
    byte[] buffer = new byte[1024];
    int length = 0;
    // Use the read() method to read the file to the byte
    // array buffer, then use the write() method to write it to
    // the BLOB.
    while ((length = istream.read(buffer)) != -1)
    ostream.write(buffer, 0, length);
    pstmt.close();
    // Close all streams and file handles:
    istream.close();
    ostream.flush();
    ostream.close();
    //dest_lob.close();
    // Commit the transaction:
    conn.commit();
    conn.close();
    } catch (SQLException e) {

    Hi,
    Without some more details of the configuration, its difficult to know
    what's happening here. For example, what do you mean by client side
    and server side, and where are you running the upload Java application?
    If you always run the application on the database server system, but can't
    open the file on a different machine, then it sounds like a file protection
    problem that isn't really connected with the database at all. That is to
    say, if the new FileInputStream (binaryFile) statement fails, then its not
    really a database problem, but a file protection issue. On the other hand,
    I can't explain what's happening if you run the program on the same machine
    as the document file (client machine), but you can't write the data to the
    server, assuming the JDBC connection string is set correctly to connect to
    the appropriate database server.
    If you can provide some more information, we'll try to help.
    Simon
    null

  • Can't join clients to domain in Server 2012 R2 Datacenter

    I have done the searching.  I have installed 2012 Datacenter 64bit.  No problem.  I installed the Ad Ds role and elevated it to a domain controller.  I installed DHCP and DNS roles.  I now want to join a client computer to this new
    domain in the server.  (it's the only domain).  However, nothing I try works.  I get the message:
    "An Active Directory Domain Controller (AD DC) for the domain "DGR.MINE" could not be contacted."
    Ensure that the domain name is typed correctly.
    If the name is correct, click Details for troubleshooting information"
    Details:
    The error was:  "This operation returned because th teimout period expired."  (error code 0x000005B4 ERROR_TIMEOUT)
    The DNS servers used by this computer for name resolution are not responding.  This computer is configured to use DNS servers with the following IP addresses;  192.168.1.200
    Verify that this computer is connected to the network, that these are the correct DNS server IP addresses, and that at least one of the DNS servers is running.
    In my 2012 Server the DNS address is set to 192.168.1.200
    In my client computer the DNS address is set to 192.168.1.200
    The server and the client are both connected to a simple switch, so I'm using straight through Ethernet cables.  I've tried crossover for client to server connections also, but no luck there either.
    This should be a simple process.  Can someone with patience give me a step-by-step on setting my server to a domain controller, DNS server, assigning the DNS address, and what else I need to do to allow a client to connect?  Then can I get the
    same wonderful help in connecting the client to the server?  I wouldn't ask for such detail, but I'm needing to check to see where I messed up, if indeed I can find where.
    Thanks very much.

    Make sure that the machine you are trying to join to your new domain has access to the domain (can ping the IP address of the domain controller) and has set itself to point to the IP address of the domain controller
    as its DNS server.
    Hi, Tim
    I can ping my domain controller, but not quite sure about how to set itself to point to the IP address of the domain controller as its DNS server. where do I do it? Thanks in advance.
    my sql keep dropping out the domain for some reason, I cant see any domain user account and the location is not entire directory anymore on my sql server even the domain name appears there. so I decide to take it off domain officially and rejoin later, but
    failed to rejoin and gives me an error msg just like that.
    Regards
    Linda

  • Using osx 10.7.5 can send but not receive emails. Mail server support rep tried everything

    Using iMac with OSX 10.7.5. Can send but not receive emails. No problem with internet account. Server rep tried everything and suggested perhaps a corrupted file in the op syst. Any ideas?

    You may have a corrupt preference. Mail - Preferences - Accounts - click the offending account and re-enter all prefereneces. Also you can use Apple's OS X Mail: Troubleshooting sending and receiving email messages located at:
    http://support.apple.com/kb/ts3276

Maybe you are looking for

  • Unable to copy music from Mac to Windows PC using Home Sharing on iTunes 12

    Hi all, I use both a Macbook Pro and a Windows PC.  I am trying to copy music from my Macbook Pro onto my PC within iTunes 12 using HomeSharing but seem to be unable to do this. When I connect to the Mac library on the PC, I can play the tracks witho

  • HP Envy dv7 - No Audio When Connected to TV by HDMI Cable; Windows 8.1

    I know this is one that has been floating around the forums for a while but I have not been able to find anything that works in my situation. When I connect my laptop to my TV (Panasonic Viera Plasma) via an HDMI cable, I can get the video to show on

  • Cannot change Print Presets in iPhoto 08

    Although I have saved multiple printing presets for other applications, in iPhoto 08 only "Standard" is available. This holds for all user accounts. Any way to correct this? The problem is that "standard" prints on standard paper for my ink jet. Phot

  • I had to reset phone I lost songs I purchased can I get them back

    I purchased songs from itunes . I had to reset phone and the song I purchased are gone can I get them back please with out paying again

  • Cisco ISE Root CA

    Hi all, I have a query on onboarding iOS, Android and windows devices through Cisco ISE. I understood that we are going to provision and onboard above devices issuing certificates. Do ISE has Certificate authority where it can generate its own Root C