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

      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.

        Activity

        Hide
        alexlehm Alex Lehmann added a comment -

        https://github.com/alexlehm/jenkins/commit/a2284981bc9571b891cf601aa158c91b7db6ba06
        [Fixed JENKINS-13304] unset root url causes MalformedURLException in DNSMultiCast

        skip mdns initialization if rootURL is not set

        Show
        alexlehm Alex Lehmann added a comment - https://github.com/alexlehm/jenkins/commit/a2284981bc9571b891cf601aa158c91b7db6ba06 [Fixed JENKINS-13304] unset root url causes MalformedURLException in DNSMultiCast skip mdns initialization if rootURL is not set
        Hide
        alexlehm Alex Lehmann added a comment -

        this was fixed by Kohsuke a few days ago independently
        https://github.com/jenkinsci/jenkins/commit/d98926aebb0859dc63a57283df237fff7fb1f76f

        Show
        alexlehm Alex Lehmann added a comment - this was fixed by Kohsuke a few days ago independently https://github.com/jenkinsci/jenkins/commit/d98926aebb0859dc63a57283df237fff7fb1f76f

          People

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

            Dates

            • Created:
              Updated:
              Resolved: