cziegeler 2002/06/26 07:07:22 Modified: src/java/org/apache/cocoon/components/profiler ProfilerData.java src/java/org/apache/cocoon/components/source/impl ContextSourceFactory.java Log: Fixed SourceNotFoundException in context factory and added fixme for profile data Revision Changes Path 1.5 +3 -1 xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilerData.java Index: ProfilerData.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilerData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ProfilerData.java 22 Feb 2002 07:00:11 -0000 1.4 +++ ProfilerData.java 26 Jun 2002 14:07:22 -0000 1.5 @@ -98,6 +98,8 @@ public int indexOf(Object component) { for(int i=0; i<a.size(); i++){ + // FIXME - this does not work if caching is used, as + // a transformer might be compared with an XMLTeePipe if(((Entry)a.get(i)).component == component) return i; } 1.6 +3 -2 xml-cocoon2/src/java/org/apache/cocoon/components/source/impl/ContextSourceFactory.java Index: ContextSourceFactory.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/impl/ContextSourceFactory.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ContextSourceFactory.java 21 May 2002 10:16:20 -0000 1.5 +++ ContextSourceFactory.java 26 Jun 2002 14:07:22 -0000 1.6 @@ -57,6 +57,7 @@ import org.apache.excalibur.source.Source; import org.apache.excalibur.source.SourceException; import org.apache.excalibur.source.SourceFactory; +import org.apache.excalibur.source.SourceNotFoundException; import org.apache.excalibur.source.SourceResolver; import org.apache.avalon.framework.activity.Disposable; import org.apache.avalon.framework.component.ComponentException; @@ -143,7 +144,7 @@ } if ( u == null ) { this.getLogger().error(location + " could not be found. (possible context problem)"); - throw new MalformedURLException(location + " could not be found. (possible context problem)"); + throw new SourceNotFoundException(location + " could not be found. (possible context problem)"); } if (this.resolver == null) {
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]