cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Holz <h...@fiz-chemie.de>
Subject CocoonComponentManager : IndexOutOfBoundsException
Date Mon, 03 Mar 2003 22:18:23 GMT
---------
Hello,

with CVS HEAD I get a IndexOutOfBoundsException sometimes and the page is
not displayed properly.

CocoonComponentManager revision:1.49

java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:508)
        at java.util.ArrayList.remove(ArrayList.java:388)
        at org.apache.cocoon.components.EnvironmentDescription.removeLastSitemapConfiguration(CocoonComponentManager.java:590)
        at org.apache.cocoon.components.CocoonComponentManager.leaveEnvironment(CocoonComponentManager.java:163)
        at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:360)
        at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:220)



        
 void removeLastSitemapConfiguration() {
        this.sitemapConfigurations.remove(this.sitemapConfigurations.size()-1);
  }

Looks like this.sitemapConfigurations.size() is zero. Is this a illegal state or should 
the method check for it?


Martin

--
Martin Holz     <holz@fiz-chemie.de>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin     


Mime
View raw message