Alexandre Maret wrote:

> Hi alan
>
> I tried to fix this and it seems to work (for me)... but I haven't yet been
> able to fully
> test it. Try to add dce.setFile( file ) near the end of the
> JetspeedDiskCache::getEntry
> method :
>
> DiskCacheEntry getEntry( String url, InputStream is )
>
>         if (dce != null )
>             {
> +                dce.setFile( file );
>                 return dce;
>             } else {
>                 return this.getEntry(url, false);
>             }
>
> Let me know if it works. Note that setFile may have to be called before the
> if( dce != null )... maybe the caching system's author could take a look...
>

I put this in. I also fixed it in some other places (the cache architecture is a
mess right now). I will commit later today, but I'm afraid that authentication
will be broken, as turbine is currently changing this modules and we are trying
to update turbine to a "recent" cvs.

Thanks for your help.

>
>   alex
>
> PS : my JetspeedResources.properties contains the following properties which
> might be relevant:
>
> cache.require.cached=true (that's the default anyway)
> contentfeeds.fetchall=false
>
> ----- Original Message -----
> From: "Alan McAuley" <[EMAIL PROTECTED]>
> To: "JetSpeed" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 11, 2000 10:52 AM
> Subject: Jetspeed Disk Cache. Problem??? Is it broke? Or is it me.
>
> >
> > Hello List
> >
> >
> > We have a problem that could be ours, or a bug.
> >
> > When jetspeed is launched for the FIRST TIME, with an empty cache, it has
> problems getting
> > RSS feeds. Exceptions are logged in jetspeed.log (see end of mail for a
> snippet).
> >
> > However, if jetspeed is restarted (perhaps a couple of times), then the
> feeds appear. It
> > would seem that the disk cache then contains the required information.
> >
> > If you wipe the disk cache (manually) then it breaks again and you have to
> go through the
> > same procedure to get it to work. Can anyone help out here. Is there a
> parameter that can
> > be set to fix this? Can someone at least tell why this is happening?
> >
> > Note the exception mentions the RSS portlet and problems parsing, perhaps
> a non existand
> > file., I dont know.
> >
> > Many thanks
> >
> > Alan McAuley
> >
> > [Tue Oct 10 18:56:51 CEST 2000] -- NOTICE  -- URLFetcher: Found updated
> URL:
> > http://p.moreover.com/cgi-local/page?index_internetinternational+rss
> Modified 971196778000
> > Expires: 0 CLength: 4178
> > [Tue Oct 10 18:56:52 CEST 2000] --  ERROR  -- RSSPortlet:  Couldn't parse
> out XML document
> > -> http://p.moreover.com/cgi-local/page?index_internetinternational+rss
> >  Exception:  java.io.IOException:
> > http://p.moreover.com/cgi-local/page?index_internetinternational+rss: is
> not in cache after
> > forcing
> >  Stack Trace follows:
> >  java.io.IOException:
> http://p.moreover.com/cgi-local/page?index_internetinternational+rss:
> > is not in cache after forcing
> >  at
> >
> org.apache.jetspeed.cache.disk.JetspeedDiskCacheEntry.getInputStream(Jetspee
> dDiskCacheEntry.java:263)
> >
> >  at
> >
> org.apache.jetspeed.cache.disk.JetspeedDiskCacheEntry.getData(JetspeedDiskCa
> cheEntry.java:223)
> >
> >  at
> org.apache.jetspeed.portal.portlets.RSSPortlet.init(RSSPortlet.java:117)
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Archives and Other:  <http://java.apache.org/main/mail.html>
> > Problems?:           [EMAIL PROTECTED]
> >
> >
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to