TcpIP connection to remote server not closing after each call.

using urlconnection to connect to a remote server does not close tcp connection after use. Any ideas on how to force this closed.
This inturn causes subsequent calls to the remoteserver to use the existing tcp connections, slowing down the over <br>all connections because the remote server is not able to handle multiple requests using the same connection.
We are using a unix box running solaris 8.0 I believe and the <br>connection to the remote server is done over a dedicated line.
Here is what the code looks like. I believe I am doing all that I can to force the stream objects closed so that there is no lingering connections. Is there anything that I can do from a code perspective to assure that after each transaction all stream objects are dropped and closed so that the tcp connections close. Also, could there be other reasons why these connections stay open.
pls help.
try {
// Read the Login URL net connection output
URLConnection conn = new URL( url ).openConnection();
boolean inputOK = true;
if ( testInput ) {
     InputStream inConn = conn.getInputStream();
     InputStreamReader inStream = new InputStreamReader( inConn );
// read input stream for OK/FAILED
BufferedReader in = new BufferedReader( inStream );
String str = null;
Debug.println( this, "Response read" );
while ( ( str = in.readLine() ) != null ) {
System.err.println( str );
if ( ( str.indexOf( SUCCESS ) >= 0 ) || ( str.indexOf( LC_SUCCESS ) >= 0 ) ) {
Debug.println( this, "Found success " + str );
inputOK = true;
break;
else if ( ( str.indexOf( FAILURE ) >= 0 ) || ( str.indexOf( LC_FAILURE ) >= 0 ) ) {
Debug.println( this, "Found failure " + str );
inputOK = false;
break;
in.close();
     inStream.close();
     inConn.close();
     in = null;
     inStream = null;
     inConn = null;
Debug.println( this, "End of Response read" );
}

This is an issue with the browser rather than Java.
You are getting the same response, because the browser checks it's cache first and keeps serving up the same info from the cache.
Add a parameter to the URL so that the browser thinks you are submitting a form. Use the new methods in the URLConnection class, or you can manually add a GET parameter to the URL.

Similar Messages

  • Premiere Elements 8 "Could not connect to remote server" when sharing to YouTube

    I'm trying to share my Adobe Premiere Elements 8 video to YouTube through the task panel, but I get a "Could not connect to remote server" message. My computer is connected to the Internet. I notice at the bottom of the message there is "Open the Opera Help" and "Go to Opera's on-line support desk." I don't have Opera on this computer, so maybe that's it?

    No. You don't need Opera.
    Have you gone to Edit/Preferences and ensured that your Web Services are up to date?
    Otherwise, it could be that YouTube changed settings on us again. If that's the case, you'll need to post to it manually, per the FAQs to the right of this forum.
    http://forums.adobe.com/thread/390608?tstart=30

  • SharePoint Online - "Unable to connect to remote server"

    Hi,
    I have a Provider Hosted App which gets the data from a different site collection. Now, when i try to connect to a different site collection, the TokenHelper
    class gives me an error -  "Unable to connect to remote server". 
    The error is thrown in the below line:
    acsMetadata = webClient.DownloadData(acsMetadataEndpointUrlWithRealm);
    The above error is not thrown always. It throws occasionally. I am not getting the reason for this. Could anybody explain what is the problem, please? 

    Hi,
    According to your description, my understanding is that the error "Unable to connect to remote server" occurs in the WebClient.DownloadData Function.
    As this error throws occasionally, it should be related to the network issue, for a better troubleshooting, I suggest you can check the detailed error message using Fiddler.
    Fiddler
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SSRS 2008 - Unable to connect to remote server

    Win2k3 R2 SP2/SQL Server 2008 instance with SSRS/Visual Studio 2008
    I installed SQL 2008 and SSRS with native mode default configuration.
    All SQL 2008 services are running under "NT Authority\Network Service" account.
    When i try to deploy a new report, I get the "Unable to connect to remote server" error.
    The deploy operation creates empty folders on the web server (hosted by the SQL Server 2008 service)
    for e.g.
    my instance name is <machinename>$sql2008. i configured the WebService URL and the Reports Manager URL to port 85
    the deploy from VS creates ssrs2008Test folder and a Shared Data Sources folder in the following virtual directory
      - Report Manager URL: http://<machinename>:85/Reports_SQL2008/
      - Web Service URL: http://<machinename>:85/ReportServer_SQL2008
    however these folders are empty w/ no .rdl or .rds file. and i get the "Unable to connect to remote server"  error in Visual Studio 2008 when i deploy it.
    is there something else i have to tweak in either the SQL Server/SSRS Configuration Manager or the Windows Server Settings(like port settings or group policy) to get the reports to work?
    thanks
    -vt

    SecureConnectionLevel = 2
    From logFile:
    appdomainmanager!DefaultDomain!740!08/29/2008-08:00:30:: i INFO: Appdomain:6 ReportServer_SQL2008_0-3-128644956308203194 started.
    appdomainmanager!ReportServer_0-3!740!08/29/2008-08:00:31:: i INFO: RS authentication mode is 5; effective ASP.NET authentication mode is Windows. vdir=/ReportServer_SQL2008.
    httpruntime!ReportServer_0-3!740!08/29/2008-08:00:31:: i INFO: Report Builder manifest file C:\Program Files\Microsoft SQL Server\MSRS10.SQL2008\Reporting Services\ReportServer\ReportBuilder\ReportBuilder_2_0_0_0\MSReportBuilder.exe.manifest not found.
    appdomainmanager!DefaultDomain!740!08/29/2008-08:00:31:: i INFO: Appdomain:6 ReportServer_SQL2008_0-3-128644956308203194 initialized (#2).
    webserver!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Reporting Web Server started
    resourceutilities!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Reporting Services starting SKU: Developer
    resourceutilities!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Evaluation copy: 0 days left
    resourceutilities!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Running on 1 physical processors, 4 logical processors
    runningjobs!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Running Requests Scavenger timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    runningjobs!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Running Requests DB timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    runningjobs!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Memory stats update timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    library!ReportServer_0-3!1588!08/29/2008-08:00:38:: Call to GetItemTypeAction(/ssrs2008Test).
    library!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Catalog SQL Server Edition = Developer
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Initializing crypto as user: NT AUTHORITY\NETWORK SERVICE
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Exporting public key
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Performing sku validation
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Importing existing encryption key
    library!ReportServer_0-3!740!08/29/2008-08:00:39:: Call to GetItemTypeAction(/Data Sources).
    library!ReportServer_0-3!1588!08/29/2008-08:00:39:: Call to GetItemTypeAction(/Data Sources/masterDB).
    library!ReportServer_0-3!740!08/29/2008-08:00:40:: Call to GetItemTypeAction(/ssrs2008Test/sp_who2).

  • Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError $true -CurrentV

    I installed Exchange Server 2010 inside my VMWare Windows Server 2008 Ent R2. And After successful installation  when I try to open my Exchange Server Console, I am getting the following error message. I am very new to Exchange server please help me
    to solve this problem.
    Initialization Failed
    The following error occurred while searching for the on-premises Exchange server:
    [win-.local] Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError
    $true -CurrentVersion 'Version 14.1 (Build 218.15)''.
    Thanks Vivek
    SharePoint Foundation 2010 Book
    http://www.redpipit.com

    Hi,
    Please have a look at the article below:
    Troubleshooting Exchange 2010 Management Tools startup issues
    http://blogs.technet.com/b/exchange/archive/2010/02/04/3409289.aspx
    Resolving WinRM errors and Exchange 2010 Management tools startup failures
    http://blogs.technet.com/b/exchange/archive/2010/12/07/3411644.aspx
    Besides, please run the cmdlet below:
     set-user alias -remotepowershellenabled$true
    Xiu Zhang
    TechNet Community Support

  • Suddenly, thunderbird doesn't connect to remote server when i click "get messages".

    Linux (ubuntu studio), 64 bit. Suddenly, thunderbird doesn't connect to remote server when i click "get messages". It just says "(account name): Connected to (mail server)" for a second or two at the bottom, then nothing. In the server logs, i get:
    popa3d[6408]: Didn't attempt authentication
    Trying to get my e-mail also seems to cause a bunch of these errors on the server:
    (server) kernel: [18295.775491] lockd: cannot monitor laptop
    where "laptop" is the client machine.
    The problem seems to be caused by my mailbox files (Inbox and Inbox.msf) - when i create a clean ~/.thunderbird directory, i can get my e-mails, but when i place my mailbox files in this account's Mail directory, the problem comes back. Even if i place it as another name, and not Inbox.

    I should add the following information:
    - Neither "safe mode" or rebuilding the global-messages-db.sqlite file fixes the problem.
    - Seamonkey has no problems with my Inbox and Inbox.msf file.
    - The Inbox and Inbox.msf files are symlinks to files on a NFS filesystem.
    - Downgrading to an earlier version of thunderbird doesn't fix the problem.
    - Even if i remove the mail file from an account, the problem persists.
    - I confirmed that i can telnet to the server on the pop3 port and login with the raw protocol.
    The above mentioned lockd errors make me think this is a NFS related error, but if that's the case, why is seamonkey able to read my Inbox file without problems but not thunderbird?

  • Connecting to remote server failed - WinRM client cannot complete the operation within the time specified

    Exchange 2010 SP2 Active DAG Node.  Cannot cannot to Exchange Admin Console with the following errors and these errors change from time to time ... and some times it works ...
    attempt to connect to http://DAGNODE.domain.com/powershell using "kerberos" authentication failed: connecting to remote server failed with the following message: The WinRM Client cannot complete the operation
    within the time specified. Check if the machine name is valid and is reachable over the network and firewall exception for windows remote management service is enabled.
    thanks,

    Hi,Philip,
    Are you running the DAG on Windows server 2008 R2?If so check the following KB to see if they apply to your issue
    http://support.microsoft.com/kb/976839
    http://support.microsoft.com/kb/2294243
    And you can check if the solutions in these old threads with similar error message do the trick for you.
    http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/54af902c-d718-4656-8a25-7c150e4b0e81/
    http://social.technet.microsoft.com/Forums/en-US/exchangesvradminlegacy/thread/baa1af25-001a-432d-86a0-25c05655e63c/
    Regards,
    Sharon
    Sharon Shen
    TechNet Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.

  • Connection to licence server not authenticated

    Hello,
    I have made a backup of a SBO database in SQL Server 2000 and restored this over an existing database in SQL Server 2005. Made a backup of this one and then opened SBO and updated the administration.
    Unfortunately I get the system message (after entering username and password) once updated: Connection to licence server not authenticated
    The administration from the client is in SBO2005A SP01 PL41 and mine is SBO2007A.
    How can I get around this. The other administrations I can access..
    Regards,
    Petronella

    What do you mean by
    The administration from the client is in SBO2005A SP01 PL41 and mine is SBO2007A.*
    You could not use a 2005 client on a 2007 Server
    Or Upgrade 2005 Patch 41 to 2007
    Please clarify
    Suda

  • How to connect a remote server in my local pc?.

    I have a code to connect my server in visual basic 6.0 code, my sap version is 2007 A.
    Private Sub ConnectToCompany()
        '// Initialize the Company Object.
        '// Create a new company object
        Set oCompany = New SAPbobsCOM.Company
        '// Set the mandatory properties for the connection to the database.
        '// To use a remote Db Server enter his name instead of the string "(local)"
        '// This string is used to work on a DB installed on your local machine
        oCompany.Server = "(local)"
        oCompany.language = ln_English
        '// Use Windows authentication for database server.
        '// True for NT server authentication,
        '// False for database server authentication.
        oCompany.UseTrusted = True
        ChooseCompany.Show vbModal, Me
      End Sub
    but I want to connect my remote server and I didn't. Do i forgeting  something??... I changed "(local)" for my name remote server or my local Ip for remote server. But maybe my user name windows for autentication. there is Someone who can help me please. Which one is the correct data I need??

    hello freind
    i think yu are missing  company usernsme,password,db type like this code
    private void Connect()
                try
                    Cursor = System.Windows.Forms.Cursors.WaitCursor;//Change mouse cursor             
                    oCompany = new SAPbobsCOM.Company();               
                    oCompany.DbServerType =  (SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008);
                    oCompany.Server = Properties.Settings.Default.ServerName.ToString();// change to your company server
                    oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English; // change to your language
                    oCompany.UseTrusted = false;
                    oCompany.DbUserName = Properties.Settings.Default.UserID.ToString();
                    oCompany.DbPassword = Properties.Settings.Default.Password.ToString();
                    // Set connection properties
                    oCompany.UserName = txtUSer.Text;
                    oCompany.Password = txtPassword.Text;
                    oCompany.CompanyDB = Properties.Settings.Default.DatabaseName.ToString();            
                    //Try to connect
                    lRetCode = oCompany.Connect();
                    if (lRetCode != 0) // if the connection failed
                        int temp_int = lErrCode;
                        string temp_string = sErrMsg;
                        oCompany.GetLastError(out temp_int, out temp_string);
                    //  u.action_status("Connection Failed - " + temp_string, this);
                    if (oCompany.Connected) // if connected
                        this.Text = this.Text + " - Connected to " + oCompany.CompanyDB;
                        CheckUser();
                    Cursor = System.Windows.Forms.Cursors.Default; //Change mouse cursor         
                catch (Exception)

  • ACC Setup Error - Remote Server not Responding in the Proper Manner - Windows 7 Pro

    Hello -
    I was able to install the CC upgrades to all my software on my laptop without issue. Whenever I try to upgrade them on my desktop I recieve the attached error. I am running Windows 7 Professional. My guess this is being caused my my company's firewall however my IT director claims he set me up to bypass the firewall when trying to install this.
    Thank you for your help.

    Hi Mike603,
    Please refer to the following help document on error " Remote Server not responding".
    http://helpx.adobe.com/creative-suite/kb/remote-server-responding-installing-aam.html
    Hope this helps.
    Please let me know in case of any problem.
    Regards,
    Sumit Singh

  • Cannot connect to remote server

    When trying to make connection to remote server, I receive a
    message, "FTP, error, cannot make connection to host-Logon and
    Password are incorrect... However, settings are correct as I could
    get on in the past and when testing for remote site in site
    management the message states "Adobe DW Cs3 connected to your web
    server correctly".
    My OS is MAC 10.4.11 My site developer can get on with DW8
    using a PC and a MAC. Have tried everything short of deactivation
    and reinstall.

    Plese tell us what your remote site definition has in each
    field (you can
    omit the password).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "TJMax412" <[email protected]> wrote in
    message
    news:gbtj7m$94l$[email protected]..
    > When trying to make connection to remote server, I
    receive a message,
    > "FTP,
    > error, cannot make connection to host-Logon and Password
    are incorrect...
    > However, settings are correct as I could get on in the
    past and when
    > testing
    > for remote site in site management the message states
    "Adobe DW Cs3
    > connected
    > to your web server correctly".
    > My OS is MAC 10.4.11 My site developer can get on with
    DW8 using a PC and
    > a
    > MAC. Have tried everything short of deactivation and
    reinstall.
    >

  • Twistedcaldav remote-server-not-found error

    [notifications] 2012-01-01 18:53:11+0100 [XmlStream,client] [twistedcaldav.notify.XMPPNotifier#error] PubSub node creation error: <error code='404' type='cancel'><remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error>
    Whenever I startup iCal on my OSX Server I see the following error.
    Can anyone explain what this is caused by?
    -Paul-

    ''AG [[#answer-698983|said]]''
    <blockquote>
    disabling the .http2 configs did not work
    is there a work around for the DNS "ANY" issue for me to try? I'll search.
    A
    </blockquote>
    The easiest method is just to wait a few days for the Fx36.0.1 update. If you use
    Firefox Menu Button -> Help -> AboutFirefox
    each day that will check to see if the upgrade is available.
    The bug fix is I think merely changing prefs and so you could do that yourself. It may be safer to use a spare additional profile, or backup the file ''prefs.js'' when trying that initially, because making mistakes in about:config may break Firefox.
    * http://kb.mozillazine.org/Prefs.js_file
    * http://kb.mozillazine.org/About:config
    * [[Use the Profile Manager to create and remove Firefox profiles]]
    Just toggling the pref '''''network.dns.get-ttl''''' to '''''false''''' should fix the issue, that basically is what is done in
    Bug 1093983 - DNS resolver should not use 'ANY' to get cached records for TTL
    One of the bug fixes about to be applied in the imminent Fx36.0.1 point Release

  • TS2621 why my outgoing mail server not working after ios 6 upgraded

    why my outgoing mail server not working after ios 6 upgraded

    Ask your carrier to send you the settings over wifi and then install them that way.
    I'm on giffgaff and I used the giffgaff app from the store to sort this out.
    Overall though I must say Apple has let itself down on this as why isn't something written in the ios script that keeps the original settings??
    Very Poor indeed and I held off using Apple products for years for this very reason!!

  • IPhone apps not resuming after phone call - iOS 7 bug

    iPhone apps not resuming after phone call - iOS 7 bug
    With iOS 6, while playing music on Spotify or playing Candy Crush, etc, if the phone rang and I answered, or if I made a call, once the call was ended, the app I was using would resume. The music would start playing again or the game would resume.
    In iOS 7 this isn't working. Listening to music, I answer a call, music stops and when call is ended, nothing! the phone stays on the phone app.
    anybody else see this behaviour?
    thanks!

    Any ideas anyone?
    thanks

  • How can you keep the caps lock on and not unlock after each letter?

    How can you keep the caps lock on and not unlock after each letter?

    I'm not aware of an online keyboard that is available and can do this. Most likely it would need to be a function of the app itself (which can and sometimes do add functionlaity to the keyboard).
    Wireless keyboard might handle that, if that's an option for you.
    I work in IT myself, and IMHO the iPad isn't the ideal device for coding or scripting work.

Maybe you are looking for

  • Digital Publishing and Interactivity with digital magazine on my own server

    Hello... I am researching what would be the best plan of action for my project... need to design a digital magazine for the web that is interactive and has rich media like video, animations, etc. I am thinking of doing the following... design my anim

  • Phone not working after update volume. Battery life resets on own

    Ever since last ISO update phone not working right. Looses volume. Shuts off   Battery life went out to lunch. Texting slow. Any fix yet I see lots of issues. And tec support wants to charge as phone is off warranty. Was working finè before update. V

  • Code changes are not effected in .swf file

    Hi, I have made changes in the code and compiled it and executed the application. But, the changes whatever I made are not shown in GUI part. I am able to view the changes if I execute my application in debug mode but not in normal mode. Even I have

  • OnComplete not firing Mac

    I have tried the work around for Flash 8 even though I have the latest Flash Player on my machine. The onComplete is not firing and hanging the progress bar at 100%. I have read on forums that an echo or respons.write("") will clear the problem but i

  • Zones or Logical Domains

    Hello, If I have an Enterprise T5120 server, would I be better off employing solaris zones or logical domains? I took a long break from this area of expertise and find myself in the wonderful world of virtualization! Also, if you have any recommendat