Ah, missed this message. Maybe that's all there is to it. OK. We do check to
see that we are only loading languages that are on the list. So maybe this
is all we need.
On Thu, Oct 9, 2008 at 11:52 PM, Nicolas Vervelle <[EMAIL PROTECTED]>wrote:
>
>
> On Fri, Oct 10, 2008 at 1:00 AM, Robert Hanson <[EMAIL PROTECTED]> wrote:
>
>> However, if a file is missing, then the server is going to send a "no file
>> found" message that is going to cause a Jmol crash.
>>
>
> Not good.
> Since we have the list of languages in GT, we could try to get the file
> only if we know the language.
> That will remove some unecessary calls to the server.
>
>
>
>> That's a real problem, because that code is:
>>
>> try {
>> bundleClass = Class.forName(name_lang);
>> } catch (Exception e) {
>> Logger.error("GT could not find the class " + name_lang);
>> }
>>
>>
>> so why is this error not just being trapped? Is there something about
>> Class.forName() that doesn't allow proper exception handling? Can we use
>> ClassLoader directly to try to check for a class?
>>
>
> ClassFormatError is not an Exception, but an Error. We should catch
> Throwable instead of Exception, that would do the trick.
>
> Nico
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers