java.net.UnknownHostException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Problem starting Sun Application server
    via by 807581,
  • I can not create domain
    via by Rodrigo0461,
  • J2EE on win2003 Server
    via by 843833,
  • cannot start  domain in suse 9.3
    via by 843833,
  • Cannot start sun one application server
    via by 807581,
  • db:: 3.43::J2EE.JAR ORIONCLIENT.JAR zj
    via by Unknown author,
  • JBoss 5.1 GA in OpenSuse
    via by JannaB,
    • java.net.UnknownHostException: ajit-d18r738g60: ajit-d18r738g60 at java.net.InetAddress.getLocalHost(InetAddress.java:1308) at com.sun.enterprise.util.net.NetUtils.getCanonicalHostName(NetUtils.java:66) at com.sun.enterprise.util.ASenvPropertyReader.setSystemProperties(ASenvPropertyReader.java:161) at com.sun.enterprise.tools.launcher.ProcessLauncher.buildInternalCommand(ProcessLauncher.java:468) at com.sun.enterprise.tools.launcher.ProcessLauncher.buildCommand(ProcessLauncher.java:404) at com.sun.enterprise.tools.launcher.ProcessLauncher.process(ProcessLauncher.java:204) at com.sun.enterprise.tools.launcher.ProcessLauncher.main(ProcessLauncher.java:128)

    Users with the same issue

    raj76
    2 times, last one,
    nasimk
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    9 more bugmates