[Yanel-dev] [Fwd: [CC] [yanel-java5] yanel-java5 Build Failed]
Michael Wechner
michael.wechner at wyona.com
Thu Jul 12 17:34:35 CEST 2007
Josias Thöny wrote:
> Michael Wechner wrote:
>
>> Hi
>>
>> Any idea what might be wrong? The Java2 seems to work fine.
>
>
> The error happens when the content-language parameter is null when
> it's passed to the xsl transformer (XMLResource.java line 169).
> Apparently the transformer does not accept null paramters.
> The attached patch fixes the problem for me, but I'm not sure if it's
> the right fix. It just uses "en" as the content language if it's null.
thanks very much. I have applied it and it seems to be good again.
Cheers
Michi
>
> I don't know why this error happens only with java 5...
>
> Josias
>
>
>>
>> Cheers
>>
>> Michi
>
>------------------------------------------------------------------------
>
>Index: src/core/java/org/wyona/yanel/core/Resource.java
>===================================================================
>--- src/core/java/org/wyona/yanel/core/Resource.java (revision 25942)
>+++ src/core/java/org/wyona/yanel/core/Resource.java (working copy)
>@@ -262,7 +262,7 @@
> language = getResourceConfigProperty("language");
> if (language != null) return language;
>
>- return language;
>+ return "en";
> }
>
> /**
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Yanel-development mailing list
>Yanel-development at wyona.com
>http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61
More information about the Yanel-development
mailing list