java.net.UnknownHostException: dhcppc1: dhcppc1

Server Fault | Jeeba | 6 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    JBoss thrown error looking up local address when starting

    Server Fault | 6 years ago | Jeeba
    java.net.UnknownHostException: dhcppc1: dhcppc1
  2. 0

    JBoss 5.1 GA in OpenSuse

    Google Groups | 8 years ago | JannaB
    java.net.UnknownHostException: linux: linux
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    When kafka creates new consumers, it simply concatenate the name of your VM to generate the consumer id. So, your VM resolves localhost as the name of your VM, not whatever you had set. To solve, add kafka(or the name of VM) plus address to /etc/hosts

  1. nasimk 2 times, last 5 months ago
  2. mortalman7 1 times, last 9 months ago
11 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.UnknownHostException

    dhcppc1: dhcppc1

    at java.net.InetAddress.getLocalHost()
  2. Java RT
    InetAddress.getLocalHost
    1. java.net.InetAddress.getLocalHost(InetAddress.java:1354)
    1 frame
  3. JBoss Application Server System JMX
    ServerInfo.getHostAddress
    1. org.jboss.system.server.ServerInfo.getHostAddress(ServerInfo.java:364)
    1 frame
  4. Java RT
    DelegatingMethodAccessorImpl.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3 frames