Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » TranslationBundleLoadingException
TranslationBundleLoadingException [message #1226683] Thu, 02 January 2014 11:41
Daniel Takai is currently offline Daniel Takai
Messages: 1
Registered: January 2014
Junior Member
I'm using JGit in a runtime environment that has a special ClassLoader environment. JGit is invoked within a dedicated thread that has a context URLClassLoader configured.

It fails when trying to load the JGitText bundle:

org.eclipse.jgit.errors.TranslationBundleLoadingException: Loading of translation bundle failed for [org.eclipse.jgit.internal.JGitText, de_CH]
	at org.eclipse.jgit.nls.TranslationBundle.load(TranslationBundle.java:164) ~[na:na]
	at org.eclipse.jgit.nls.GlobalBundleCache.lookupBundle(GlobalBundleCache.java:95) ~[na:na]
	at org.eclipse.jgit.nls.NLS.get(NLS.java:132) ~[na:na]
	at org.eclipse.jgit.nls.NLS.getBundleFor(NLS.java:118) ~[na:na]
	at org.eclipse.jgit.internal.JGitText.get(JGitText.java:59) ~[na:na]
	at org.eclipse.jgit.lib.BatchRefUpdate.execute(BatchRefUpdate.java:256) ~[na:na]


The trace is understandable, since JGitText is not a bundle implementation. I understand that this builds on some fallback logic in ResourceBundle that might not work within a specialized classloader environemnt?

Is there a way to turn the bundle loading off? I tried replacing class files with custom implemenation but all the bundle loading classes (NLS, GlobalBundleCache) are unextensible, so it doesn't work.

Any help appreciated. Thanks.
Previous Topic:Open a repository over URL with JGIT
Next Topic:Is eGit compliant with Eclipse 3.6 ?
Goto Forum:
  


Current Time: Thu Sep 18 23:43:59 GMT 2014

Powered by FUDForum. Page generated in 0.01479 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software