Menu
  • HOME
  • TAGS

Entity Framework connection factory not working

c#,entity-framework,connection,entity-framework-6,sqlanywhere

It is important that the configuration section in the app.config does not exists, because it has a higher priority.

JSch Algorithm negotiation fail

java,connection,sftp,jsch

As you can see, the server offers these ciphers: INFO: kex: server: aes256-cbc,aes192-cbc But JSch accepts only these: INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc There's no common cipher to choose from. Note that JSch does support both aes256-cbc and aes192-cbc, but requires JCE (Java Cryptography Extension) to allow them. You probably do...

Connect to device without internet (wireless)

android,bluetooth,connection,raspberry-pi,tablet

If you make the raspberry pi a wifi access point, the tablet can connect to the pi, however unless the pi has a connection using ethernet you will have no wifi whatsoever. Adafruit has a reasonable guide to actually getting setup. I havent tried it, i had just looked it...

Jboss stop working when user connection over 5000

java,performance,jboss,connection,user

this is not jboss problem , if you want the better performance Use Load Balancer to divide threads between servers.

sharepoint rest service 401 not found

java,url,sharepoint,connection

Add request property and request method solved the problem. InputStream getAuthenticatedResponse(final String urlStr, final String domain,final String userName, final String password) throws IOException { Authenticator.setDefault(new Authenticator() { @Override public PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication( domain + "\\" + userName, password.toCharArray()); } }); URL urlRequest = new URL(urlStr); HttpURLConnection conn...

Cordova App Socket.IO connection not working

javascript,node.js,cordova,socket.io,connection

The problem was that I was using the Ripple Emulator in the browser. It has some crappy settings that restrict domain access. You can change it but I thought screw it and decided to use the Android Emulator to debug instead and it worked fine.

Problems with connecting Hibernate to two databases

java,spring,hibernate,connection,multiple-databases

Your configuration and setup is flawed in multiple ways. First you have both @Autowired on the fields and constructors, they are interfering with each other. Due to the @Primary and these annotations basically only a single SessionFactory is being used. To fix remove @Autowired from your SessionFactory fields. Next you...

Arduino 2006 how to connect to my laptop?

arduino,connection

There's at least two options. First, it's set up to be programmed over Bluetooth. So if you have Bluetooth on your laptop, you can connect the two wirelessly. Pins 0 and 1, per the documentation, are TTL serial transmit and receive pins (which are also used for Bluetooth communications), so...

C# Simple SSH Connection And Send Command

c#,ssh,connection,sbt

Use: SshCommand x = cSSH.RunCommand(textbox3.Text); Without quotes....

Database Offline Sync with Online Server with php [closed]

php,mysql,database,connection,offline

The question is too broad, however I think you shouldn't use PHP for something like this. JAVA or C++ would suit the job better in my humble opinion. However, if you are forced to use PHP I would suggest you to use simple SQLite databases instead of MySQL or whatever....

Unexpected Token: AS (Using UCanAcces.jar)

java,database,connection,token,ucanaccess

Benji, your SQL has to be perfectioned. Not WITH but WHERE: SELECT * FROM tblAntwoorden WHERE ID=1 The message says "an alias declaration is expected", e.g., SELECT * FROM tblAntwoorden AS a WHERE a.ID=1 yet I hope this suggestion from a different timezone helps you to do the next homework....

OSX internet via TimeCapsule - wireless works, wired doesnt

osx,network-programming,connection

• Try giving it a static IP • Change the cord • Delete the network then retry • Plug it into another network

How to monitor the Internet connectivity on two PCs simultaneously?

python,http,cron,connection,monitor

I would suggest just a GET request (you just need a ping to indicate that the PC is on) sent periodically to maybe a Django server and if you query a page on the Django server, it shows a webpage indicating the status of each. In the Django server have...

TcpClient still connected after server closed connection. Why?

c#,tcp,connection,tcpclient

read returns zero if the peer had sent FIN by doing close on its end. read raises an exception ( ECONNRESET ) for RST from peer. Now: An entity will send RST if the recv Q is not empty and it attempts close. The connection is gone for good. And...

