Hi,

I use a JRE 1.8 (but it worked before your change) and as I told you, I 
included language files in the CADExtension jar file (I'm pretty sure 
this is the difference between our environments).

I think this is the same problem as for WFS.
We cannot suppose that language files are in separate files.

Michaël


java.lang.ExceptionInInitializerError
     at 
org.openjump.advancedtools.CadExtension.configure(CadExtension.java:40)
     at 
com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:212)
     at 
com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:192)
     at 
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:457)
     at 
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:386)
Caused by: java.util.MissingResourceException: Can't find bundle for 
base name org\openjump\advancedtools\language\cadtoolbox, locale fr_FR
     at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)
     at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)
     at java.util.ResourceBundle.getBundle(ResourceBundle.java:1082)
     at com.vividsolutions.jump.I18N.init(I18N.java:127)
     at com.vividsolutions.jump.I18N.<init>(I18N.java:94)
     at com.vividsolutions.jump.I18N.getInstance(I18N.java:245)
     at com.vividsolutions.jump.I18N.getMessage(I18N.java:416)
     at com.vividsolutions.jump.I18N.getMessage(I18N.java:441)
     at 
org.openjump.advancedtools.language.I18NPlug.getMessage(I18NPlug.java:39)
     at 
org.openjump.advancedtools.language.I18NPlug.getI18N(I18NPlug.java:35)
     at 
org.openjump.advancedtools.EditToolboxCADPlugIn.<clinit>(EditToolboxCADPlugIn.java:78)
     ... 5 more
Caused by: java.lang.NullPointerException
     at java.lang.Class.isAssignableFrom(Native Method)


Le 19/03/2017 à 12:35, [email protected] a écrit :
> hey Mike,
>
> works for me. let me investigate.
>
> 1.
> what's your jre?
>
> 2.
> how do you include the CadExtension in your IDE?
>
> ..ede
>
>
> On 19.03.2017 11:39, Michaël Michaud wrote:
>> Hi Ede,
>>
>> This commit breaks the extension initialization for me. I now get the 
>> following message :
>> (my jar extension is built including language files in the jar)
>>
>>
>> java.lang.ExceptionInInitializerError
>>      at 
>> org.openjump.advancedtools.CadExtension.configure(CadExtension.java:40)
>>      at 
>> com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:212)
>>      at 
>> com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:192)
>>      at 
>> com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:457)
>>      at 
>> com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:386)
>> Caused by: java.util.MissingResourceException: Can't find bundle for base 
>> name org\openjump\advancedtools\language\cadtoolbox, locale fr_FR
>>      at 
>> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)
>>      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)
>>      at java.util.ResourceBundle.getBundle(ResourceBundle.java:1082)
>>      at com.vividsolutions.jump.I18N.init(I18N.java:127)
>>      at com.vividsolutions.jump.I18N.<init>(I18N.java:94)
>>      at com.vividsolutions.jump.I18N.getInstance(I18N.java:245)
>>      at com.vividsolutions.jump.I18N.getMessage(I18N.java:416)
>>      at com.vividsolutions.jump.I18N.getMessage(I18N.java:441)
>>      at 
>> org.openjump.advancedtools.language.I18NPlug.getMessage(I18NPlug.java:39)
>>      at 
>> org.openjump.advancedtools.language.I18NPlug.getI18N(I18NPlug.java:35)
>>      at 
>> org.openjump.advancedtools.EditToolboxCADPlugIn.<clinit>(EditToolboxCADPlugIn.java:78)
>>      ... 5 more
>> Caused by: java.lang.NullPointerException
>>      at java.lang.Class.isAssignableFrom(Native Method)
>>      at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2644)
>>      at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1501)
>>      at java.util.ResourceBundle.findBundle(ResourceBundle.java:1465)
>>      at java.util.ResourceBundle.findBundle(ResourceBundle.java:1419)
>>      at java.util.ResourceBundle.findBundle(ResourceBundle.java:1419)
>>      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1361)
>>      ... 14 more
>>
>>
>>
>>
>> -------- Message transféré --------
>> Sujet :     [JPP-Devel] SVN: [5384] 
>> plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ 
>> language/I18NPlug.java
>> Date :     Sat, 18 Mar 2017 15:47:07 +0000
>> De :     [email protected]
>> Répondre à :     OpenJump develop and use 
>> <[email protected]>
>> Pour :     [email protected]
>>
>>
>>
>> Revision: 5384
>>            http://sourceforge.net/p/jump-pilot/code/5384
>> Author:   edso
>> Date:     2017-03-18 15:47:07 +0000 (Sat, 18 Mar 2017)
>> Log Message:
>> -----------
>> readd license
>> refine static I18N usage
>>
>> Modified Paths:
>> --------------
>>      
>> plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/language/I18NPlug.java
>>
>> Modified: 
>> plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/language/I18NPlug.java
>> ===================================================================
>> --- 
>> plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/language/I18NPlug.java
>>     2017-03-18 15:30:40 UTC (rev 5383)
>> +++ 
>> plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/language/I18NPlug.java
>>     2017-03-18 15:47:07 UTC (rev 5384)
>> @@ -1,7 +1,26 @@
>> +/*
>> + * This program is free software; you can redistribute it and/or
>> + * modify it under the terms of the GNU General Public License
>> + * as published by the Free Software Foundation; either version 2
>> + * of the License, or (at your option) any later version.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program; if not, write to the Free Software
>> + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 
>> USA.
>> + *
>> + * For more information, contact:
>> + *
>> + * [email protected]
>> + * http://sourceforge.net/projects/jump-pilot
>> + */
>>   package org.openjump.advancedtools.language;
>>   
>>   import java.io.File;
>> -
>>   import com.vividsolutions.jump.I18N;
>>   
>>   /**
>> @@ -10,14 +29,13 @@
>>    *
>>    */
>>   public class I18NPlug {
>> -    private static I18N i18n = I18N.getInstance(new 
>> File("org/openjump/advancedtools/language/cadtoolbox"));
>> +    private static File path = new 
>> File("org/openjump/advancedtools/language/cadtoolbox");
>>   
>>       public static String getI18N(String key) {
>> -        return i18n.getText(key);
>> +        return getMessage(key);
>>       }
>>   
>> -    public static String getMessage(String label, Object[] objects) {
>> -        return i18n.getMessage(label, objects);
>> +    public static String getMessage(String label, final Object... objects) {
>> +        return I18N.getMessage(path, label, objects);
>>       }
>> -
>>   }
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Jump-pilot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to