connection

WCF Tracing. How I can get the exact reason for closing connection?

久未见 提交于 2019-12-30 04:10:10
问题 In my WCF service, when trying transfer large data I constantly get an error: The underlying connection was closed: The connection was closed unexpectedly I want to know what particular reason invokes this error, so I set up WCF Tracing and can read traces.svclog file. The problem is, that I can see in this file a lot of information about flow of processes, I can see exact time when exception is appeared, but I can't see the exact reason for that. Is it due to MaxReceivedMessageSize or

SoapUI: ConnectException: Connection timed out:

给你一囗甜甜゛ 提交于 2019-12-30 02:33:12
问题 i try to send request via REST. I get success response when using firefox rest-client, but in SoapUI i get exception attached below. How to resolve this issue? Thanks. java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown

Reconnect RMI client after server restart

社会主义新天地 提交于 2019-12-30 02:01:08
问题 I have an RMI server and a desktop RMI client. When I restart the server, I get errors in the client. Is it possible to restart the RMI connection without restarting the client? [EDIT] Here is the stacktrace: java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is: java.net.ConnectException: Connection refused: connect at ...user code... Caused by: java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is: java.net

Good documentation on structure tcp_info [closed]

点点圈 提交于 2019-12-30 01:06:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am working on getting the performance parameters of a tcp connection and one these parameters is the bandwidth. I am intending to use the tcp_info structure supported from linux 2.6 onwards, which holds the meta data about a tcp connection. The information can be retrieved using the getsockopt() function call

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

你离开我真会死。 提交于 2019-12-29 09:14:36
问题 I have the following problem trying to create a Connection object to handle the connection from a command line Java application and an Oracle database. So I have a Main class that contains the main() method, this one: import java.sql.*; import oracle.jdbc.OracleDriver; public class Main { public static void main(String[] args) { System.out.println("Hello World !!!"); String partitaIVA = args[0]; String nomePDF = args[1]; Connection conn = null; Statement stmt = null; try { Class.forName (

SOAP connection with Royal Mail, Could not connect to host

二次信任 提交于 2019-12-29 08:43:42
问题 I'm trying to connect to Royal Mail shipping API, but I'm receiving the famous Could not connect to host. $api_password = "****"; $api_username = "****"; $api_application_id = "****"; $api_service_type = "D"; $api_service_code = "SD1"; $api_service_format = ""; $api_certificate_passphrase = "****"; $time = gmdate('Y-m-d\TH:i:s'); $created = gmdate('Y-m-d\TH:i:s\Z'); $nonce = mt_rand(); $nonce_date_pwd = xyz(copy from sample); $passwordDigest = zyz(copy from sample); $ENCODEDNONCE = zyz(copy

Can I use Wi-Fi Direct and cellular data in an app?

偶尔善良 提交于 2019-12-29 04:57:07
问题 I have two+ Android devices. I would like the devices to send instructions to the other devices using Wi-Fi Direct, while at the same time being able to access the internet via their cellular data connection. It seems that using the Wi-Fi Direct interface is being treated as the primary connection, disabling the other connections, just like how Wi-Fi disables the cellular data connection. How can I programmatically allow both to operate at the same time? Currently the Wi-Fi Direct receiver is

Is it possible to use RMI bidirectional between two classes?

烂漫一生 提交于 2019-12-29 04:43:07
问题 I want to share some information between two classes (A and B), which are running in different java programs. Instead of writing a whole communication protocol I want to use the java build-in rmi classes for that purpose. Currently class B is able to run a method which belongs to class A remotely. Is it somehow possible to use the same "connection" within class A to call a method of class B? Otherwise I probably have to implement a second rmi service ... BR, Markus 回答1: If B implements Remote

Checking Internet connection in Android

耗尽温柔 提交于 2019-12-29 02:00:11
问题 Is there any background task which runs with in application to check for internet connectivity for below scenarios as common ? 1.Start of parsing/fetching data from server 2.In between of parsing/fetching from server Any sample code or links helps me a lot. 回答1: You can start an IntentService or Service and use this: public boolean CheckInternet() { ConnectivityManager connec = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); android.net.NetworkInfo wifi = connec

Netty 4 multiple client

假如想象 提交于 2019-12-28 20:34:33
问题 I need to make the client is able to make many connections. I use Netty 4.0. Unfortunately all existing examples do not show how to create a lot of connections. public class TelnetClient { private Bootstrap b; public TelnetClient() { b = new Bootstrap(); } public void connect(String host, int port) throws Exception { try { b.group(new NioEventLoopGroup()).channel(NioSocketChannel.class).remoteAddress(host, port).handler(new TelnetClientInitializer()); Channel ch = b.connect().sync().channel()