Error loading custom translations

Hello, I'm having problems loading custom translation files in Youtrack 2018-2. During initialization it appears to load the translation successfull:

1:09:52,825 INFO  [@init servlet   ] [MessagesContainer             ] [init] Default locale messages loaded
11:09:52,860 INFO  [@init servlet   ] [MessagesContainer             ] [init] Loaded messages for language Deutsch
11:09:52,891 INFO  [@init servlet   ] [MessagesContainer             ] [init] Loaded messages for language Español
11:09:52,926 INFO  [@init servlet   ] [MessagesContainer             ] [init] Loaded messages for language Français
11:09:52,968 INFO  [@init servlet   ] [MessagesContainer             ] [init] Loaded messages for language Русский
11:09:52,999 INFO  [@init servlet   ] [MessagesContainer             ] [init] Loaded messages for language 日本語
11:09:52,999 INFO  [@init servlet   ] [MessagesContainer             ] [init] Loading custom messages for language pl_PL...
11:09:53,019 INFO  [@init servlet   ] [MessagesContainer             ] [init] pl_PL is new language
11:09:53,040 INFO  [@init servlet   ] [MessagesContainer             ] [init] Loading custom messages for language pt_BR...
11:09:53,053 INFO  [@init servlet   ] [MessagesContainer             ] [init] pt_BR is new language

In the user preferences i can see both languages (however their names are not appearing correctly, as the default languages)

However if I select on of the custom languages i get the following error on log and the language reaming in English.

11:14:20,775 ERROR [@qtp789784191-40] [CustomTranslationsResource    ] [anderson@127.0.0.1] Failed to open stream to translations for language pt
javax.ws.rs.NotFoundException: Cannot find translation for pt language.
    at jetbrains.youtrack.localization.main.CustomTranslationsResource.getCustomTranslationInputStream(CustomTranslationsResource.kt:70) ~[youtrack-localization-2018.2.jar:?]
    at jetbrains.youtrack.localization.main.CustomTranslationsResource.getLangPartBuildNumber(CustomTranslationsResource.kt:45) [youtrack-localization-2018.2.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
    at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) [jersey-common-2.22.2.jar:?]
    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) [jersey-common-2.22.2.jar:?]
    at org.glassfish.jersey.internal.Errors.process(Errors.java:315) [jersey-common-2.22.2.jar:?]
    at org.glassfish.jersey.internal.Errors.process(Errors.java:297) [jersey-common-2.22.2.jar:?]
    at org.glassfish.jersey.internal.Errors.process(Errors.java:267) [jersey-common-2.22.2.jar:?]
    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) [jersey-common-2.22.2.jar:?]
    at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) [jersey-server-2.22.2.jar:?]
    at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) [jersey-container-servlet-core-2.22.2.jar:?]
    at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) [jersey-container-servlet-core-2.22.2.jar:?]
    at jetbrains.mps.webr.rpc.rest.provider.misc.DefaultRestRequestHandler.handle(DefaultRestRequestHandler.java:207) [jetbrains.mps.webr.rpc.rest.provider-3428.jar:?]
    at jetbrains.mps.webr.runtime.requestProcessor.RestRequestProcessor.processRequest(RestRequestProcessor.java:47) [jetbrains.mps.webr.runtime-3428.jar:?]
    at jetbrains.mps.webr.runtime.servlet.MainServlet.processRequest(MainServlet.java:225) [jetbrains.mps.webr.runtime-3428.jar:?]
    at jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:141) [jetbrains.mps.webr.runtime-3428.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:695) [javax.servlet-api-3.1.0.jar:3.1.0]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at jetbrains.youtrack.webapp.filters.RootGoFilter.doFilter(RootGoFilter.kt:53) [youtrack-webapp-2018.2.jar:?]
    at jetbrains.youtrack.webapp.filters.FilterAdapter.doFilter(FilterAdapter.kt:25) [youtrack-webapp-2018.2.jar:?]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at jetbrains.youtrack.webapp.filters.NewUIFilter.doFilter(NewUIFilter.kt:47) [youtrack-webapp-2018.2.jar:?]
    at jetbrains.youtrack.webapp.filters.FilterAdapter.doFilter(FilterAdapter.kt:25) [youtrack-webapp-2018.2.jar:?]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at jetbrains.youtrack.webapp.filters.SetThreadLocalPrincipalFilter.doFilter(ThreadLocalPrincipalFilters.kt:19) [youtrack-webapp-2018.2.jar:?]
    at jetbrains.youtrack.webapp.filters.FilterAdapter.doFilter(FilterAdapter.kt:25) [youtrack-webapp-2018.2.jar:?]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at jetbrains.youtrack.webapp.filters.WebrSessionAuthenticationFilter.doFilter(WebrSessionAuthenticationFilter.kt:36) [youtrack-webapp-2018.2.jar:?]
    at jetbrains.youtrack.webapp.filters.FilterAdapter.doFilter(FilterAdapter.kt:25) [youtrack-webapp-2018.2.jar:?]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25) [jetbrains.mps.webr.runtime-3428.jar:?]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:127) [jetty-continuation-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at jetbrains.youtrack.webapp.filters.SecurityResponseHeadersFilter.doFilter(SecurityResponseHeadersFilter.kt:18) [youtrack-webapp-2018.2.jar:?]
    at jetbrains.youtrack.webapp.filters.FilterAdapter.doFilter(FilterAdapter.kt:25) [youtrack-webapp-2018.2.jar:?]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:493) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [jetty-security-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [jetty-servlet-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.Server.handle(Server.java:534) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [jetty-server-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [jetty-io-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [jetty-io-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [jetty-io-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [jetty-util-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [jetty-util-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [jetty-util-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [jetty-util-9.3.20.v20170531.jar:9.3.20.v20170531]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [jetty-util-9.3.20.v20170531.jar:9.3.20.v20170531]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]

The directory structure for the custom languages look like this:

l10n/
  pt_BR/
    all_pt.properties
dynamic_pt.properties
PredefinedFields_pt.properties
notification_templates/
...
pl_PL/
...   supportedLocales
.xml

And on the last line of the youtrack.jvmoptions i have the following command: -Djetbrains.mps.webr.i18n.custom-translations=/home/anderson/Downloads/youtrack-2018.2.43142/l10n/

For tests sake, everything inside l10n is chmod 777

 

2 comments
Comment actions Permalink
Official comment

Hello,

Could you please create a support request (https://youtrack-support.jetbrains.com/hc/en-us/requests/new?ticket_form_id=66282) and attach full Youtrack logs there so we can investigate?

Thank you!

Comment actions Permalink

Thanks for the reply. Just created the request (#1679967).

0

Please sign in to leave a comment.