Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-19217

jira server doesn't handle a host file entry on the client properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0.1
    • 4.0 - Beta 5
    • Dashboard & Gadgets
    • using the standalone, on jdk 1.5.0_21-b01

      I have my jira server set up on a host at 10.0.2.16, port 9090
      on the machine I am hitting the server from, I have a hosts entry
      10.0.2.16 dev

      when I hit the url:
      http://dev:9090

      I get the following stack trace in the log:
      2009-09-22 09:25:45,760 http-9090-Processor10 ERROR kem 33945x216x1 1udt2o0 http://dev:9090/secure/Dashboard.jspa [renderer.internal.http.HttpClientFetcher] Unable to retrieve response
      java.net.UnknownHostException: dev
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:367)
      at java.net.Socket.connect(Socket.java:524)
      at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
      at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:123)
      at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147)
      at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:101)
      at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:381)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)
      at com.atlassian.gadgets.renderer.internal.http.HttpClientFetcher.fetch(HttpClientFetcher.java:91)
      at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.fetchObjectAndCache(DefaultGadgetSpecFactory.java:124)
      at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.getGadgetSpec(DefaultGadgetSpecFactory.java:89)
      at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.getGadgetSpec(DefaultGadgetSpecFactory.java:72)

      and the dashboards all have the following error:
      Error loading gadget: org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 500

      if I hit the url:
      http://10.0.2.16:9090

      everything works properly

      attached are log files – I shutdown the server, deleted the log files, started it up, hit http://dev:9090, then shut the server back down, copied all the log files into the tar

        1. jiralogs.tar
          270 kB
          Kem Mason

              andreask@atlassian.com Andreas Knecht (Inactive)
              fdd951246e95 Kem Mason
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: