Since JDK7 setTrafficClass() seems to throw up when not supported on the
underlying platform (or NIO in general?), unlike on JDK5/6:
[08-07 23:09:25] ERROR org.freshvanilla.net.VanillaDataServerSocket: Unexpected
error for running server
java.net.SocketException: Invalid argument: no further information
at sun.nio.ch.Net.setIntOption0(Native Method) ~[na:1.7.0]
at sun.nio.ch.Net.setSocketOption(Net.java:279) ~[na:1.7.0]
at sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175) ~[na:1.7.0]
at sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296) ~[na:1.7.0]
at sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396) ~[na:1.7.0]
at org.freshvanilla.net.VanillaDataSocket.<init>(VanillaDataSocket.java:78) ~[classes/:na]
at org.freshvanilla.net.VanillaDataServerSocket$RmiServerRunnable.run(VanillaDataServerSocket.java:139) ~[classes/:na]
Original issue reported on code.google.com by holger.h...@googlemail.com on 8 Aug 2011 at 7:14
Original issue reported on code.google.com by
holger.h...@googlemail.com
on 8 Aug 2011 at 7:14