socketexception

WCF: System.Net.SocketException - Only one usage of each socket address (protocol/network address/port) is normally permitted

自古美人都是妖i 提交于 2019-12-17 08:23:13
问题 I have a WCF service and a Web application. Web application makes calls to this WCF service in a continous manner a.k.a polling. In our production environment, I receive this error very rarely. Since, this is an internal activity users were not aware of when this error is thrown. Could not connect to http://localhost/QAService/Service.svc. TCP error code 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted 127.0.0.1:80. ---> System.Net

JavaMail API to iMail — java.net.SocketException: Permission denied: connect

▼魔方 西西 提交于 2019-12-17 03:19:31
问题 I am having trouble getting an application to use the JavaMail API to send out some files in a more automated way than we are used to doing. I am very new to Java and NetBeans, but have programmed in other languages, so please forgive me if I seem a little lost to Java and or NetBeans. I keep getting this error java.net.SocketException: Permission denied: connect when trying to connect to the local mail server. I have connected and sent mail successfully through gmail's SMTP server with the

java.net.SocketTimeoutException: Read timed out

爱⌒轻易说出口 提交于 2019-12-14 03:39:47
问题 I have an application with client server architecture. The client use Java Web Start with Java Swing / AWT and the sert uses HTTP server / Servlet with Tomcat. The communication is made from the serialization of objects, create a ObjectOutput serializes a byte array and send to the server respectively called the ObjectInputStream and deserializes. The application follows communicating correctly to a certain time of concurrency where starting to show error "SocketException read timeout". The

How to solve: Sending the email to the following server failed SocketException: Permission denied: connect

怎甘沉沦 提交于 2019-12-13 07:03:54
问题 I am facing issue while sending mails programmatically using Java. I confirmed from the network team that sending mails through Java is blocked using firewall. but am able to get the response from telnet in my windows command prompt . Please find the details below. Code used to send mail using Javax Mail: public static void main(String[] args) throws MessagingException { String host = "mailhost.xxx"; String to = "abc@xyz.edu"; String from = "cde@xyz.edu"; String subject = "test"; String

SocketException on TcpListener.Start()

て烟熏妆下的殇ゞ 提交于 2019-12-13 04:52:32
问题 I'm trying to make a basic client/server program, but when I start the TcpListener it gives me SocketException:The requested address is not valid in its context. I actually have a method that returns my public IP, and it matches ipconfig results, so the IP address string below can't be the problem. Of course, the IP shown below isn't my real IP for security reasons. I opened the port below for general use. Anyway, Not valid in context is vague, so I'm not sure what that means. Here's my code

C# The attempted operation is not supported for the type of object referenced

…衆ロ難τιáo~ 提交于 2019-12-13 01:24:14
问题 I got this error when I tried to parse an IP address that was in string form. I was using a public dns ip address (4.2.2.2) while testing this (using the System.Net's IPAddress.Parse method). It does the parsing correctly and returns an IPAddress object. However, if I try to access the ScopeId property of this object, a SocketException is thrown with the message given in the title. I really am not able to figure out whats the problem here. When I checked the documentation of IPAddress.ScopeId

I m getting java.net.SocketException: Connection reset exception while running a load test using Jmeter

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 07:52:13
问题 I m running a load test on login page of my application for 100 users out of 100 20 users are passing rest 80 users i m getting the below exception , Kindly help me with the fix java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166) at org.apache.http.impl.io.SocketInputBuffer.fillBuffer

Getting javax.mail.MessagingException and java.net.SocketException

强颜欢笑 提交于 2019-12-12 06:06:06
问题 I am trying to send a email using SMTP of my yahoo(smtp.mail.yahoo.com) account to my gmail account. But am getting following exception. javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketException: Connection reset at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2153) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1912) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638) at javax

SocketException( Connection timed out ) is thrown when i run my android app on a real device

一世执手 提交于 2019-12-12 01:49:00
问题 My android app needs to perform Http requests through HttpClient. i've tested on the emulator and it works fine. but when i do it on a real device with WIFI activated, sometimes ANR occurred, and sometimes SocketException is thrown. it seems that the device is not able to connect the server. logcat print-out is as follows in addition, the package name for the app is "com.tim.wirelessorder" 06-03 09:51:17.803: W/System.err(2307): java.net.SocketException: The operation timed out 06-03 09:51:17

Glassfish server doesnt start ..java.net.SocketException: Permission denied: listen

血红的双手。 提交于 2019-12-12 01:05:24
问题 hi i have installed glassfish on windows 8 . i am trying to start glassfish server but it just doesnt start. Starting domain _______________ Executing command :C:\glassfish4\glassfish\bin\asadmin.bat start-domain domain1 C:\glassfish4\glassfish\bin\asadmin.bat start-domain domain1 Attempting to start domain1.... Please look at the server log for more details..... when i see the logs it prints Shutting down server due to startup exception java.net.SocketException: Permission denied: listen at