connection

How to fix native client error 'Connection is busy with results for another command'?

喜欢而已 提交于 2019-12-10 14:52:37
问题 I'm getting a Connection Busy With Results From Another Command error from a SQLServer Native Client driver when a SSIS package is running. Only when talking to SQLServer 2000. A different part that talks to SQLServer 2005 seems to always run fine. Any thoughts? 回答1: Microsoft KB article 822668 is relevant here: FIX: "Connection is busy with results for another command" error message occurs when you run a linked server query Symptoms Under stress conditions, you may receive the following

Cannot call web service

假装没事ソ 提交于 2019-12-10 14:35:17
问题 I am currently trying to call a web service with a client built with Apache CXF. Though the service is available in the browser, I cannot connect to it, due to the following error. Any thoughts regarding the problem ? org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Connection refused: connect at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor

ADO.NET: Faster way to check if the database server is accessible?

一笑奈何 提交于 2019-12-10 13:59:37
问题 At the moment I am using this code to check if the database is accessible: public bool IsDatabaseOnline(string con) { bool isConnected = false; SQLConnection connect = null; try { connect = new SQLConnection(con); connect.Open(); isConnected = true; } catch (Exception e) { isConnected = false; } finally { if (connect != null) connect.Close(); } return isConnected; } While this code works fine, there is a disadvantage. If the server is not online it spends about 4 full seconds trying to open

Do I need to close expired connections in Apache HTTPAsyncClient?

跟風遠走 提交于 2019-12-10 13:56:24
问题 Do I need to close expired connections in Apache HttpAsyncClient as is done with HttpClient? 回答1: I just double-checked the source code. Yes, one still has to explicitly evict expired connections from the pool. However , the underlying NIO channel and socket will get closed and released immediately. The problem with expired connections not being automatically evicted from the pool is a bug in HttpAsyncClient 4.0 beta3. Feel free to raise a JIRA for this defect. 来源: https://stackoverflow.com

How to connect Sybase database using Java code in NetBeans?

女生的网名这么多〃 提交于 2019-12-10 13:49:29
问题 I want to connect remote Sybase from my Java code written in NetBeans . So far I have prepared a code as below: public static void connect() { String host = "192.168.150.11"; String url = "jdbc:sybase:Tds:"+host+":4100"; String username = "sa"; String password =""; SybDriver sybDriver = null; Connection conn; try { sybDriver=(SybDriver)Class.forName("com.sybase.jdbc3.jdbc.SybDriver").newInstance(); System.out.println("Driver Loaded"); conn = DriverManager.getConnection(url,username,password);

Android Bluetooth Connecting Error

陌路散爱 提交于 2019-12-10 13:29:48
问题 Im getting the follow messages in my stack trace. I can find Bluetooth Devices, but when I try to open the socket this happens. 10-30 22:23:08.901: ERROR/BTL_CFG(8633): WARNING : [service.brcm.bt.INQ_FILTER_BDA] property_get failed (0) 10-30 22:23:24.585: ERROR/BTLD(8633): ****************search UUID = 1454*********** 10-30 22:23:24.600: ERROR/BluetoothEventLoop.cpp(2502): onCreateDeviceResult: D-Bus error: org.bluez.Error.AlreadyExists (Device already exists) 10-30 22:23:24.616: ERROR/DTUN

What are the possible results of PDO::getAttribute(PDO::ATTR_CONNECTION_STATUS)

半城伤御伤魂 提交于 2019-12-10 13:19:22
问题 I have been looking in to this almost all day.. and can't seem to find the values returned anywhere. Can somebody tell me: What values do PDO::getAttribute(PDO::ATTR_CONNECTION_STATUS); return? Is it possible to rely on its result to determinate if the connection is still alive?(And eventually, what could I use to check if the connection is still alive?) 回答1: Finally! it turns out that the mysqli::ping() function could be implemented within PDO as follows: class PDOExtended extends PDO {

How to check if proxy is working in Java?

五迷三道 提交于 2019-12-10 12:56:59
问题 I searched google, this site and JavaRanch and I can not find an answer. My program needs to obtain proxies from a selected file(I got that done using java gui FileChooser class and RandomAccessFile) Then I need to verify the proxies starting with the one that is first in the txt file. It will try to connect to some site or port to verify if the connection was successful.If the connection was successful (I got a positive response) it will add the proxy to a list of proxies and then get and

wget connection reset by peer

Deadly 提交于 2019-12-10 12:48:10
问题 I try to access www.indeed.com from our web server by using wget but it raises "Connection reset by peer" error. wget www.indeed.com --2013-02-05 03:03:12-- (try: 3) http://www.indeed.com/ Connecting to www.indeed.com|208.43.224.140|:80... connected. HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Retrying. It was working before cause I'm using their API for a while but now I'm not even reach their public website. What could it be the problem? Could

Best way to check OleDbConnection state

点点圈 提交于 2019-12-10 12:45:30
问题 Apparently (MSDN) sometimes OleDbConnection.ResetState() does nothing, so even if the connection fails OleDbConnection.State will still be set to Open. I am looking for best workaround for this, so that when I check connection state I can avoid raising exceptions (as long as connection hasn't failed between the last check and usage attempt). Is there nothing better than sending a "useless" sql statement each time just to see if an exception is thrown? How do you make sure your connection is