cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: [2.1] AbstractEnvironment - NPE in release(...)
Date Thu, 21 Aug 2008 17:00:24 GMT
On Thu, 2008-08-21 at 09:23 +0200, Thorsten Scherler wrote:
> On Wed, 2008-08-20 at 22:00 +0200, Andreas Hartmann wrote:
> > Hi Thorsten,
> > 
> > Thorsten Scherler schrieb:
> > > I found a bug that just some time happens and I am not sure why.
> > > 
> > > In AbstractEnvironment the method release throw SOMETIMES a NPE:
> > > /**
> > >      * Releases a resolved resource
> > >      */
> > >     public void release(final org.apache.excalibur.source.Source source)
> > > {
> > >         if (null != source) {
> > >             this.sourceResolver.release(source);
> > >         }
> > >     }
> > > 
> > > I have found that under certain circumstances this.sourceResolver is
> > > already null. I do not understand ATM why and when this can happen.
> > 
> > this bug also occured in Lenya. The problem there was that a source was 
> > not properly released by its source factory. Maybe this helps to locate 
> > the issue …
> 
> Yeah, thanks Andreas, I thought I saw it before. ;)
> 
> Will investigate.
> 

Fix that.

Thanks again Andreas.

salu2

> salu2
> 
> > 
> > http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/SiteSourceFactory.java?r1=618208&r2=679424&diff_format=h
> > 
> > (line 164)
> > 
> > -- Andreas
> > 
> > 
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


Mime
View raw message