Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13304

unset root url causes MalformedURLException in DNSMultiCast

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Environment:
      windows xp, jenkins 1.457
    • Similar Issues:

      Description

      when starting jenkins for the first time (or before the config was saved for the first time)
      then startup messages end with an exception when initializing the mdns service.

      01.04.2012 19:29:45 hudson.DNSMultiCast <init>
      WARNUNG: Failed to advertise the service to DNS multi-cast
      java.net.MalformedURLException
      at java.net.URL.<init>(URL.java:601)
      at java.net.URL.<init>(URL.java:464)
      at java.net.URL.<init>(URL.java:413)
      at hudson.DNSMultiCast.<init>(DNSMultiCast.java:45)
      at jenkins.model.Jenkins.<init>(Jenkins.java:787)
      at hudson.model.Hudson.<init>(Hudson.java:81)
      at hudson.model.Hudson.<init>(Hudson.java:77)
      at hudson.WebAppMain$2.run(WebAppMain.java:217)

      this is in fact a null pointer exception, since rootURL is null when the corresponding config file doesn't exist (Mailer config rootURL) if the files haven't been created yet.

      This should check for null and simply disable the mdns server I think.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexlehm Alex Lehmann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: