com.jcraft.jsch.JSchException: PortForwardingL: local port 127.0.0.1:22231 cannot be bound.

GitHub | ardumont | 1 month ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 59#279159051

    GitHub | 1 month ago | ardumont
    com.jcraft.jsch.JSchException: PortForwardingL: local port 127.0.0.1:22231 cannot be bound.
  2. 0

    jsch :- java.lang.NoClassDefFoundError: Could not initialize class com.jcraft.jsch.PortWatcher

    Stack Overflow | 4 months ago | user2587669
    java.lang.NoClassDefFoundError: Could not initialize class com.jcraft.jsch.PortWatcher
  3. 0

    Repeated NullPointerExceptions

    GitHub | 6 months ago | dtaylor84
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash during/after Connection

    GitHub | 5 months ago | genofire
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference
  6. 0

    SFTP error : com.jcraft.jsch.JSchException: invalid server's version string

    Stack Overflow | 3 years ago | user2500313
    com.jcraft.jsch.JSchException: Session.connect: java.net.SocketException: Connection reset

  1. linxiaolong 1 times, last 4 days ago
  2. Dunmer 1 times, last 2 weeks ago
  3. iridic 1 times, last 4 months ago
  4. jedcua 1 times, last 7 months ago
  5. Justin 2 times, last 8 months ago
27 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.BindException

    Address already in use

    at java.net.PlainSocketImpl.socketBind()
  2. Java RT
    ServerSocket.<init>
    1. java.net.PlainSocketImpl.socketBind(Native Method)
    2. java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:368)
    3. java.net.ServerSocket.bind(ServerSocket.java:377)
    4. java.net.ServerSocket.<init>(ServerSocket.java:237)
    4 frames
  3. JSch
    Session.setPortForwardingL
    1. com.jcraft.jsch.PortWatcher.<init>(PortWatcher.java:150)
    2. com.jcraft.jsch.PortWatcher.addPort$2a866d1d(PortWatcher.java:110)
    3. com.jcraft.jsch.Session.setPortForwardingL(Session.java:1798)
    3 frames
  4. com.ubergeek42.weechat
    AbstractConnection$1.run
    1. com.ubergeek42.weechat.relay.connection.SSHConnection.doConnect(SSHConnection.java:4781)
    2. com.ubergeek42.weechat.relay.connection.AbstractConnection.access$100(AbstractConnection.java:21)
    3. com.ubergeek42.weechat.relay.connection.AbstractConnection$1.run(AbstractConnection.java:52)
    3 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:761)
    1 frame