java.net.SocketException: Permission denied

Server Fault | mark | 4 years ago
  1. 0

    authbind + java + ubuntu still fails - why?

    Server Fault | 4 years ago | mark
    java.net.SocketException: Permission denied
  2. 0

    Using the new SSH server feature: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+SSH We accidentally set it to a port below 1024 when the server doesn't run as root. The server becomes unusable, printing this message to the browser when attempting to access it: {code} org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at jenkins.InitReactorRunner.run(InitReactorRunner.java:43) at jenkins.model.Jenkins.executeReactor(Jenkins.java:811) at jenkins.model.Jenkins.<init>(Jenkins.java:732) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:217) Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.InitializerFinder.invoke(InitializerFinder.java:124) at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$5.runTask(Jenkins.java:800) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120) ... 8 more Caused by: java.net.SocketException: Permission denied at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:248) at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:48) at org.apache.mina.core.polling.AbstractPollingIoAcceptor.registerHandles(AbstractPollingIoAcceptor.java:525) at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access$200(AbstractPollingIoAcceptor.java:66) at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:406) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) ... 3 more {code} We had to manually go in and edit the org.jenkinsci.main.modules.sshd.SSHD.xml file to change the port number in order to make the server boot.

    Jenkins JIRA | 5 years ago | Andrew Herron
    org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Using the new SSH server feature: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+SSH We accidentally set it to a port below 1024 when the server doesn't run as root. The server becomes unusable, printing this message to the browser when attempting to access it: {code} org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at jenkins.InitReactorRunner.run(InitReactorRunner.java:43) at jenkins.model.Jenkins.executeReactor(Jenkins.java:811) at jenkins.model.Jenkins.<init>(Jenkins.java:732) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:217) Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.InitializerFinder.invoke(InitializerFinder.java:124) at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$5.runTask(Jenkins.java:800) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120) ... 8 more Caused by: java.net.SocketException: Permission denied at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:248) at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:48) at org.apache.mina.core.polling.AbstractPollingIoAcceptor.registerHandles(AbstractPollingIoAcceptor.java:525) at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access$200(AbstractPollingIoAcceptor.java:66) at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:406) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) ... 3 more {code} We had to manually go in and edit the org.jenkinsci.main.modules.sshd.SSHD.xml file to change the port number in order to make the server boot.

    Jenkins JIRA | 5 years ago | Andrew Herron
    org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
  5. 0

    Terminating Jetty server thread pool if exception on start()

    Stack Overflow | 4 years ago | alyssackwan
    java.net.SocketException: Permission denied

  1. Handemelindo 10 times, last 5 days 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:137)
    3. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
    3 frames
  3. Simple XML
    SocketConnection.connect
    1. org.simpleframework.transport.connect.Acceptor.bind(Acceptor.java:171)
    2. org.simpleframework.transport.connect.Acceptor.<init>(Acceptor.java:88)
    3. org.simpleframework.transport.connect.Listener.<init>(Listener.java:78)
    4. org.simpleframework.transport.connect.ListenerManager.listen(ListenerManager.java:90)
    5. org.simpleframework.transport.connect.ListenerManager.listen(ListenerManager.java:73)
    6. org.simpleframework.transport.connect.SocketConnection.connect(SocketConnection.java:106)
    6 frames
  4. org.restlet.ext
    HttpServerHelper.start
    1. org.restlet.ext.simple.HttpServerHelper.start(HttpServerHelper.java:93)
    1 frame
  5. org.restlet
    Component.start
    1. org.restlet.Server.start(Server.java:585)
    2. org.restlet.Component.startServers(Component.java:601)
    3. org.restlet.Component.start(Component.java:528)
    3 frames
  6. com.shunra.gl
    Main.main
    1. com.shunra.gl.Main.main(Unknown Source)
    1 frame