connect

Jsch error - failed to send channel request

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to connect to a SFTP remote server using JSCH library version 0.1.49. Every time I run the program I receive the following error : Initializing... Connection to SFTP server is successfully com.jcraft.jsch.JSchException: Unable to connect to SFTP server.com.jcraft.jsch.JSchException: failed to send channel request at shell.MainClass.JschConnect(MainClass.java:95) at shell.MainClass.main(MainClass.java:30) line 30 is : sftpChannel.connect() from the code below : System.out.println("Initializing..."); JSch jsch = new JSch(); Session

Nodemailer: ECONNREFUSED

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I don't know what I'm missing, I use the Nodemailer example: I just changed the user and pass in auth to my gmail account info (also tried with their values), and I changed the "to" email address to my email address. I get: { [Error: connect ECONNREFUSED] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect' } What am I missing? I don't see anything in the documentation that says I need to do anything more than this, so why won't it work? Thank you in advance. 回答1: It was a firewall issue. Turns out there was nothing wrong with the

Unable to connect to Google Cloud SQL from development server using SQLAlchemy

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been unsuccessful at connecting to Google Cloud SQL using SQLAlchemy 0.7.9 from my development workstation (in hopes to generate the schema using create_all()). I can't get passed the following error: sqlalchemy.exc.DBAPIError: (AssertionError) No api proxy found for service "rdbms" None None I was able to successfully connect to the database instance using the google_sql.py instancename , which initially opened up a browser to authorize the connection (which now appears to have cached the authorization, although I don't have the ~

Java JDBC - How to connect to Oracle using tnsnames.ora

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: tnsnames.ora file contains the Databases and the their description ( host + port ). Is it possible to establish a connection relying on the file mentioned above? (Say by providing only the DB name): In order to find this file, I have to know the default oracle home I need to check in the windows registry for HKEY_LOCAL_MACHINE\Software\Oracle and then to have all the KEY_XXX files and then check which one appears first on the %PATH% . Is there a way to automatically find this file on the client computer? 回答1: I wasn't even aware that using

Delphi/Rdp check username and password before connect

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: as the subject say am trying to connect to server using this code in delphi procedure TmainF.Button1Click(Sender: TObject); var rdp1 : TMsRdpClient7NotSafeForScripting ; begin rdp1 := TMsRdpClient7NotSafeForScripting.Create(self); rdp1.Parent := mainF; rdp1.Server:=server_name; rdp1.UserName := user.Text; rdp1.AdvancedSettings7.ClearTextPassword := password.Text; rdp1.ConnectingText := 'connecting'; rdp1.DisconnectedText := 'disconnected'; rdp1.AdvancedSettings7.AuthenticationLevel:=0; rdp1.AdvancedSettings7.EnableCredSspSupport:=true; rdp1

BluetoothSocket.connect() throwing exception “read failed”

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a project that connects to a device over Bluetooth. It used to work fairly reliably, but now it fails the BluetoothSocket.connect() call every time. (Well, I got it to connect once during the thousands of attempts over a 4 hour period.) Most of the code has been taken from the standard sample chat code in the API, with the exception of the common modification in getting the BluetoothSocket device itself: Method m = device.getClass().getMethod( "createRfcommSocket", new Class[] { int.class }); tmp = (BluetoothSocket) m.invoke(device,

How to connect from Linux to Android Bluetooth socket

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to create a Bluetooth connection from a Raspberry Pi 3B (Debian Linux) to an Android app. My problem is that the the Android framework (AFAIK) requires use of a UUID, e.g. createRfcommSocketToServiceRecord(UUID). Code excerpt: // CREATE SPP SOCKET mSock = device.createRfcommSocketToServiceRecord( uuid ); if( mSock == null ) { return( -1 ); } // TRY TO CONNECT mSock.connect(); The code above works fine Android-to-Android. Linux on the other hand requires just an "rc channel number" (an integer). The following is some sample code

ODAC & C# - TNS: Connect timeout occurred - Connecting only through VS2005 debugger

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am new to Oracle, and there is an issue I am facing. When I run the application from IDE - Visual Studio 2005, The database connection is established smoothly, but when I run an installed version of the app, the DB connection fails and I get a TNS: Connect timeout occurred error. I tried with SQLNET.ORA and similar solutions found online, but I could not resolve the issue. I wonder why this happens, since the application running through the IDE and through an installation is on the same PC. I made sure the TNSNAMES.ORA file was

Error : mysqli::real_connect(): (08004/1040): Too many connections [CodeIgniter v3]

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have some problems in my site, I got an error too many connections . Screenshot : http://pasteboard.co/Hz7QJQR.png the Backtrace said my error in my __construct , model function list_slider and my model on get function : this is my controller code : <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Beranda extends CI_Controller { public function __construct() { parent::__construct(); $this->load->helper(array('form', 'url', 'html')); $this->load->model(array('slider_model', 'slider_2_model', 'group_model',

How can I connect to Sql Server from a Mac with PHP PDO?

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: If you search Google for this question, you will find a lot of incorrect, misleading, and outdated information. Surprisingly, there isn't a solid answer on Stack Overflow, so we should change that. I am using the Mac port installation of Apache and PHP. I have installed php5-mssql, and I can see mssql on my phpinfo() page. But I don't see it listed under PDO. PDO support enabled PDO drivers dblib, mysql, odbc, pgsql Is mssql not associated with PDO? Is there another driver that can be used on a Mac to connect to a SqlServer database using