davemssavage / essence-rmi

Automatically exported from code.google.com/p/essence-rmi
Apache License 2.0
0 stars 0 forks source link

setTrafficClass fails on JDK7 #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by holger.h...@googlemail.com on 26 Aug 2011 at 9:15