java.net.BindException: Address already in use

Hibernate JIRA | Sanne Grinovero | 3 years ago
  1. 0

    JGroups was a known problem in this category, but today we even had a testsuite fail because Byteman was clashing with the Byteman port opened by a different test run, I think from ORM. On Jenkins we can use a port-assigning plugin but we would need a concerted effort among each project to actually honor the injected configuration. A different approach would be to fully isolate each build in separate containers. {noformat}java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.bind(ServerSocket.java:330) at org.jboss.byteman.agent.TransformListener.initialize(TransformListener.java:69) at org.jboss.byteman.agent.Retransformer.addTransformListener(Retransformer.java:204) 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:601) at org.jboss.byteman.agent.Main.premain(Main.java:241) at org.jboss.byteman.agent.Main.agentmain(Main.java:260) 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:601) at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382) at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:407){noformat}

    Hibernate JIRA | 3 years ago | Sanne Grinovero
    java.net.BindException: Address already in use
  2. 0

    JGroups was a known problem in this category, but today we even had a testsuite fail because Byteman was clashing with the Byteman port opened by a different test run, I think from ORM. On Jenkins we can use a port-assigning plugin but we would need a concerted effort among each project to actually honor the injected configuration. A different approach would be to fully isolate each build in separate containers. {noformat}java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.bind(ServerSocket.java:330) at org.jboss.byteman.agent.TransformListener.initialize(TransformListener.java:69) at org.jboss.byteman.agent.Retransformer.addTransformListener(Retransformer.java:204) 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:601) at org.jboss.byteman.agent.Main.premain(Main.java:241) at org.jboss.byteman.agent.Main.agentmain(Main.java:260) 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:601) at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382) at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:407){noformat}

    Hibernate JIRA | 3 years ago | Sanne Grinovero
    java.net.BindException: Address already in use
  3. 0

    GitHub comment 20#27858357

    GitHub | 3 years ago | emacarron
    java.net.BindException: Address already in use: JVM_Bind
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Newest KitPVP Errors

    GitHub | 3 years ago | RovertS
    java.net.BindException: Address already in use
  6. 0

    Newest Vanilla Errors

    GitHub | 3 years ago | RovertS
    java.net.BindException: Address already in use

    2 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.bind
      1. java.net.PlainSocketImpl.socketBind(Native Method)
      2. java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
      3. java.net.ServerSocket.bind(ServerSocket.java:376)
      4. java.net.ServerSocket.bind(ServerSocket.java:330)
      4 frames
    3. byteman-agent
      Retransformer.addTransformListener
      1. org.jboss.byteman.agent.TransformListener.initialize(TransformListener.java:69)
      2. org.jboss.byteman.agent.Retransformer.addTransformListener(Retransformer.java:204)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    5. byteman-agent
      Main.agentmain
      1. org.jboss.byteman.agent.Main.premain(Main.java:241)
      2. org.jboss.byteman.agent.Main.agentmain(Main.java:260)
      2 frames
    6. Java RT
      InstrumentationImpl.loadClassAndStartAgent
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      5. sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
      5 frames