Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-587

The proxy sample does not work - results in a NullPointerException

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M1, 2.0.0-M2
    • 2.0.0-M3
    • Example
    • None
    • Windows XP

    Description

      Running the Proxy example I get the following:

      C:\mina-2.0.0-M1\example\bin>java org.apache.mina.example.proxy.Main 12345 www.g
      oogle.com 80
      Listening on port 12345
      May 18, 2008 12:25:15 PM org.apache.mina.example.proxy.AbstractProxyIoHandler me
      ssageReceived
      INFO: GET / HTTP/1.1
      Host: localhost:12345
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/2
      0080404 Firefox/2.0.0.14
      Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
      n;q=0.8,image/png,/;q=0.5
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 300
      Connection: keep-alive

      The proxy does not really work, as the browser is still waiting for a response and hangs. Is this an environment issue?

      Attachments

        Activity

          People

            ted_kods Edouard De Oliveira
            sidda Sidda Eraiah
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: