You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org> on 2006/11/08 23:26:53 UTC

[jira] Created: (JAMES-680) Null pointer when starting James on machine without DNS server

Null pointer when starting James on machine without DNS server
--------------------------------------------------------------

                 Key: JAMES-680
                 URL: http://issues.apache.org/jira/browse/JAMES-680
             Project: James
          Issue Type: Bug
          Components: DNSServer
    Affects Versions: Trunk
         Environment: Linux box without DNS server running
            Reporter: Robert Burrell Donkin


Simple coding bug in getHostName results in a NullPointerException and prevents James starting on a linux server without a DNS server running. 

(I know that it's a bad idea to run SMTP (and probably some other mail protocols as well) without DNS being correctly configured but I want to run IMAP only. Should be safe enough without mail records in DNS.)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Assigned: (JAMES-680) Null pointer when starting James on machine without DNS server

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-680?page=all ]

Stefano Bagnara reassigned JAMES-680:
-------------------------------------

    Assignee: Stefano Bagnara

> Null pointer when starting James on machine without DNS server
> --------------------------------------------------------------
>
>                 Key: JAMES-680
>                 URL: http://issues.apache.org/jira/browse/JAMES-680
>             Project: James
>          Issue Type: Bug
>          Components: DNSServer
>    Affects Versions: Trunk
>         Environment: Linux box without DNS server running
>            Reporter: Robert Burrell Donkin
>         Assigned To: Stefano Bagnara
>         Attachments: james-dns.patch
>
>
> Simple coding bug in getHostName results in a NullPointerException and prevents James starting on a linux server without a DNS server running. 
> (I know that it's a bad idea to run SMTP (and probably some other mail protocols as well) without DNS being correctly configured but I want to run IMAP only. Should be safe enough without mail records in DNS.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-680) Null pointer when starting James on machine without DNS server

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-680?page=comments#action_12448302 ] 
            
Stefano Bagnara commented on JAMES-680:
---------------------------------------

Hi Robert,
can you post the full stack of the NPE before the fix?
I think that the method you fixed should never be called with a null parameter, so we should better avoid the call from the caller when the parameter is null...


> Null pointer when starting James on machine without DNS server
> --------------------------------------------------------------
>
>                 Key: JAMES-680
>                 URL: http://issues.apache.org/jira/browse/JAMES-680
>             Project: James
>          Issue Type: Bug
>          Components: DNSServer
>    Affects Versions: Trunk
>         Environment: Linux box without DNS server running
>            Reporter: Robert Burrell Donkin
>         Attachments: james-dns.patch
>
>
> Simple coding bug in getHostName results in a NullPointerException and prevents James starting on a linux server without a DNS server running. 
> (I know that it's a bad idea to run SMTP (and probably some other mail protocols as well) without DNS being correctly configured but I want to run IMAP only. Should be safe enough without mail records in DNS.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Resolved: (JAMES-680) Null pointer when starting James on machine without DNS server

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-680?page=all ]

Stefano Bagnara resolved JAMES-680.
-----------------------------------

    Fix Version/s: Next Major
       Resolution: Fixed

Applied, thanx!

> Null pointer when starting James on machine without DNS server
> --------------------------------------------------------------
>
>                 Key: JAMES-680
>                 URL: http://issues.apache.org/jira/browse/JAMES-680
>             Project: James
>          Issue Type: Bug
>          Components: DNSServer
>    Affects Versions: Trunk
>         Environment: Linux box without DNS server running
>            Reporter: Robert Burrell Donkin
>         Assigned To: Stefano Bagnara
>             Fix For: Next Major
>
>         Attachments: james-dns.patch
>
>
> Simple coding bug in getHostName results in a NullPointerException and prevents James starting on a linux server without a DNS server running. 
> (I know that it's a bad idea to run SMTP (and probably some other mail protocols as well) without DNS being correctly configured but I want to run IMAP only. Should be safe enough without mail records in DNS.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-680) Null pointer when starting James on machine without DNS server

Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-680?page=all ]

Robert Burrell Donkin updated JAMES-680:
----------------------------------------

    Attachment: james-dns.patch

This fix seems reasonable and works for my installation.

> Null pointer when starting James on machine without DNS server
> --------------------------------------------------------------
>
>                 Key: JAMES-680
>                 URL: http://issues.apache.org/jira/browse/JAMES-680
>             Project: James
>          Issue Type: Bug
>          Components: DNSServer
>    Affects Versions: Trunk
>         Environment: Linux box without DNS server running
>            Reporter: Robert Burrell Donkin
>         Attachments: james-dns.patch
>
>
> Simple coding bug in getHostName results in a NullPointerException and prevents James starting on a linux server without a DNS server running. 
> (I know that it's a bad idea to run SMTP (and probably some other mail protocols as well) without DNS being correctly configured but I want to run IMAP only. Should be safe enough without mail records in DNS.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-680) Null pointer when starting James on machine without DNS server

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-680?page=comments#action_12448326 ] 
            
Stefano Bagnara commented on JAMES-680:
---------------------------------------

Ok, I tested it and reproduced the NPE and your patch is the right thing to do!
I'm going to apply it soon. Thank you!

> Null pointer when starting James on machine without DNS server
> --------------------------------------------------------------
>
>                 Key: JAMES-680
>                 URL: http://issues.apache.org/jira/browse/JAMES-680
>             Project: James
>          Issue Type: Bug
>          Components: DNSServer
>    Affects Versions: Trunk
>         Environment: Linux box without DNS server running
>            Reporter: Robert Burrell Donkin
>         Assigned To: Stefano Bagnara
>         Attachments: james-dns.patch
>
>
> Simple coding bug in getHostName results in a NullPointerException and prevents James starting on a linux server without a DNS server running. 
> (I know that it's a bad idea to run SMTP (and probably some other mail protocols as well) without DNS being correctly configured but I want to run IMAP only. Should be safe enough without mail records in DNS.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org