Results 1 to 4 of 4

Thread: Problem with zeroconf on OpenSuse 12.3

  1. #1
    Join Date
    Oct 2011
    Location
    Norway
    Posts
    21

    Default Problem with zeroconf on OpenSuse 12.3

    Hi All,

    I have a Java application (JMRI JMRI: A Java Model Railroad Interface ) that provides a service to Android clients. I have problems getting the application to advertise its service. Messages from the console are included at the bottom of this post. The Norwegian part of it means "Name or service unknown".
    This part of JMRI used to work when i had Ubuntu on my machine, so I assume that there is a problem with my OpenSuse installation. According to yast the two services avahi-deamon and avahi-dnsconfd are running. Can anyone help with this?

    Regards,
    Bjorn


    17269 zeroconf.ZeroConfService WARN - Unable to create JmDNS with error: linux-ytc9.site: linux-ytc9.site: Navn eller tjeneste ukjent [Thread-18]
    17270 ptionhandler.UncaughtExceptionHandler ERROR - Unhandled Exception: java.lang.NullPointerException [Thread-18]
    java.lang.NullPointerException
    at jmri.util.zeroconf.ZeroConfService.publish(ZeroConfService.java:206)
    at jmri.jmrit.withrottle.UserInterface.listen(UserInterface.java:267)
    at jmri.jmrit.withrottle.ServerThread.run(UserInterface.java:428)

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,264
    Blog Entries
    2

    Default Re: Problem with zeroconf on OpenSuse 12.3

    If I were to guess (and there's plenty of guessing based on the little you posted)

    As the error suggests, the code is expecting a namespace, and more specifically a hardcoded external URL provided by DNS or a Hosts file.
    The URL (if I'm guessing right) is unresolved.

    Conceivably, if the namespace isn't "external" provided by DNS or Hosts file, then you have an internal coding problem or a missing reference/dependency.

    HTH,
    TSU

  3. #3
    Join Date
    Oct 2011
    Location
    Norway
    Posts
    21

    Default Re: Problem with zeroconf on OpenSuse 12.3

    Quote Originally Posted by tsu2 View Post
    If I were to guess (and there's plenty of guessing based on the little you posted)

    As the error suggests, the code is expecting a namespace, and more specifically a hardcoded external URL provided by DNS or a Hosts file.
    The URL (if I'm guessing right) is unresolved.

    Conceivably, if the namespace isn't "external" provided by DNS or Hosts file, then you have an internal coding problem or a missing reference/dependency.

    HTH,
    TSU
    Thanks TSU,
    linux-ytc9.site is the host name of my machine. To me it looks like the java application cannot find the IP-address of my machine.
    Shouldn't I be able to ping my own machine by its hostname? here is what I get:

    linux-ytc9:/home/bjorn # hostname
    linux-ytc9.site
    linux-ytc9:/home/bjorn # ping linux-ytc9.site
    ping: unknown host linux-ytc9.site
    linux-ytc9:/home/bjorn #


    Regards,
    Bjorn

  4. #4
    Join Date
    Oct 2011
    Location
    Norway
    Posts
    21

    Default Re: Problem with zeroconf on OpenSuse 12.3

    Just an update TSU: I added the hostname to the /etc/hosts file like this:
    127.0.0.1 localhost linux-ytc9.site


    It seems to work now,but is this a correct use of the hosts file?
    -Bjorn

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •