james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harmeet Bedi" <harm...@kodemuse.com>
Subject Re: HEAD build failure
Date Sat, 08 Feb 2003 00:25:06 GMT
From: "Stephen McConnell" <mcconnell@apache.org>
> 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" <mcconnell@apache.org>
To: "James Developers List" <james-dev@jakarta.apache.org>
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:mcconnell@apache.org
> http://www.osm.net
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org


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


Mime
View raw message