From: "Stephen McConnell" <[EMAIL PROTECTED]>
> The initialize method in the org.apache.james.fetchmail.FetchScheduler
> contains a reference to the state member "fp" which is underclared.  I'm

The code seems to be
    public void initialize() throws Exception {
        enabled = conf.getAttributeAsBoolean("enabled", false);
        if (enabled) {
            scheduler = (TimeScheduler) compMgr.lookup(TimeScheduler.ROLE);
            Configuration[] fetchConfs = conf.getChildren("fetch");
            for (int i = 0; i < fetchConfs.length; i++) {
                FetchPOP fp = new FetchPOP();
....

in head and 2.1

see
http://cvs.apache.org/viewcvs.cgi/jakarta-james/src/java/org/apache/james/fe
tchpop/FetchScheduler.java?rev=1.7&only_with_tag=HEAD&content-type=text/vnd.
viewcvs-markup

or see
http://cvs.apache.org/viewcvs.cgi/jakarta-james/src/java/org/apache/james/fe
tchpop/FetchScheduler.java?rev=1.4&only_with_tag=branch_2_1_fcs&content-type
=text/vnd.viewcvs-markup

You may have dropped a line or two in the process of patching.
Harmeet

----- Original Message -----
From: "Stephen McConnell" <[EMAIL PROTECTED]>
To: "James Developers List" <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 7:05 PM
Subject: HEAD build failure


>
> In the process of synchronizing my local sources with the latest Jaes
> HEAD, I cam across the following problem:
>
> The initialize method in the org.apache.james.fetchmail.FetchScheduler
> contains a reference to the state member "fp" which is underclared.  I'm
> not sure what is intended here - could someone take care of this or
> suggst the update needed.
>
> Cheers, Steve.
>
>
>     /**
>      * @see
org.apache.avalon.framework.activity.Initializable#initialize()
>      */
>     public void initialize() throws Exception {
>         enabled = conf.getAttributeAsBoolean("enabled", false);
>         if (enabled) {
>             scheduler = (TimeScheduler)
> m_manager.lookup(TimeScheduler.ROLE);
>             Configuration[] fetchConfs = conf.getChildren("fetch");
>             for (int i = 0; i < fetchConfs.length; i++) {
>                 FetchMail fetcher = new FetchMail();
>                 Configuration fetchConf = fetchConfs[i];
>                 String fetchTaskName = fetchConf.getAttribute("name");
>
> fetcher.enableLogging(getLogger().getChildLogger(fetchTaskName));
>                 fetcher.service( m_manager );
>                 fetcher.configure(fetchConf);
>                 Integer interval = new
> Integer(fetchConf.getChild("interval").getValue());
>                 PeriodicTimeTrigger fetchTrigger = new
> PeriodicTimeTrigger(0, interval.intValue());
>                 scheduler.addTrigger(fetchTaskName, fetchTrigger, fp);
> // <---- FP UNDEFINED
>                 theFetchTaskNames.add(fetchTaskName);
>             }
>             getLogger().info("FetchMail Started");
>         } else {
>             getLogger().info("FetchMail Disabled");
>         }
>     }
>
>
> --
>
> Stephen J. McConnell
> mailto:[EMAIL PROTECTED]
> http://www.osm.net
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to