Connection.close() not closing my connection?

My servlet calls con.close() within the finally {} of a try..catch
block. Yet I notice that sa_conn_info still lists the connection.

Shouldn't the connection disappear from the sa_conn_info list when I
close it?

And if the answer to that is "yes, it should", has anybody seen
situations like mine where it *doesn't* close it?

Thanks for your help,

Kathleen
0
Kathleen
6/3/2001 4:39:37 PM
sybase.jconnect 798 articles. 0 followers. Follow

1 Replies
958 Views

Similar Articles

[PageSpeed] 45

My bad... through a series of really stupid coding mistakes, I managed
to cause a SQLException to be thrown from within the finally {} block
before the connection could be closed... and I was ignoring the
exception. 

I'm such an idiot.

Sorry for the false alarm.

Kathleen
0
Kathleen
6/3/2001 5:50:10 PM
Reply:

Similar Artilces:

difference between connection.close and command.connection.close
hello, What is the difference between odbcconnection.close and odbccommand.connection.close? I am making connection once in my application in global.asax and opening connection at application_start event and closing it at application_end event. I am accessing connection through "global.myconnection" in webforms. NOw in the webforms,do I have to mycommand.connection.open before comand.executereader?? Does mycommand.connection.close , closes the odbcconnection that I make in gloabl.asax? It is confusing, because on the first function executing on webform, when I myc...

underlying connection was closed: The connection was closed unexpectedly
Hi ,   I am working with wcf and linq  and i am facing a problem"The underlying connection was closed: The connection was closed unexpectedly. " when i am trying to return my linq query to the client.I tried for changing the code in web.config for client and server.like   Client :   <behaviors> <endpointBehaviors> <behavior name="debuggingBehaviour"> <dataContractSerializer maxItemsInObjectGraph="2147483646" />                 &nb...

SFtp connect
The following Ftp connect to a sftp site has the right port/usrname/password [verified thru filezilla], but when I try to connect via TIDFTP -- I get "Connection Closed Gracefully" upon ftp->Connect();; The ftp properties are below the code. I have no other Indy objects on the form. It ocurred to me that I may need something for sftp. ftp->Connect(); if (ftp->Connected()) { ::Sleep(1); } object ftp: TIdFTP AutoLogin = True Host = 'ftp.dailyaccess.com' Password ='XXXXX' Port = 21 Username = 'charles.leggette' ProxySet...

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server
Hello everyone, Please I truly need your help. I just changed my code from asp.net 1.1 to 2.0, and my page calls both the database and webservice for data. In asp.net 1.1, my code works perfectly, but in 2.0, I keep getting this error "Exception Details: System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server." I spent weeks online and I got this code, Public Class MyTestServiceInherits VHMS.SOAPService Protected Overrides Function GetWebRequest(ByVal uri As Uri) As System.Net.WebRequestDim we...

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
Hi,  If anyone knows..... why would the above mentioned error occur?   It happens at this line of my code : iBranchHierarchyLevel = objdbAccess.org_GetBranchHierarchyLevel(iUserBranchID)   I am using a web reference - which is connected to objdbaccess and org_GetBranchHierarchyLevel is a method   tnx :) Follow this thread please http://forums.asp.net/t/1127234.aspx  Hosam Kamel Remember to click on Mark as answer on the post that helped you...

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server
Hi I am using WebService in asp.net during WebServices call an error occur some time. Which through the message like   The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was ...

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
  Hi I am using WebService in asp.net during webservices call an error occur some time. Which through the message like   The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept aliv...

superreview requested: [Bug 338243] Enabling TLS for new IMAP connections doesn't close old connections : [Attachment 237619] close cached connections when socket type changes
David Bienvenu <bienvenu@nventure.com> has asked Scott MacGregor <mscott@mozilla.org> for superreview: Bug 338243: Enabling TLS for new IMAP connections doesn't close old connections https://bugzilla.mozilla.org/show_bug.cgi?id=338243 Attachment 237619: close cached connections when socket type changes https://bugzilla.mozilla.org/attachment.cgi?id=237619&action=edit ...

