Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » TranslationBundleLoadingException
TranslationBundleLoadingException [message #1226683] Thu, 02 January 2014 11:41
Daniel Takai is currently offline Daniel TakaiFriend
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( ~[na:na]
	at org.eclipse.jgit.nls.GlobalBundleCache.lookupBundle( ~[na:na]
	at org.eclipse.jgit.nls.NLS.get( ~[na:na]
	at org.eclipse.jgit.nls.NLS.getBundleFor( ~[na:na]
	at org.eclipse.jgit.internal.JGitText.get( ~[na:na]
	at org.eclipse.jgit.lib.BatchRefUpdate.execute( ~[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: Sun Dec 15 16:49:02 GMT 2019

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

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

Back to the top