socketexception

Connections checking in c3p0 pool

我的梦境 提交于 2021-02-06 12:47:07
问题 I'm developing with Java SE application using Hibernate 4 and c3p0 for communication with MariaDB database. It's long running application, waiting for signals from outside, so sometimes database closes my connections after 8 hours of inactivity. I tried to configure c3p0 connections validating but it's not working. Could you help me? Error log (thrown during named query execution): 2014-10-27 08:10:19.062 ERROR [trans] com.example.runnable.T1 - Exception thrown during event processing,

Connections checking in c3p0 pool

我只是一个虾纸丫 提交于 2021-02-06 12:46:26
问题 I'm developing with Java SE application using Hibernate 4 and c3p0 for communication with MariaDB database. It's long running application, waiting for signals from outside, so sometimes database closes my connections after 8 hours of inactivity. I tried to configure c3p0 connections validating but it's not working. Could you help me? Error log (thrown during named query execution): 2014-10-27 08:10:19.062 ERROR [trans] com.example.runnable.T1 - Exception thrown during event processing,

Address family not supported by protocol family - SocketException on a specific computer

橙三吉。 提交于 2020-08-21 06:05:51
问题 In an app which I have programmed, I have a java.net.SocketException on a specific computer: java.net.SocketException: Address family not supported by protocol family: connect This specific computer runs Windows 7 32 Bit and is connected to the internet through Local Area Connection (Ethernet). The app runs correctly on other computers, with Windows 7 and Windows 8, connected through Local Area Connection or through Wi-Fi, so I am actually not sure that the problem is programmatic. I have

Could not get a resource from the pool(SocketTimeoutException:)

孤街醉人 提交于 2020-07-18 08:44:13
问题 I'm running multiple worker threads(around 10) to access the data from the redis Q. For the i'm using infinte timeout for Jedis Client . Jedis jedis = pool.getResource(); jedis.getClient().setTimeoutInfinite(); Still i'm getting the error "Could not get a resource from the pool". The stacktrace is given below. redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool at redis.clients.util.Pool.getResource(Pool.java:22) at Workers.Worker1.met1(Worker1.java

Could not get a resource from the pool(SocketTimeoutException:)

99封情书 提交于 2020-07-18 08:42:11
问题 I'm running multiple worker threads(around 10) to access the data from the redis Q. For the i'm using infinte timeout for Jedis Client . Jedis jedis = pool.getResource(); jedis.getClient().setTimeoutInfinite(); Still i'm getting the error "Could not get a resource from the pool". The stacktrace is given below. redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool at redis.clients.util.Pool.getResource(Pool.java:22) at Workers.Worker1.met1(Worker1.java

java.net.socketException:operation time out when running app on real device

为君一笑 提交于 2020-01-28 11:22:40
问题 this code works fine on emulator, but on real device it gives java.net.SocketException :the operation timed out ive got a php script running on my xampp server. package com.example.new1; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import android.os.AsyncTask; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.TextView; public class

android: java.net.SocketException: Broken pipe LG

狂风中的少年 提交于 2020-01-16 18:18:57
问题 I'm developing an application for Android 2.2 and LG Black devices. When I run the application on my LG device I get the following SocketException, which is never happen on other devices! Broken pipe java.net.SocketException: Broken pipe at org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native Method) at org.apache.harmony.luni.platform.OSNetworkSystem.write(OSNetworkSystem.java:723) at org.apache.harmony.luni.net.PlainSocketImpl.write(PlainSocketImpl.java:578) at org.apache

Exception when running .NET 4.0 application from network share

喜你入骨 提交于 2020-01-14 14:44:27
问题 I have a .NET 4.0 C# console application. The application is deployed to a network file share (which I believe is a Windows 2000 Server file server) like this: \\server\share\Apps\Beta\Group\JobName\JobName.exe The agent machine that will execute the application is a Windows 2008 R2 Server, x64. I use a domain user account to run the application from the command line. When run under a certain account we'll call UserBeta , the application throws the following exception when trying to connect

socket read timed out - should I go for 0 (inifite)

徘徊边缘 提交于 2020-01-06 19:38:32
问题 I'm downloading a big file (say around 100mb) and I'm receiving SocketException: Read timed out every now and then. I'm thinking of raising the socket timeout. Actually, I'm thinking of setting the socket timeout to 0 (infinite) as eventually the sizes that the files that my app will be downloading may even go greater than 300mb, or even greater than 300mb. Is this a good practice? Regarding socket timeout, when does the timeout countdown actually starts? I mean, when a socket timeout occurs,

Openshift: App fails to start after push due to OSError: [Errno 98] Address already in use

拟墨画扇 提交于 2020-01-06 03:37:29
问题 As of yesterday, 3/12/2014 I started getting errors pushing my free Python 3.3, Mongodb, cron app to the Openshift server. There error is OSError: [Errno 98] Address already in use I can get the app to push and run correctly if I do a 'rhc app-force-stop' first then to my push everytime(pain in the butt). It seems like push is no longer stopping the app before the push and restart. Everything was working fine yesterday morning so the issue has cropped up in the last 24 hours. Any comments