You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2001/05/23 17:47:56 UTC
[C2]: Problems with i18n samples
Hi,
I solved some problems with the i18n samples which occured
due to the introduction of the new SourceResolver.
But unfortunately a NPE is thrown in the first example (Simple i18n).
It is thrown inside the org.xml.sax.helpers.AttributesImpl class.
The source is the I18nTransformer2, line 363:
>>
int attr_index = temp_attr.getIndex(attr_name);
<<
Currently I see no solution for this as my time is limited.
Can anyone look at this?
Carsten
Open Source Group sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de mailto: cziegeler@sundn.de
================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Problems with i18n samples
Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> Hi,
>
> I solved some problems with the i18n samples which occured
> due to the introduction of the new SourceResolver.
>
> But unfortunately a NPE is thrown in the first example (Simple i18n).
> It is thrown inside the org.xml.sax.helpers.AttributesImpl class.
> The source is the I18nTransformer2, line 363:
> >>
> int attr_index = temp_attr.getIndex(attr_name);
> <<
>
> Currently I see no solution for this as my time is limited.
>
> Can anyone look at this?
The solution is to place Xerces before Xalan in your classpath (simply
rename xerces.jar into a_xerces.jar). It is a bug in
org.xml.sax.helpers.AttributesImpl.class and it was fixed in Xerces, but
Xalan has the same package with that class and there that bug is not fixed
yet.
Without that fixed class the second sample also works incorrectly, although
you can see some response from it (not NPE).
Regards,
Konstantin Piroumian.
>
>
> Carsten
>
> Open Source Group sunShine - b:Integrated
> ================================================================
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de mailto: cziegeler@sundn.de
> ================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [C2]: Problems with i18n samples
Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Carsten Ziegeler a écrit :
>
> Hi,
>
> I solved some problems with the i18n samples which occured
> due to the introduction of the new SourceResolver.
>
> But unfortunately a NPE is thrown in the first example (Simple i18n).
> It is thrown inside the org.xml.sax.helpers.AttributesImpl class.
> The source is the I18nTransformer2, line 363:
> >>
> int attr_index = temp_attr.getIndex(attr_name);
> <<
>
> Currently I see no solution for this as my time is limited.
>
> Can anyone look at this?
>
> Carsten
>
> Open Source Group sunShine - b:Integrated
> ================================================================
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de mailto: cziegeler@sundn.de
> ================================================================
>
Sorry, no time either, but I know some bugs exist in SAX when
manipulating empty attribute lists. I know one for sure : an infinite
loop when using the AttributesImpl(Attributes) constructor with an empty
attributes. I remember having heard of this NPE, but not the exact
condition in which it occurs.
--
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org