RE: java.lang.IndexOutOfBoundsException

2002-11-22 Thread Carsten Ziegeler


 -Original Message-
 From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]

 FYI yesterday morning when I did a CVS update (from the command 
 line ;-) to 
 check the batik.jar, CVS said waiting on lock from cziegeler or 
 something 
 for some other files. Maybe this helps in finding out what happened.
 
I will watch this.

Thanks
Carsten 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: java.lang.IndexOutOfBoundsException

2002-11-22 Thread Jeremy Quinn

On Friday, Nov 22, 2002, at 06:44 Europe/London, Carsten Ziegeler wrote:


Ok, sorry for this - I just committed the missing line.
I don't know why, but my IDE didn't commit the changes yesterday,
although it says that it did. Wired. So, don't rely on tools
and always make sure that everything went as it should have
been.



Many thanks, Carsten, I'm back in business!

regards Jeremy


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




java.lang.IndexOutOfBoundsException

2002-11-21 Thread Gernot Koller
Hi!

Trying to use the current cvs version of cocoon with tomcat version 4.1.12 I 
experience the following problem
After building and installing cocoon
(./build.bat -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp ; 
./build.bat - Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true -
Dinstall.war=C:/ent/jakarta-tomcat-4.1.12/webapps installwar)
and starting tomcat server enterint the URl http://localhost:8080/cocoon/; correctly 
redirects to
http://localhost:8080/cocoon/documents/index.html but then brings an error page 
containing:

type fatal

message Index: -1, Size: 0

description java.lang.IndexOutOfBoundsException: Index: -1, Size: 0

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:491)
at java.util.ArrayList.remove(ArrayList.java:375)
at  
org.apache.cocoon.components.EnvironmentDescription.removeLastSitemapConfiguration(CocoonComponentManager.java:548)
at  
org.apache.cocoon.components.CocoonComponentManager.leaveEnvironment(CocoonComponentManager.java:156)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
at org.apache.cocoon.servlet.CocoonServlet.service
[...]

Directly jumping to one of the samples (e.g. http://localhost:8080/cocoon/samples/ or 
http://localhost:8080/ cocoon/samples/portal-fw/sunspotdemofree-
portal) seems to work.

So my guess is I'm just missing the documentation html files ? Looking in the 
$TOMCAT/webApps/cocoon/ documentation directory actually does not contain an
index.html file, is this correct ?

What am I doing wrong ? Any hints, please ?

thanks,

Gernot.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: java.lang.IndexOutOfBoundsException

2002-11-21 Thread Marcus Crafter
Hi Gernot,

I've located the problem but aren't 100% sure about what the proper fix
is as I think Carsten is still working on the code. I've already
contacted him about the problem so I'm sure it will be fixed soon.

In the meantime you can change the removeLastSitemapConfiguration() 
method in CocoonComponentManager to look like:

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

and it will let you continue working. A proper fix will appear
shortly.

Hope that helps.

Cheers,

Marcus

On Thu, Nov 21, 2002 at 06:52:28PM +0100, Gernot Koller wrote:
 Hi!
 
 Trying to use the current cvs version of cocoon with tomcat version 4.1.12 I 
experience the following problem
 After building and installing cocoon
 (./build.bat -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp ; 
./build.bat - Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true -
 Dinstall.war=C:/ent/jakarta-tomcat-4.1.12/webapps installwar)
 and starting tomcat server enterint the URl http://localhost:8080/cocoon/; 
correctly redirects to
 http://localhost:8080/cocoon/documents/index.html but then brings an error page 
containing:
 
 type fatal
 
 message Index: -1, Size: 0
 
 description java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
 
 sender org.apache.cocoon.servlet.CocoonServlet
 
 source Cocoon servlet
 
 stack-trace
 
 java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
   at java.util.ArrayList.RangeCheck(ArrayList.java:491)
   at java.util.ArrayList.remove(ArrayList.java:375)
   at  
org.apache.cocoon.components.EnvironmentDescription.removeLastSitemapConfiguration(CocoonComponentManager.java:548)
   at  
org.apache.cocoon.components.CocoonComponentManager.leaveEnvironment(CocoonComponentManager.java:156)
   at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)
   at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
   at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
   at org.apache.cocoon.servlet.CocoonServlet.service
   [...]
 
 Directly jumping to one of the samples (e.g. http://localhost:8080/cocoon/samples/ 
or http://localhost:8080/ cocoon/samples/portal-fw/sunspotdemofree-
 portal) seems to work.
 
 So my guess is I'm just missing the documentation html files ? Looking in the 
