Hello,

I'm using spring boot with eureka and openfeign to communicate between
services A and B.

When a send a request from A to B getting:

2022-12-06 22:30:26.634 ERROR 6352 --- [o-8081-Acceptor]
org.apache.tomcat.util.net.NioEndpoint   : Error setting socket options

java.net.SocketException: Invalid argument
at java.base/sun.nio.ch.Net.setIntOption0(Native Method) ~[na:na]
at java.base/sun.nio.ch.Net.setSocketOption(Net.java:455) ~[na:na]
at java.base/sun.nio.ch.Net.setSocketOption(Net.java:393) ~[na:na]
at
java.base/sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:280)
~[na:na]
at java.base/sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:247)
~[na:na]
at java.base/sun.nio.ch.SocketAdaptor.setSoLinger(SocketAdaptor.java:285)
~[na:na]
at
org.apache.tomcat.util.net.SocketProperties.setProperties(SocketProperties.java:219)
~[tomcat-embed-core-9.0.55.jar:9.0.55]
at
org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(NioEndpoint.java:495)
~[tomcat-embed-core-9.0.55.jar:9.0.55]
at
org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(NioEndpoint.java:78)
~[tomcat-embed-core-9.0.55.jar:9.0.55]
at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:149)
~[tomcat-embed-core-9.0.55.jar:9.0.55]
at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]

I'm using Spring boot 2.5.7 and Spring Cloud 2020.0.3.

java version "17.0.5" 2022-10-18 LTS
Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode,
sharing)

Reply via email to