[ 
https://issues.apache.org/jira/browse/WICKET-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577172#action_12577172
 ] 

Johan Compagner commented on WICKET-1407:
-----------------------------------------

should we include this into 1.3.2?
This sounds for russians pretty serious

> Russian localization
> --------------------
>
>                 Key: WICKET-1407
>                 URL: https://issues.apache.org/jira/browse/WICKET-1407
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.1
>            Reporter: Juha Alatalo
>            Assignee: Frank Bille Jensen
>         Attachments: russianLocalizationTest.zip
>
>
> Russian language supports seems to be broken. Calling getString() / using 
> resourceModel causes class cast exception (stack trace in the end of the 
> description).
> org\apache\wicket\Application_ru.xml needs to be fixed? (Removing it removes 
> exception and everything seems to be working nicely after that)
> java.lang.ClassCastException: org.apache.xerces.dom.DeferredDocumentTypeImpl 
> cannot be cast to org.w3c.dom.Element     at 
> org.apache.wicket.util.io.Streams.loadFromXml(Streams.java:154)     at 
> org.apache.wicket.resource.PropertiesFactory.loadPropertiesFile(PropertiesFactory.java:193)
>      at 
> org.apache.wicket.resource.PropertiesFactory.loadPropertiesFileAndWatchForChanges(PropertiesFactory.java:283)
>      at 
> org.apache.wicket.resource.PropertiesFactory.load(PropertiesFactory.java:124) 
>     at 
> org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:148)
>      at 
> org.apache.wicket.resource.loader.ClassStringResourceLoader.loadStringResource(ClassStringResourceLoader.java:64)
>      at 
> org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:225)
>      at 
> org.apache.wicket.resource.loader.ClassStringResourceLoader.loadStringResource(ClassStringResourceLoader.java:78)
>      at org.apache.wicket.Localizer.getString(Localizer.java:221)     at 
> org.apache.wicket.Component.getString(Component.java:1802)     at 
> syncrontech.common.gate.GateDateRange.<init>(GateDateRange.java:47) at 
> syncrontech.common.gate.AutoQueryPanel.<init>(AutoQueryPanel.java:39)   at 
> syncrontech.common.gate.GateWebPage.getQueryPanel(GateWebPage.java:245)     
> at syncrontech.common.gate.GateUiPanel.<init>(GateUiPanel.java:19)     at 
> syncrontech.common.gate.GateWebPage.addUiPanel(GateWebPage.java:589)  at 
> syncrontech.common.gate.GateWebPage.<init>(GateWebPage.java:40)  at 
> syncrontech.menu.AboutPage.<init>(AboutPage.java:11)     at 
> java.lang.reflect.Constructor.newInstance(Unknown Source)     at 
> java.lang.Class.newInstance0(Unknown Source)     at 
> java.lang.Class.newInstance(Unknown Source)     at 
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58)
>      at 
> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:262)
>      at 
> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283)
>      at 
> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
>      at 
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90)
>      at 
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166)
>      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) at 
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316)     at 
> org.apache.wicket.RequestCycle.request(RequestCycle.java:493)     at 
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)     
> at 
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)  
>    at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>      at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>      at 
> syncrontech.common.storage.TxnServletFilter.doFilter(TxnServletFilter.java:65)
>      at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>      at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>      at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
>      at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>      at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
>      at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
>     at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
>     at 
> org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:482)
>      at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>      at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)   
>   at 
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
>      at 
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
>      at 
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)     
> at java.lang.Thread.run(Unknown Source) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to