$TOMCAT/webApps/cocoon/ documentation directory actually does not contain an
 index.html file, is this correct ?
 
 What am I doing wrong ? Any hints, please ?
 
 thanks,
 
 Gernot.
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ :'   60327 Frankfurt Germany
   ' /( 
   \_'
  .
:

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: java.lang.IndexOutOfBoundsException

2002-11-21 Thread Carsten Ziegeler
Ok, sorry for this - I just committed the missing line.
I don't know why, but my IDE didn't commit the changes yesterday,
although it says that it did. Wired. So, don't rely on tools
and always make sure that everything went as it should have
been.

Sorry
Carsten

 -Original Message-
 From: Marcus Crafter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 21, 2002 7:02 PM
 To: [EMAIL PROTECTED]
 Subject: Re: java.lang.IndexOutOfBoundsException
 
 
 Hi Gernot,
 
   I've located the problem but aren't 100% sure about what 
 the proper fix
   is as I think Carsten is still working on the code. I've already
   contacted him about the problem so I'm sure it will be fixed soon.
   
   In the meantime you can change the removeLastSitemapConfiguration() 
   method in CocoonComponentManager to look like:
   
 void removeLastSitemapConfiguration() {
   if (this.sitemapConfigurations.size()  0)
 
 this.sitemapConfigurations.remove(this.sitemapConfigurations.size()-1);
 } 
   
   and it will let you continue working. A proper fix will appear
   shortly.
   
   Hope that helps.
   
   Cheers,
   
   Marcus
   
 On Thu, Nov 21, 2002 at 06:52:28PM +0100, Gernot Koller wrote:
  Hi!
  
  Trying to use the current cvs version of cocoon with tomcat 
 version 4.1.12 I experience the following problem
  After building and installing cocoon
  (./build.bat -Dinclude.webapp.libs=true 
 -Dinclude.scratchpad.libs=true webapp ; ./build.bat - 
 Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true -
  Dinstall.war=C:/ent/jakarta-tomcat-4.1.12/webapps installwar)
  and starting tomcat server enterint the URl 
 http://localhost:8080/cocoon/; correctly redirects to
  http://localhost:8080/cocoon/documents/index.html but then 
 brings an error page containing:
  
  type fatal
  
  message Index: -1, Size: 0
  
  description java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
  
  sender org.apache.cocoon.servlet.CocoonServlet
  
  source Cocoon servlet
  
  stack-trace
  
  java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
  at java.util.ArrayList.RangeCheck(ArrayList.java:491)
  at java.util.ArrayList.remove(ArrayList.java:375)
  at  
 org.apache.cocoon.components.EnvironmentDescription.removeLastSite
 mapConfiguration(CocoonComponentManager.java:548)
  at  
 org.apache.cocoon.components.CocoonComponentManager.leaveEnvironme
 nt(CocoonComponentManager.java:156)
  at 
 org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
 reeProcessor.java:328)
  at 
 org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
 reeProcessor.java:308)
  at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
  at org.apache.cocoon.servlet.CocoonServlet.service
  [...]
  
  Directly jumping to one of the samples (e.g. 
 http://localhost:8080/cocoon/samples/ or http://localhost:8080/ 
 cocoon/samples/portal-fw/sunspotdemofree-
  portal) seems to work.
  
  So my guess is I'm just missing the documentation html files ? 
 Looking in the $TOMCAT/webApps/cocoon/ documentation directory 
 actually does not contain an
  index.html file, is this correct ?
  
  What am I doing wrong ? Any hints, please ?
  
  thanks,
  
  Gernot.
  
  
  
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
  
 
 -- 
 .
  ,,$,  Marcus Crafter
 ;$'  ':Computer Systems Engineer
 $: :   ManageSoft GmbH
  $   o_)$$$:   82-84 Mainzer Landstrasse
  ;$,_/\ :'   60327 Frankfurt Germany
' /( 
\_'
   .
 :
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: java.lang.IndexOutOfBoundsException

2002-11-21 Thread Bertrand Delacretaz
On Friday 22 November 2002 07:44, Carsten Ziegeler wrote:
. . .
 I don't know why, but my IDE didn't commit the changes yesterday,
 although it says that it did

FYI yesterday morning when I did a CVS update (from the command line ;-) to 
check the batik.jar, CVS said waiting on lock from cziegeler or something 
for some other files. Maybe this helps in finding out what happened.

-Bertrand

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]