Could not recognize my android device on mac

android,osx,connection,usb

I after few research and testing of existing solutions, I found mine, my issue was released while I have installed Android file Transfert for Mac

how do I specify my user name in network to connect to an oracle data base

java,oracle,connection,username

You can connect to Oracle database in network using below command; provided sqlplus is included in path: sqlplus User1/[email protected](DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=1.1.1.1)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=DataBase1))) PFB java program to connect Oracle database in your network: import java.sql.*; class OracleConnect{ public static void main(String args[]){ try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@1.1.1.1:1521:DataBase1","User1","password1");...

Fetch Android files using FTP and Python

android,python,ftp,connection,fetch

ftp = FTP('123.456.7.89:13000', 'username', 'password') The documentation of ftplib suggests that the first argument must be a host, not host:port. This explains also the following error: [Errno 11004] getaddrinfo failed This is an error from the resolver, because it tried to interpret the given name 123.456.7.89:13000 as hostname, IPv4...

web service - SQL connection string

c#,sql-server,web-services,azure,connection

As Paul mentioned in a comment under the question, your connection string is pointing to a local database resource (presumably on your dev machine). Even though you configured your local database server to support remote connections, the address OfficePc\MSSQLSERVER2014 isn't addressable, as that does not equate to a machine address...

Does in-app purchases work in offline mode?

ios,connection,in-app-purchase,offline

In-app purchase need internet connection to communicate with apple server. You can handle internet connection state with https://developer.apple.com/library/ios/samplecode/Reachability/Introduction/Intro.html

How to close incoming ssh connection listed through who?

linux,ssh,connection,close

You can use this: # lsof -i |grep ":ssh" to find all the connections and then you can kill any specific user # kill -9 3330 You can also use the PID returned by who command to kill the user which you dont want....

Delphi Database Connection Using ACCESS and ADO connections

database,delphi,input,connection,ado

You're doing far too much open, do something, close, open. Don't do that, because it's almost certain that is the cause of your problem. If the data is already being displayed, the database is open already. If you want it to keep being displayed, the database has to remain open....

PDO connection object cannot be seen in a call back function

php,mysql,pdo,connection

The $conn object is not visible in the getuserfield function because inside a function you cannot access variables that are defined outside by default. You need to make the variable accessible by using the global keyword: function getuserfield($field){ global $conn; /* ... */ } Although that will solve your problem,...

Can't open connection when shortcut-knitting in RStudio

r,connection,rstudio,knitr

If you only care about a solution under Windows, I believe you need to setInternet2(TRUE) in te Rmd file before you read the file, since it is essentially an HTTPS link, which you cannot read into R by default. A more portable solution is to use the downloader package to...

How to force Apache HttpClient / HttpConnection to absolutely close tcp connection?

java,sockets,connection,apache-httpclient-4.x,forceclose

RequestConfig has helped. Now it looks like all the connections are discarded in specified limits. RequestConfig config= RequestConfig.custom() .setCircularRedirectsAllowed(false) .setConnectionRequestTimeout(4000) .setConnectTimeout(4000) .setMaxRedirects(0) .setRedirectsEnabled(false) .setSocketTimeout(4000) .setStaleConnectionCheckEnabled(true).build(); request.setConfig(config); ...

MySQL Connection | Connection Closure Frequency

c#,mysql,connection,server,close

MySqlConnection instance is not guaranteed to be thread safe. You should avoid using the same MySqlConnection in several threads at the same time. It is recommended to open a new connection per thread and to close it when the work is done. Set Pooling=true; in your connection string for boosts...

MySQL connexion over SSH

mysql,ssh,connection

debug1: Connection to port 52004 forwarding to 127.0.0.1 port 3306 requested. debug1: channel 2: new [direct-tcpip] channel 2: open failed: connect failed: Connection refused The remote ssh server tried to connect to 127.0.0.1 port 3306 in order to service the forward request, but it got a "Connection refused" error. "Connection...

Does main() get paused during signal handling?

c,database,connection,posix,daemon

Signals interrupt process execution; they do not execute in parallel. So if there is only a single thread in the process, it will be suspended while the signal handler is executing. (If the process is multithreaded, only one thread will be interrupted and the others will continue executing.) However, there...

Connection reader

java,io,connection

If you intend to expose the data as a Reader (which is more difficult to consume than just a String), then the 2nd approach gains the benefits of using a Reader - namely limiting amount of memory consumed. You should also specify the character encoding to use. You should check...

Connection parameters in SQL Developer

oracle,connection,database-connection,oracle-sqldeveloper,sqlplus

First of all you can check tnsnames in %ORACLE_HOME%\Network\Admin\tnsnames.ora If there is nothing helpful there - then connect in SQLPlus and do select host_name from v$instance. Port is almost always is 1521, but I don't know where to get it in the open session. If you can't connect on port...

AsyncTask: how to add check on internet connection faults?

android,android-asynctask,connection,timeout,offline

You should check if the String s is null before creating the JSON object in onPostExecute. If not null proceed with whatever you are doing, if null recheck internet connection and retry downloading or anything you want.

Django on AWS EC2 unable to connect, regular Python connects

python,django,amazon-web-services,amazon-ec2,connection

The development server is bound to localhost and not accessible from other machines. You can set the port via a parameter as documented here: https://docs.djangoproject.com/en/1.7/ref/django-admin/#runserver-port-or-address-port . But of cause the best way would be to deploy Django properly: https://docs.djangoproject.com/en/1.7/howto/deployment/...

Can a Chrome extension get information about a connection?

google-chrome,google-chrome-extension,https,connection

You cannot get any information about the TLS connection via the Chrome extension APIs. A few days ago, a popular feature request on Chromium's issue tracker was marked as WontFix because of the complexity of implementing such a feature in Chrome (Issue 107793: Provide information about the TLS connections to...

trying to connect to mysql database

java,mysql,jdbc,connection

First of all you have to register your mysql driver, add this line above the Connection line Class.forName("com.mysql.jdbc.Driver") Hope it helps...

host parameter in mysqli_connect() for online website

php,mysqli,connection

mysqli_connect() has the following syntax: mysqli_connect(hostname, username, password, database) where hostname is localhost usually. Make sure your username and password are correct. If not set otherwise, use root as your username and leave blank for password....

What is the difference between isClose() method and isValid() method in Connection interface?

java,sql,database,connection

The Javadoc is clear enough. isClose() is only guaranteed to return true if the connection was closed by a call to Connection.close(). If the connection was closed due to some errors, isClose() will not necessarily return true. Therefore, if it returns true, you can be sure the connection is closed,...

Geektool internet on/of image

image,osx,connection,status,geektool

You are missing else statement in your if: if curl -f -s http://google.com > /dev/null then cp /Users/mike/Documents/net.png /tmp/connstatus.png else cp /Users/mike/Documents/noNet.png /tmp/connstatus.png fi ...

How to set the timezone region for JDBC Connection and avoid the SqlException timezone region not found?

java,oracle,jdbc,connection,sqlexception

Write this before your connection attempt: TimeZone timeZone = TimeZone.getTimeZone("yourTimeZone"); // e.g. "Europe/Rome" TimeZone.setDefault(timeZone); So the whole code would be: try { TimeZone timeZone = TimeZone.getTimeZone("yourTimeZone"); TimeZone.setDefault(timeZone); Class.forName("oracle.jdbc.OracleDriver"); conn = DriverManager.getConnection("connStr", "myUserName", "myPswd"); ... If this does not work, the problem may be an invalid JDBC driver version....

Why this activity hangs if i add connection to remote json (and then parsing)?

android,json,http,parsing,connection

You have to run network operation using an async class. Async classhas a method which you override called doInBackground which does not run on the UI Thread. private class MyAsyncTask extends AsyncTask<String, String, String>{ @Override protected String doInBackground(String... params) { //Here write your network request //to obtain result instead of...

MongoDB, Docker, Meteor: Connection Refused

mongodb,meteor,connection,docker

When you are running a container it creates its own network which is isolated from host network. So when you are tying to connect to Mongo using "mongodb://127.0.0.1:27017/meteor it searches for MongoDB inside your container. Instead of using 127.0.0.1 use the host ip addresss or hostname. Or if your MongoDB...

Customize error messages in the database with connection

php,connection

You can use different methodes $this->Connect = new mysqli( $Config['mysql']['hostname'], $Config['mysql']['username'], $Config['mysql']['password'], $Config['mysql']['database'], $Config['mysql']['dataport']) or die('The connection fails, check config.php'); or if (!$this->Connection) { die('The connection fails, check config.php'); } I should put the error in the die part too if I was you: die('Connection failed' . mysqli_connect_error()); ...

Calculating the size of utilized Socket Options

sockets,tcp,udp,connection,ip

Why do you think there not an api for determining what socket options have actually been set? There is. getsockopt(). But the local and remote end points are available anyway i don't see how that is relevant. Aside from deriving the socket and manually storing the information This is...

Sending Objects over Java Socket really slow

java,sockets,connection,server

I looked around the web a bit and you are not the only person with this problem. This person also had it, http://stackoverflow.com/questions/4451410/java-socket-performance-bottleneck-where Basically, what you should do is instead of: ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream()); ObjectInputStream ois = new ObjectInputStream(socket.getInputStream()); You should write: ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(socket.getOutputStream()));...

How to reopen socket connection?

java,sockets,connection,client,server

If socket closed connection client should get exception on read/write operation. If client wants to re-new the connection, just implement it. You catch block should create new socket exactly as you are doing in the beginning of your code snippet. Something like the following: while(true) { Socket socket = new...

Coldfusion 9 DSN less Connection MSSQL 2008 Windows Authentication

sql-server,coldfusion,connection,windows-authentication

Found an example here that shows the username and password in the URL. <cfset connection = driverManager .getConnection("jdbc:mysql://localhost:3306/demodb?user=demouser&password=demopass")> Your URL for SQL Server doesn't pass in any credentials, give that a try....

Could not connect to database postgres: FATAL: role“_postgres” does not exist

osx,postgresql,connection,psql

On recent version of OS X and with some installation methods the system user is created with a '_' prepended or appended to 'postgres', so the name of your system user is postgres_ or _postgres in your case, not 'postgres'. I don't use OS X, so I don't know what...

LINQ connection in app.config

.net,linq,connection

NoNoNoNo! If you add it there, it will be overwritten next time you open the *.dbml file. Create a new file. Labeling the class "partial" will allow the two class definitions to be merged during the compile....

C# send data to remote server

c#,connection

There are several options. But what you're looking for is called IPC, or just look here. http://en.wikipedia.org/wiki/Inter-process_communication In my opinion, using RESTful services should get you what you need. I am sorry I cant provide you with more help , but your question can have many answers. Hope I was...

So many persistent connections to the server. Is that the right way?

connection,nat

Is this feasible or at least acceptable? Feasible it certainly is, you mention already two popular apps that do it, so it is very doable in practice. As for acceptable, to start no internet authority (e.g. IETF) has ever said it is unacceptable to have long-lived connections even with...

How can others connect on my AHKsocket winsock server? External IP?

connection,ip,autohotkey,tcp-ip,winsock2

Did you forward the appropriate ports in your router/firewall? The IP should be correct. This was the solution, I did something wrong in my router...

Laravel / Eloquent : change connection and get all

laravel,connection,eloquent

All() is a static function. In this case, use get(): $persons = BoPerson::on('sqlite')->get(); Source: http://laravel.com/docs/4.2/eloquent#basic-usage...

java Connection reset error

java,sockets,connection,datainputstream,dataoutputstream

In your server example, readUTF is only called once on the DataInputStream, even though the client wrote to the DataOutputStream twice. Thus, simply adding str = inp.readUTF(); str = str + " buddy!"; out.writeUTF(str); to your server example, after the last out.writeUTF(str), will solve your problem....

Connection was not closed. Connection's current state is open

c#,connection

You should be using using blocks to help with managing your objects. private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { string connStr = @"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\vicky\Desktop\Gym management system\Fitness_club\vicky.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; string cmdText = "Select * FROM [plan] where [email protected]"; using (SqlConnection con = new SqlConnection(connStr)) using (SqlCommand cmd = con.CreateCommand()) {...

Making a secure connection to a SQL database in php

php,sql,security,connection

Your php open tag in config.php is <? - this is short open tag, which I think is disabled in your config. Your php in config.php is then not interpreted and is shown as is. Change it to regular open tag <?php. Also note that mysql extension is deprecated, you...

ServieConnection Not Working At All Android

android,service,connection

You did not call bind Service: create intent and call bindService @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mServiceConn = new ServiceConnection() { @Override public void onServiceDisconnected(ComponentName name) { mService = null; Toast.makeText(MainActivity.this,"disconnected",Toast.LENGTH_LONG).show(); } @Override public void onServiceConnected(ComponentName name, IBinder service) { mService = IInAppBillingService.Stub.asInterface(service);...

connecting my vb.net app to MySQL database

mysql,vb.net,connection

First of all you're not managing a SQL Database with phpMyAdmin. phpMyAdmin manages mySQL databases instead. Secondly you need to install Connector/Net through this link Note : Please go for version 6.6.7 as they have removed Visual Studio integration from 6.7.7 and above Once the connector is installed, start a...

Should I open a a MySQL Connection every request or always?

mysql,connection

In my experience, establishing connections is unlikely to be a bottleneck for a mysql server (connection overhead is fairly low in mysql). That having been said, reusing existing connections is often an appropriate approach, but it requires some careful considerations: if the database server is temporarily unavailable, the code must...

AFNetworking concurrent Http requests

objective-c,performance,cocoa,connection,httprequest

AFHTTPRequestOperation uses bare bone NSURLConnection. I doubt there is anything you can do to improve server response time from the client side. However, there is a lot to be done on a server side: Just pack the files in a single archive if it's possible. The attached response headers state...

Identification of clients

c#,connection,tcpclient

You can create your custom TcpClient class which will have Id field of type int. Each time a new client connection is made (and so a new instance of TcpClient is available) you have to create a new instance of MyClient and pass it this new TcpClient object. Static counter...

InfoPath 2010 not Returning Data from Access dB

ms-access,network-programming,connection,infopath,multiuser

Ok, finally figured out what was causing the problem (totally feel dumb). Apparently the servers used randomly get backed up, and when they do, the permissions get overwritten. If anyone else runs into this, review the access permissions for the directory and all the files. Thanks Nathan for your advice!

Prestashop custom php file with query

php,include,connection,prestashop,require

Ok, I admit this was a stupid question $hostname = "localhost"; $username = ""; $password = ""; $dbName = ""; mysql_connect($hostname,$username,$password) or die("Cant connect to bd"); mysql_select_db($dbName) or die(mysql_error()); ...

Why my access from my mobile to my computer network doesn't work?

android,mobile,connection

This is a solution that I found to make it works when this trouble happens. It is not technical (or I don't think so) but it works for me and it's the following: I connect my mobile device to the computer via USB. I run my server (in my case...

Cannot establish connection to application listening on 0.0.0.0:8443

connection,netstat

Looks like it is not open in IPtables. Please follow the below link for same. http://serverfault.com/questions/301903/cannot-access-port-80-from-remote-location-but-works-on-local guess it deals with same question....

SSIS Web service task cannot connect to remote server

web-services,azure,ssis,connection

You must specify serviceUrl as http://yourhost/service.asmx?WSDL

TCP Connection using Service

android,service,tcp,connection,client

After reading your clarification: Using IntentService is fine by itself. Note that IntentService creates a worker thread to handle incoming intents. Create your socket when your service is started or lazily the first time you receive an Intent. Don't reconnect/recreate the socket each time your receive a new intent as...

Android, Bluemix Error 401 : You are not authorized

android,connection,database-connection,http-status-code-401,bluemix

Solved. I downloaded the April jars, the most recent ones. That worked....

In Windows driver - app connection, app main() break with error

windows,connection,driver

STOP error 0x3B is SYSTEM_SERVICE_EXCEPTION: The SYSTEM_SERVICE_EXCEPTION bug check has a value of 0x0000003B. This indicates that an exception happened while executing a routine that transitions from non-privileged code to privileged code. This suggests that the exception is not taking place inside your driver's own code (since that is kernel...

NettyIO disconnect Client from Server

java,connection,handler,netty,channel

you seem to be new to network programming in general. I am new to netty so please don't take anything I say as 100% true and especially not anywhere near 100% efficient. so one major basic fact of network programming is that the the client and server are not directly...

How to avoid program freezing when connecting to server

python,connection,whois,pywhois

This method is prone to change (if the underlying library changes), however, you can call internal socket functions to set a timeout for all pythonwhois network calls. For example: TIMEOUT = 5.0 # timeout in seconds pythonwhois.net.socket.setdefaulttimeout(TIMEOUT) pythonwhois.get_whois("example.com") ...

netbeans apache derby connection not working

java,netbeans,connection,derby

Include the JDBC jar for Apache Derby into your classpath.

How can i connect to a system in different lan? [closed]

networking,connection,ip

You have to configure on router or firewall of the network where the ftp server is a NAT or a PAT, in order to map a public IP address to the private address that you obtain with the netstat command. Over than this you have to configure firewall rules on...

Open Connection and Recordset objects to use SQL for sheet to sheet data movement

excel-vba,connection,adodb,recordset

Is the "strConnect" parameter intentionally commented out in objConnection.Open 'strConnect Uncomment that parameter and things will hopefully work edit: also strSQL = "SELECT * FROM [Sheet$3] & ;" is wrong. It should be strSQL = "SELECT * FROM [Sheet3$];" (the $ sign was in the wrong place and there was...

Pass vijava ServiceInstance via rabbitmq or another task queue

connection,vmware,vmware-sdk

That SI is only going to work on that vCenter which created the SI. If thats is not going to be a problem for you then simply place the session id on the bus for your workers to pick up then they should be able to create a new SI...

Sending data from device (Android/iOS) to Server on Computer via Wi-Fi [closed]

android,ios,connection,server

You can use any mobile backend service like Parse.com, Google App engine etc, or check the simplest procedure coded below First of all, request a permission to access network, add following to your manifest: <uses-permission android:name="android.permission.INTERNET" /> Then the easiest way is to use Apache http client bundled with Android:...

HttpClient: How to have only one connection to the server?

java,connection,httpclient,httpresponse

I implemented the suggestion of Robert Rowntree (sorry not sure to properly reference name) by replacing the beginning code with: // Increase max total connection to 200 and increase default max connection per route to 20. // Configure total max or per route limits for persistent connections // that can...

Tell me how to send the Json request

android,json,http,connection

public class JSONParser { static InputStream is = null; static JSONObject jObj = null; static String json = ""; public JSONParser() { } public JSONObject makeHttpRequest(String url, String method, List<NameValuePair> params) { try { if(method == "POST"){ DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); httpPost.setEntity(new UrlEncodedFormEntity(params)); HttpResponse...

C# Mysql Connection must be valid and open

c#,mysql,connection,database-connection

The problem is that you don't store the connection that was returned from your factory property. But don't use a property like a method. Instead use it in this way: using (var con = Services.conn) { Services.conn.Open(); Services.DB_Select("..a short select statement..", con )); //Services.conn.Close(); unnecessary with using } So use...

spring or hibernate connection leak

java,spring,hibernate,connection

The issue is discussed here at large: https://github.com/brettwooldridge/HikariCP/issues/34 To narrow the problem: Try Spring 4 with Hibernate 4 Try another data-source to see if problem persists. ...

Not able to read data from access database

database,vb.net,ms-access,random,connection

Microsoft.Jet.OLEDB.4.0 can be used only to read MDB files (or any extension you like provided that the file is in Access 2003 format). Also OLEDB.4.0 is a 32bit driver. If you compile your application with TargetCPU = AnyCPU AND you run your app on a 64bit system, the driver will...

How to block interconnection of devices in LAN network?

connection,ping,router,lan

For blocking interconnection of devices . A feature is there in router(depend on router company) called Client Isolation . find this feature probably present under wireless settings. Just enable it . BTW which router you are using. ...

Node.js : How to check if mongojs connected successfully?

javascript,node.js,mongodb,connection,mongojs

As you can read in MongoJS docs (https://github.com/mafintosh/mongojs#events), there is one event which you can listen to know when the db is ready: db.on('ready',function() { console.log('database connected'); }); You need to make a variable assignment of the sentence you posted, as I show you below: var db = mongojs.connect(connectionString, collections);...

Hibernate+PostgreSQL “Too Many Connections” error

java,hibernate,postgresql,connection,pool

Hibernate has max connection pool size is 20, but the app seems to be ignored this and throws "Too many connections" error. Double check your use of Hibernate Session Factory: in case your is a web app read this [1] in case your is a standalone app read this...

Reasons why resources in c3p0 cannot get checked out?

java,connection,stack-overflow,connection-pooling,c3p0

So, although it's a reasonable guess, mere pool exhaustion (what happens if you leak or forget to close() Connections) won't lead to the stack overflow. The stack overflow occurs when checkoutResource(...) finds a Connection available to check out, and "preliminarily" checks it out; then something goes wrong, indicating that the...

R readHTMLTable failed to load external entity [duplicate]

xml,r,connection

In the link that I mentioned in the comment, you can find solutions using RCurl and httr package. Here, I provide the solution using rvest package. library(rvest) kk<-html("http://en.wikipedia.org/wiki/List_of_S%26P_500_companies")%>% html_table(fill=TRUE)%>% .[[1]] //table 1 only head(kk) Ticker symbol Security SEC filings GICS Sector GICS Sub Industry Address of Headquarters 1 MMM 3M...

Netty: Using a channel defined in the anymous inner class within another method

java,connection,netty,channel,anonymous-inner-class

The problem is that initChannel(...) is called for each new Channel that was accepted and so calling sendData() after the bind future completes makes no sense.

Connection timeout using standard JSR356 WebSocket client

java,java-ee,websocket,connection,timeout

Unfortunately, this is not exposed by JSR 356 - WebSocket API for Java. You will need to use implementation feature, such as HANDSHAKE_TIMEOUT in Tyrus (reference implementation). Other implementations will most likely have something similar. Seems like there is no ticket about this yet in WEBSOCKET_SPEC, so you can add...

connectionString outside SQL server with App.config file

c#,sql-server,connection,connection-string,app-config

Example connection to outer server: <connectionStrings> <add name="Namespace.Settings.outerSQL" connectionString="Data Source=192.168.0.100\SQLEXPRESS;Initial Catalog=database_name;User ID=user;Password=password"/> </connectionStrings> You need address to remote server and credentials provided (if it's not Windows auth, for which you use "Integrated Security")....

android app crashes on reboot java.net.UnknownHostException: Unable to resolve host

java,android,connection,httpconnection

Do you check network connectivity before create an http request, as this: ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netInfo = cm.getActiveNetworkInfo(); return netInfo != null && netInfo.isConnectedOrConnecting(); ...

Weblogic datasource test connection on startup

testing,connection,datasource,weblogic-10.x

On the Connection Pool tab for the datasource, set the Initial Capacity to 0. This will stop the initial check and the server should start properly.

Why am I able to override some methods from java.sql.Connection and not others

java,sql,import,connection,override

The abort, getNetworkTimeout and getSchema methods were added in Java 7. Perhaps you are using an older version of Java, in which these methods didn't exist, so you can't override them.

Error when attempting to connect to a non-default database in Codeigniter

php,database,codeigniter,connection

Strangely enough I was able to make this all work with a slight modification to my CRUD_model code. By changing this... class CRUD_model extends CI_Model { protected $database = null; protected $_table = null; protected $_primary_key = null; public function __construct() { parent::__construct(); $this->load->database($this->database, TRUE); } To this... class CRUD_model...