superreview granted: [Bug 338243] Enabling TLS for new IMAP connections doesn't close old connections : [Attachment 237619] close cached connections when socket type changes
Scott MacGregor <mscott@mozilla.org> has granted David Bienvenu <bienvenu@nventure.com>'s request for superreview: Bug 338243: Enabling TLS for new IMAP connections doesn't close old connections https://bugzilla.mozilla.org/show_bug.cgi?id=338243 Attachment 237619: close cached connections when socket type changes https://bugzilla.mozilla.org/attachment.cgi?id=237619&action=edit ...

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. (SOMETIMES)
This is an Asp.net page that gets info from a IBM Shadow web system. This works 100% for getting HTML but when a image is added an error sometimes occurs. (Could it be the amount of data transfered???). The error is : "The underlying connection was closed: A connection that was expected to be kept alive was closed by the server." This ONLY happens in .net 2.0 and NEVER in .net 1.1. I have searched but not found an applicable solution for this. Is there a property that needs to be set different?   [CODE]HttpWebRequest request = (HttpWebRequest)WebRequest.Create(sRemoteURL); /...

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server #2
Hi I am using WebService in asp.net during webservices call an error occur some time. Which through the message like   The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. Description: An unha...

Error occure while calling a WCF Service.(The underlying connection was closed: The connection was closed unexpectedly.)
  Hi,I am using WCF service in my application. when i call a method in the service. i get the following error- System.ServiceModel.CommunicationException: The underlying connection was closed: The connection was closed unexpectedly.Please Help!...

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. (Alternate requests)
Hi Experts,   I am experiencing the The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. for alternate SOAP requests. Can any one help me in this.   I made default proxy settings in config file so but no luck.. <system.net>      <defaultProxy>         <proxy usesystemdefault ="false"            proxyaddress = "http://proxyserver:80"     ...

Switching Connections or Closing All Connections
I have an access database on a different host and unfortunately not able to have it on my own web server and I was curious if there is a way to close all connections to it.  I have tried throwing bad queries to it to throw errors and the database will still not unlock.  I am tired of having to wait for 30 minutes to maybe see it unlock.  It's my first time without being able to control the web server that it's on... Normally I can just shutdown the application via server.  Now I have to use a hosting site and I need to find some efficient way of shutting down the ...

Web resources about - Connection.close() not closing my connection? - sybase.jconnect

Connection - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

iMedia Connection: Interactive Marketing News, Features, Podcasts and Video - iMediaConnection.com
High-quality data, if not used properly, can still lead marketers to make bad decisions. Consider these common ways that numbers are used to ...

HTTP persistent connection - Wikipedia, the free encyclopedia
... tacked on to an existing protocol. If the browser supports keep-alive, it adds an additional header to the request: Following this, the connection ...

CareerSonar Turns Facebook Friends Into Job Connections
Looking for a job ? Among your Facebook friends lies the potential for employment. CareerSonar , a new service, brings together a person’s connections ...

Man Charged With Aggravated Arson In Connection To Columbus Warehouse Fire
Police have charged 30-year-old Robin Toms with aggravated arson.

Adam Savage from 'MythBusters' has an incredible connection to the 'Star Wars' franchise
Adam Savage, co-host of the popular " MythBusters " television show, soured on the plot of "Interstellar." But when it comes to the newest films ...

Heavyset woman with facial hair arrested in connection to downto - CBS News 8 - San Diego, CA News Station ...
Police were on the lookout Thursday for a heavyset woman with facial hair who stabbed a man in the East Village.

Arrest made in connection with California mosque fire
CNN Arrest made in connection with California mosque fire CNN (CNN) A California man was arrested Saturday in connection with a fire at a ...

UK Police Make Arrest in Connection With VTech Hacking
British law enforcement officials arrest a 21-year-old man in connection with attack on toy maker VTech that exposed 6 million parents and children ...

"News Feed" For Slower Connections: Facebook's Strategy To Build A Stronger User Base
The changes in News Feed will more efficiently show relevant stories in a slow connection and let users compose comments when they are offline. ...

Resources last updated: 12/30/2015 7:11:37 AM