You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Arpad Horvath <Ar...@prisma-net.de> on 2004/02/09 13:54:17 UTC

Fetchmail Nullpointer exception

Hi,

I use James 2.2.0a15.

I've got a nullpointer exception in fetchmail while trying to receive a
mail with the headerlines
Return-Path: <>
Message-ID: <5624303.1076072031045.JavaMail.SYSTEM>
Date: Fri, 6 Feb 2004 13:53:51 +0100 (CET)

Configuration parameter
<remoteReceivedHeaderIndex>-1</remoteReceivedHeaderIndex> does not
change the error.

The main problem is that the worker stops an no messages from the POP3
Account ist transfered.

The exception comes from
org.apache.james.fetchmail.messageprocessor.java line 587 as a result of
variable headers whitch is in this case NULL
Actually I have solved the problem by adding an check like
        if (headers != null){
        if (headers.length > 0 && getRemoteReceivedHeaderIndex() > -1)
 		...
        }
        }
Is there a better way to solve the problem?

Thanks


With best regards
Mit freundlichen Grüßen


Dr. Arpad Horvath

Prisma Gesellschaft
für angewandte Informatik mbH
Marktplatz 9
35781 Weilburg

Tel ++49 6471 / 9265-0
Fax ++49 6471 / 9265-55

http://www.prisma-net.de
Mail: arpad.horvath@prisma-net.de



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