java.lang.RuntimeException: java.net.SocketException: Permission denied

GitHub | ymchandra | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    Socket Exception when starting the server

    GitHub | 9 months ago | ymchandra
    java.lang.RuntimeException: java.net.SocketException: Permission denied
  2. 0

    why set port to 80 failed in undertow server? (java)

    Stack Overflow | 2 weeks ago | Nanxi Li
    java.lang.reflect.InvocationTargetException
  3. 0
    samebug tip
    The solution is to run as root using sudo or to set different port in "application.properties" file, e.g. server.port=${port:8181}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Boot running app on port 80

    Stack Overflow | 1 year ago | 5er
    java.net.SocketException: Permission denied
  6. 0

    Play 2.4.x Failed to bind to: /0.0.0.0:443 SocketException: Permission denied

    Stack Overflow | 1 year ago | BalaB
    org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:443

  1. Handemelindo 10 times, last 4 months ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketException

    Permission denied

    at sun.nio.ch.Net.bind0()
  2. Java RT
    ServerSocketAdaptor.bind
    1. sun.nio.ch.Net.bind0(Native Method)
    2. sun.nio.ch.Net.bind(Net.java:433)
    3. sun.nio.ch.Net.bind(Net.java:425)
    4. sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    5. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    5 frames
  3. XNIO NIO Implementation
    NioXnioWorker.createTcpConnectionServer
    1. org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:190)
    1 frame
  4. XNIO API
    XnioWorker.createStreamConnectionServer
    1. org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:243)
    1 frame
  5. Undertow Core
    Undertow.start
    1. io.undertow.Undertow.start(Undertow.java:142)
    1 frame
  6. org.restheart
    Bootstrapper.main
    1. org.restheart.Bootstrapper.startCoreSystem(Bootstrapper.java:570)
    2. org.restheart.Bootstrapper.startServer(Bootstrapper.java:360)
    3. org.restheart.Bootstrapper.main(Bootstrapper.java:137)
    3 frames