Mysterious "java.net.SocketException: Socket closed"
by Galder Zamarreño
Hi all,
Re: https://issues.jboss.org/browse/ISPN-5506
I'm encountering an odd issue with the Apache Http Commons client when talking to a Netty-based RESTEasy server. I'm randomly getting "java.net.SocketException: Socket closed" when constructing a brand new Socket to talk to the server 1/2ms after starting the process of connecting a new socket [1]. This is happening with both client and server in my MBP, and running our testsuite which uses localhost addresses. The log attached shows log for both the server and client which run on same JVM.
Any ideas could be causing it? If the server was not up, the exception would be different, like connection refused or something like that. I've seen "Socket closed" before but that normally means that a Socket that's been closed is being reused, but that doesn't seem to be the case here since DefaultProtocolSocketFactory always creates a brand new Socket.
I was wondering about using Byteman to trace so particular calls to JDK methods maybe?
Also, this only seems to happen in my OSX env. In our CI env, it seems to run fine all the time.
Cheers,
--
Galder Zamarreño
galder(a)redhat.com
8 years, 11 months
Early Access builds for JDK 9 b66 and JDK 8u60 b18 are available on java.net
by Rory O'Donnell
Hi Galder,
Early Access build for JDK 8u60 b18 <http://jdk8.java.net/download.html>
is available on java.net, summary of changes are listed here.
<http://www.java.net/download/jdk8u60/changes/jdk8u60-b18.html>
As we enter the later phases of development for JDK 8u60, please log any
show stoppers as soon as possible.
Early Access build for JDK 9 b66 <https://jdk9.java.net/download/> is
available on java.net, summary of changes are listed here
<http://www.java.net/download/jdk9/changes/jdk9-b66.html>.
The JDK 9 schedule of record is available on the JDK 9 Project page:
http://openjdk.java.net/projects/jdk9
At https://wiki.openjdk.java.net/display/Adoption/JDK+9+Outreach you can
find a (preliminary) list of other
changes that might affect your project's code in JDK 9, and other things
to consider when testing with JDK 9.
I'd be curious to know if there is anything on that list you'd consider
to have an effect on your project.
Please keep in mind that as JEPs and others changes are integrated into
(or out of) JDK 9, the list will change
over time.
Rgds,Rory
--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland
8 years, 11 months