RE: FW: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException

2003-01-29 Thread Thomas Haselberger
thx joerg,

I tried again to get this work, putting the xalan and xerces jars in jre/lib/endorsed,
in tomcats common/endorsed, trying the lates xalan etc. - no way.

finally switched to j2sdk 1.4.1_01 and all works ok now.

regards,
tom

 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
 Sent: Sonntag, 26. Jänner 2003 03:52
 To: [EMAIL PROTECTED]
 Subject: Re: FW: i18n problem with i18n:attr :
 ArrayIndexOutOfBoundsException
 
 
 Hello Thomas,
 
 once upon the time there was a buggy Xerces version having problem 
 with I18n attributes. We had this problem in the Cocoon 2.0.3 release 
 with (I think) Xerces 2.0. After we upgraded the Xerces version 
 everything works ok again. Lines like 
 org.xml.sax.helpers.AttributesImpl.removeAttribute(Attributes
 Impl.java:439) 
 in your stacktrace let me assume, that it is the same problem 
 you have.
 
 Regards,
 
 Joerg

-
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: FW: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException

2003-01-25 Thread Joerg Heinicke
Hello Thomas,

once upon the time there was a buggy Xerces version having problem 
with I18n attributes. We had this problem in the Cocoon 2.0.3 release 
with (I think) Xerces 2.0. After we upgraded the Xerces version 
everything works ok again. Lines like 
org.xml.sax.helpers.AttributesImpl.removeAttribute(AttributesImpl.java:439) 
in your stacktrace let me assume, that it is the same problem you have.

Regards,

Joerg

Thomas Haselberger wrote:
another try to get feedback for my problem:

-Original Message-
From: Thomas Haselberger 
Sent: Dienstag, 21. Jänner 2003 10:52
To: Cocoon-Users (E-mail)
Subject: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException


I use cocoon 2.0.4 in tomcat 4.1.18 with j2sdk1.4.0_03.

the i18n samples that use i18n:attr work ok, but my i18n transformation throws an 
ArrayIndexOutOfBoundsException.

this is my source xml:
=
?xml version=1.0 encoding=UTF-8?

wml xmlns:i18n=http://apache.org/cocoon/i18n/2.0;
  card i18n:attr=title title=ol id=main
p mode=nowrap
  emi18n:textol/i18n:text/em
  br/a href=new/1/i18n:textnew/i18n:text/a
/p
  /card
/wml
=

this is my sitemap matcher entry:
=
!-- i18n test --
map:match pattern=**i18ntest**
  map:generate src=content/wml_for_i18n.xml/
  map:transform type=i18n label=rmns/
  map:serialize type=xml/
/map:match
=

and that's the error log entry generated:
=
ERROR   (2003-01-21) 10:50.44:761   [sitemap] (/idc/i18ntest/bla) Thread-15/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception during processing of file:/D:/java/jakarta-tomcat-4.1.18/webapps/idc/content/wml_for_i18n.xml: java.lang.ArrayIndexOutOfBoundsException
	at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:214)
	at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
	at org.apache.cocoon.www.sitemap_xmap.matchN400126(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1345)
	at org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1185)
	at org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1128)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at