java.net.SocketException: Address already in use (Listen failed) at java.net.PlainSocketImpl.socketListen(java.base@9-internal/Native Method) at java.net.AbstractPlainSocketImpl.listen(java.base@9-internal/AbstractPlainSocketImpl.java:449) at java.net.ServerSocket.bind(java.base@9-internal/ServerSocket.java:377) at java.net.ServerSocket.<init>(java.base@9-internal/ServerSocket.java:238) at java.net.ServerSocket.<init>(java.base@9-internal/ServerSocket.java:182) at javax.net.ssl.SSLServerSocket.<init>(java.base@9-internal/SSLServerSocket.java:136) at sun.security.ssl.SSLServerSocketImpl.<init>(java.base@9-internal/SSLServerSocketImpl.java:116) at sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(java.base@9-internal/SSLServerSocketFactoryImpl.java:79)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JDK Bug System by Felix Yang, 1 year ago
Address already in use (Listen failed) at java.net.PlainSocketImpl.socketListen(java.base@9-internal/Native Method) at java.net.AbstractPlainSocketImpl.listen(java.base@9-internal/AbstractPlainSocketImpl.java:449) at java.net.ServerSocket.bind
java.net.SocketException: Address already in use (Listen failed) at java.net.PlainSocketImpl.socketListen(java.base@9-internal/Native Method) at java.net.AbstractPlainSocketImpl.listen(java.base@9-internal/AbstractPlainSocketImpl.java:449) at java.net.ServerSocket.bind(java.base@9-internal/ServerSocket.java:377) at java.net.ServerSocket.<init>(java.base@9-internal/ServerSocket.java:238) at java.net.ServerSocket.<init>(java.base@9-internal/ServerSocket.java:182) at javax.net.ssl.SSLServerSocket.<init>(java.base@9-internal/SSLServerSocket.java:136) at sun.security.ssl.SSLServerSocketImpl.<init>(java.base@9-internal/SSLServerSocketImpl.java:116) at sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(java.base@9-internal/SSLServerSocketFactoryImpl.java:79)
at undefined.SessionCacheSizeTests.doServerSide(SessionCacheSizeTests.java:113)
at undefined.SessionCacheSizeTests$1.run(SessionCacheSizeTests.java:446)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.