java.net.SocketException: Permission denied

Ask Ubuntu | user75016 | 5 years 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

    java - Error while running Jetty Server on port 80 as non root user - Ask Ubuntu

    askubuntu.com | 9 months ago
    java.net.SocketException: Permission denied
  2. 0

    java - Error while running Jetty Server on port 80 as non root user - Ask Ubuntu

    askubuntu.com | 1 year ago
    java.net.SocketException: Permission denied
  3. 0

    Error while running Jetty Server on port 80 as non root user

    Ask Ubuntu | 5 years ago | user75016
    java.net.SocketException: Permission denied
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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}
  6. 0

    Gerrit fails to start if init with port # 80. port 8080 works fine.

    Google Groups | 5 years ago | bomjose
    java.lang.IllegalStateException: Cannot start HTTP daemon

  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.bind()
  2. Java RT
    ServerSocketAdaptor.bind
    1. sun.nio.ch.Net.bind(Native Method)
    2. sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
    3. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    3 frames
  3. Jetty
    XmlConfiguration$1.run
    1. org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:182)
    2. org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:311)
    3. org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260)
    4. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
    5. org.eclipse.jetty.server.Server.doStart(Server.java:273)
    6. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
    7. org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1215)
    7 frames
  4. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  5. Jetty
    XmlConfiguration.main
    1. org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1138)
    1 frame