connection

Java2MySQL > Communication link failure due to underlying exception again

可紊 提交于 2019-12-24 05:54:05
问题 I'm making program in Java, which connects to MySQL database. As first class was class with single static method returning java.sql.Connection . After it was debugged and connection was working I never touch it again. And few days ago I discovered my program was returning this error: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception BEGIN NESTED EXCEPTION com.mysql.jdbc.CommunicationsException MESSAGE: Communication link failure due to underlying

Permission for sockets - android manifest

此生再无相见时 提交于 2019-12-24 05:14:07
问题 I've made a simple test application for reading RabbitMQ queues using java amqp lib ( implementation 'com.rabbitmq:amqp-client:5.7.1' ). But im having trouble when connectiong to my rabbit server due to Android permissions (socket) Here is the error message: W/System.err: java.net.SocketException: socket failed: EPERM (Operation not permitted) I've tried, successless, to add android.permission.INTERNET to the manifest. Here is what it looks like: <?xml version="1.0" encoding="utf-8"?>

WCF tcp.net client/server connection failing “Stream Security is required”

醉酒当歌 提交于 2019-12-24 05:03:14
问题 I am trying to test a simple WCF tcp.net client/server app. The WCF service is being hosted on Windows 7 IIS. I have enabled TCP.net in IIS. I granted liberal security privileges to service app by configuring an app pool with admin rights and set the IIS service application to run in the context. I enabled tracing on the service app to troubleshoot. Whenever I run a simple method call against the service from the WCF client app, I get the following exception: "Stream Security is required at

WCF tcp.net client/server connection failing “Stream Security is required”

我的未来我决定 提交于 2019-12-24 05:01:02
问题 I am trying to test a simple WCF tcp.net client/server app. The WCF service is being hosted on Windows 7 IIS. I have enabled TCP.net in IIS. I granted liberal security privileges to service app by configuring an app pool with admin rights and set the IIS service application to run in the context. I enabled tracing on the service app to troubleshoot. Whenever I run a simple method call against the service from the WCF client app, I get the following exception: "Stream Security is required at

Spring transaction hangs for iptables command

混江龙づ霸主 提交于 2019-12-24 04:48:11
问题 As part of error handling for our processes, we have tried to disable the communication between the process to the database machine listener port using the following iptables command iptables -A INPUT -p tcp --destination-port <database-listener-port> -s <database-host-ip> -j DROP However, this cause the process to get stuck with the following log coming from AbstractPlatformTransactionManager::getTransaction DEBUG: Creating new transaction with name [<Transaction-Name>]: PROPAGATION_REQUIRED

Erlang raise number of opened sockets, MacOS and CentOs

我是研究僧i 提交于 2019-12-24 04:46:07
问题 I'm trying to open connections ( sockets ) to my Erlang server; everything works fine with around 100 paralell connections, but when I want more than 100 i get {error, closed}. It may be something that has to do with OS file descriptor limit ? If yes, can you guys please give me a solution? I use MacOS and CentOS. Should I give some params to the Erlang Vm in vm.args file? 回答1: Open sockets limit in erlang relies on two things: OS max open files limit, you can check how two tune it here

Uncaught exception 'MongoConnectionException'

独自空忆成欢 提交于 2019-12-24 03:27:33
问题 Fatal error: Uncaught exception 'MongoConnectionException' with message 'Failed to connect to: localhost:27017: Permission denied' in /var/www/html/test.php:8 Stack trace: #0 /var/www/html/test.php(8): MongoClient->__construct() #1 {main} thrown in /var/www/html/test.php on line 8 Hi Mongo experts... I am a developer wanting to try out MongoDB. So installed centoOS 6.5 64bit in a test machine (Dell E520 Intel Dual Core 4GB Ram), installed PHP (Apache was already present). Then installed

Oracle Protocol Adapter Error

非 Y 不嫁゛ 提交于 2019-12-24 03:24:38
问题 HI, I've just installed Oracle 10 g Express Edition on to my laptop. The platform is Windows XP SP3. Installation went normally. BUt when I try to get connected to the Oracle database via SqlPlus I get "TNS Protocol adapter error".My laptop is on the network.I'd installed the same database on to a Windows Server 2003 and it works fine. What could the problem be? 回答1: I presume this is ORA-12560: TNS:protocol adapter error . The Oracle documentation describes it as a generic TNS error, but

Php - Pdo Ssh Tunnel

孤街浪徒 提交于 2019-12-24 02:59:15
问题 right now i am creating a ssh tunnel, so i can connect to my remote database, but for some reason the connection is still refusing... my script: try { $host = 'remote host'; $sshuser = 'ssh user'; $sshpass = 'ssh password'; $dbuser = 'db user'; $dbpass = 'db user'; $dbname = 'db name'; shell_exec("ssh -p$sshpass ssh -o StrictHostKeyChecking=no -f -L 3307:127.0.0.1:3306 $sshuser@$host"); $dbh = new PDO('mysql:host=127.0.0.1;port=3307;dbname=' .$dbname. '', $dbuser, $dbpass); $sth = $dbh-

Getting internet connection in android emulator

∥☆過路亽.° 提交于 2019-12-24 02:13:36
问题 I have a desktop pc with wifi connection.My ip address is 192.168.12.95 and gateway is 192.168.10.10 .But i am not getting internet connection in the android emulator.That is i can not able to acess internate. I have also try with " emulator -avd wbut -http-proxy 192.168.10.10:3128 " this command. But sometimes i get the connection in the emulator without doing anything. Can someone please tell me how can i get internet connection in my android emulator ? 回答1: Click F8 key after starting