[JPP-Devel] Fwd: SVN: [5384] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ language/I18NPlug.java

2017-03-19 Thread Michaël Michaud

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.(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.(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 +
De :jump-pilot-...@lists.sourceforge.net
Répondre à : 	OpenJump develop and use 


Pour :  jump-pilot-devel@lists.sourceforge.net



Revision: 5384
  http://sourceforge.net/p/jump-pilot/code/5384
Author:   edso
Date: 2017-03-18 15:47:07 + (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:
+ *
+ * jump-pilot-devel@lists.sourceforge.net
+ * 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
enga

[JPP-Devel] Language files

2017-03-19 Thread Michaël Michaud
Ede,

I just noticed that WFS extension was broken in 1.10 (I18N problem) but 
has been fixed since then.

You probably fixed the problem but I did not see the commit wher it has 
been repaired.

Michaël


--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Language files

2017-03-19 Thread edgar . soldin
On 19.03.2017 11:55, Michaël Michaud wrote:
> Ede,
> 
> I just noticed that WFS extension was broken in 1.10 (I18N problem) but 
> has been fixed since then.

looks like it.

> 
> You probably fixed the problem but I did not see the commit wher it has 
> been repaired.
> 

well i didn't! just checked the svn commits since 1.10, there is nothing wrt. 
I18N or wfs that got changed.

maybe it only hits releases, but not snapshots? ..ede

--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Fwd: SVN: [5384] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ language/I18NPlug.java

2017-03-19 Thread edgar . soldin
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.(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.(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 +
> De : jump-pilot-...@lists.sourceforge.net
> Répondre à : OpenJump develop and use 
> 
> Pour : jump-pilot-devel@lists.sourceforge.net
> 
> 
> 
> Revision: 5384
>   http://sourceforge.net/p/jump-pilot/code/5384
> Author:   edso
> Date: 2017-03-18 15:47:07 + (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:
> + *
> + * jump-pilot-devel@lists.sourceforge.net
> + * 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);
>

Re: [JPP-Devel] Language files

2017-03-19 Thread Michaël Michaud
Ah, yes, language files are embeded in releases and in separate files in NB.

In 1.10 release, I get the following NPE :

java.util.MissingResourceException: Can't find bundle for base name 
language\wfs\messages, 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.(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 de.latlon.deejump.wfs.i18n.I18N.get(I18N.java:25)
 at de.latlon.deejump.wfs.plugin.WFSPlugIn.i18n(WFSPlugIn.java:328)
 at de.latlon.deejump.wfs.plugin.WFSPlugIn.execute(WFSPlugIn.java:110)
 at 
com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:339)
 at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
 at 
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
 at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
 at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
 at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
 at 
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
 at java.awt.Component.processMouseEvent(Component.java:6535)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
 at java.awt.Component.processEvent(Component.java:6300)
 at java.awt.Container.processEvent(Container.java:2236)
 at java.awt.Component.dispatchEventImpl(Component.java:4891)
 at java.awt.Container.dispatchEventImpl(Container.java:2294)
 at java.awt.Component.dispatchEvent(Component.java:4713)
 at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
 at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
 at java.awt.Container.dispatchEventImpl(Container.java:2280)
 at java.awt.Window.dispatchEventImpl(Window.java:2750)
 at java.awt.Component.dispatchEvent(Component.java:4713)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
 at java.awt.EventQueue.access$500(EventQueue.java:97)
 at java.awt.EventQueue$3.run(EventQueue.java:709)
 at java.awt.EventQueue$3.run(EventQueue.java:703)
 at java.security.AccessController.doPrivileged(Native Method)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
 at java.awt.EventQueue$4.run(EventQueue.java:731)
 at java.awt.EventQueue$4.run(EventQueue.java:729)
 at java.security.AccessController.doPrivileged(Native Method)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
 at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
 at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
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)
 ... 47 more


Le 19/03/2017 à 12:17, edgar.sol...@web.de a écrit :
> On 19.03.2017 11:55, Michaël Michaud wrote:
>> Ede,
>>
>> I just noticed that WFS extension was broken in 1.10 (I18N problem) but
>> has been fixed since then.
> looks like it.
>
>> You probably fixed the problem but I did not see the commit wher it has
>> been repaired.
>>
> well i didn't! just checked the svn commits since 1.10, there is nothing wrt. 
> I18N or wfs that got changed.
>
> maybe it only hits releases, but not snapshots? ..ede
>
> --
> Check out the vibrant tech c

Re: [JPP-Devel] Fwd: SVN: [5384] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ language/I18NPlug.java

2017-03-19 Thread Michaël Michaud
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.(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.(EditToolboxCADPlugIn.java:78)
 ... 5 more
Caused by: java.lang.NullPointerException
 at java.lang.Class.isAssignableFrom(Native Method)


Le 19/03/2017 à 12:35, edgar.sol...@web.de 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.(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.(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 +
>> De : jump-pilot-...@lists.sourceforge.net
>> Répondre à : OpenJump develop and use 
>> 
>> Pour : jump-pilot-devel@lists.sourceforge.net
>>
>>
>>
>> Revision: 5384
>>http://sourceforge.net/p/jump-pilot/code/5384
>> Author:   edso
>> Date: 2017-03-18 15:47:07 + (Sat, 18 Mar 2017)
>> Log Message:
>> ---
>> readd license
>> refine static I18N usage
>>
>> Modified

[JPP-Devel] SVN: [5385] core/trunk/src/com/vividsolutions/jump/I18N.java

2017-03-19 Thread jump-pilot-svn
Revision: 5385
  http://sourceforge.net/p/jump-pilot/code/5385
Author:   edso
Date: 2017-03-19 12:08:00 + (Sun, 19 Mar 2017)
Log Message:
---
try to fix

> java.util.MissingResourceException: Can't find bundle for base name 
> language\wfs\messages, 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.(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 de.latlon.deejump.wfs.i18n.I18N.get(I18N.java:25)
>  at de.latlon.deejump.wfs.plugin.WFSPlugIn.i18n(WFSPlugIn.java:328)
>  at de.latlon.deejump.wfs.plugin.WFSPlugIn.execute(WFSPlugIn.java:110)
...

Modified Paths:
--
core/trunk/src/com/vividsolutions/jump/I18N.java

Modified: core/trunk/src/com/vividsolutions/jump/I18N.java
===
--- core/trunk/src/com/vividsolutions/jump/I18N.java2017-03-18 15:47:07 UTC 
(rev 5384)
+++ core/trunk/src/com/vividsolutions/jump/I18N.java2017-03-19 12:08:00 UTC 
(rev 5385)
@@ -33,11 +33,13 @@
 
 import java.io.File;
 import java.text.MessageFormat;
+import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Hashtable;
 import java.util.Locale;
 import java.util.Map;
+import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 
 import com.vividsolutions.jump.workbench.Logger;
@@ -123,16 +125,35 @@
   private void init() {
 ClassLoader cl = classLoader instanceof ClassLoader ? classLoader
 : getClass().getClassLoader();
-// load resourcebundle accordingly
-resourceBundle = ResourceBundle.getBundle(resourcePath, locale, cl);
-resourceBundle2 = ResourceBundle.getBundle(resourcePath, new Locale(
+// load resourcebundles accordingly
+// selected locale
+resourceBundle = getBundleOrDummy(resourcePath, locale, cl);
+// lang only locale
+resourceBundle2 = getBundleOrDummy(resourcePath, new Locale(
 language()), cl);
+// empty fallback locale (english)
 resourceBundle3 = ResourceBundle.getBundle(resourcePath,
 new Locale("", ""), cl);
-// apply to system
+// apply locale to system
 applyToRuntime(locale);
   }
 
+  private ResourceBundle getBundleOrDummy(String baseName, Locale 
targetLocale, ClassLoader loader){
+  try {
+return ResourceBundle.getBundle(baseName, locale, loader);
+} catch (MissingResourceException e) {
+// return a dummy rb
+return new ResourceBundle(){
+protected Object handleGetObject(String key) {
+return null;
+}
+public Enumeration getKeys() {
+return null;
+}
+};
+}
+  }
+
   // remember missing strings, do not flood log
   private HashSet missing = new HashSet<>();
 


--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Language files

2017-03-19 Thread edgar . soldin
my guess is that java changed the way it handles ResourceBundle.getBundle().. 
running that on a non existing properties file, was no issue until now.

still cannot replicate it. what's your java version?

using the stack below, i wrote a routine that might solve the issue. can you 
please try r5385?

..ede

On 19.03.2017 12:56, Michaël Michaud wrote:
> Ah, yes, language files are embeded in releases and in separate files in NB.
> 
> In 1.10 release, I get the following NPE :
> 
> java.util.MissingResourceException: Can't find bundle for base name 
> language\wfs\messages, 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.(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 de.latlon.deejump.wfs.i18n.I18N.get(I18N.java:25)
>  at de.latlon.deejump.wfs.plugin.WFSPlugIn.i18n(WFSPlugIn.java:328)
>  at de.latlon.deejump.wfs.plugin.WFSPlugIn.execute(WFSPlugIn.java:110)
>  at 
> com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:339)
>  at 
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
>  at 
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
>  at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>  at 
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>  at 
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
>  at 
> java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
>  at java.awt.Component.processMouseEvent(Component.java:6535)
>  at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
>  at java.awt.Component.processEvent(Component.java:6300)
>  at java.awt.Container.processEvent(Container.java:2236)
>  at java.awt.Component.dispatchEventImpl(Component.java:4891)
>  at java.awt.Container.dispatchEventImpl(Container.java:2294)
>  at java.awt.Component.dispatchEvent(Component.java:4713)
>  at 
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
>  at 
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
>  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
>  at java.awt.Container.dispatchEventImpl(Container.java:2280)
>  at java.awt.Window.dispatchEventImpl(Window.java:2750)
>  at java.awt.Component.dispatchEvent(Component.java:4713)
>  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>  at java.awt.EventQueue.access$500(EventQueue.java:97)
>  at java.awt.EventQueue$3.run(EventQueue.java:709)
>  at java.awt.EventQueue$3.run(EventQueue.java:703)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
>  at java.awt.EventQueue$4.run(EventQueue.java:731)
>  at java.awt.EventQueue$4.run(EventQueue.java:729)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
>  at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
>  at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
>  at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
>  at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
>  at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>  at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> 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)
>  ... 47 more
> 
> 
> Le 19/03/2017 à 12:17, edgar.sol...@web.de a écrit :
>> On 19.03.2017 11:55, Michaël Michaud

Re: [JPP-Devel] Fwd: SVN: [5384] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ language/I18NPlug.java

2017-03-19 Thread edgar . soldin
On 19.03.2017 13:05, Michaël Michaud wrote:
> 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).

ic, you built your own extension jar. i actually include a second project into 
the classpath of OJ devel in eclipse and install it via 
workbench-properties.xml into OJ.
  
http://ojwiki.soldin.de/index.php?title=How_to_use_a_plugin_with_a_properties_file_in_ECLIPSE

but still that doesn't explain why it suddenly complains about missing files, 
that are not even supposed to be there. we never had fr_FR language files ;)

> I think this is the same problem as for WFS.

agreed

> We cannot suppose that language files are in separate files.

well, it shouldn't make a difference, as long as the jar/folder are provided in 
the classpath.

..ede

--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [5386] core/trunk/scripts/oj_windows.bat

2017-03-19 Thread jump-pilot-svn
Revision: 5386
  http://sourceforge.net/p/jump-pilot/code/5386
Author:   edso
Date: 2017-03-19 13:43:24 + (Sun, 19 Mar 2017)
Log Message:
---
fix java9 --add-exports is used for "9-ea" jre's exclusively, respecting 
manually set JAVA_HOME jre's now

Modified Paths:
--
core/trunk/scripts/oj_windows.bat

Modified: core/trunk/scripts/oj_windows.bat
===
--- core/trunk/scripts/oj_windows.bat   2017-03-19 12:08:00 UTC (rev 5385)
+++ core/trunk/scripts/oj_windows.bat   2017-03-19 13:43:24 UTC (rev 5386)
@@ -72,17 +72,26 @@
 echo Using '%JAVA_BIN%' found in '%dirname%'
 rem "%dirname%java" -version
 SET concat=
-for /f "tokens=* delims=" %%i in ('"%dirname%java" -version 2^>^&1') do call 
:concat "; " %%i
+for /f "tokens=* delims=" %%i in ('"%dirname%java" -version 2^>^&1') do (
+call :concat "; " %%i
+for /F "tokens=1-3 delims= " %%a in ("%%i") do (
+   rem -- memorize version number string --
+   if "%%a"=="java" ( 
+   if "%%b"=="version" ( 
+   set JAVAVER=%%c
+   )
+   )
+)
+)
 set "JAVA_VERSIONSTRING=%concat%"
+rem -- print java version string all in one line --
 echo %JAVA_VERSIONSTRING%
 
-rem -- get java version (for processing) --
+rem -- strip doublequotes from version number --
+set JAVAVER=%JAVAVER:"=%
 
-for /f "tokens=3" %%g in ('java -version 2^>^&1 ^| findstr /i "version"') do (
-rem @echo Output: %%g
-set JAVAVER=%%g
-)
-set JAVAVER=%JAVAVER:"=%
+rem -- split java version (for processing) --
+
 rem @echo Output: %JAVAVER%
 
 for /f "delims=. tokens=1-3" %%v in ("%JAVAVER%") do (


--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Fwd: SVN: [5384] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ language/I18NPlug.java

2017-03-19 Thread Michaël Michaud

Hi Ede,

I packaged CADExtension as an extension rather than a plugin 
(http://ojwiki.soldin.de/index.php?title=How_to_create_a_jar_plugin_in_ECLIPSE)

Maybe tha'ts why resources files are not managed the same way,

I run a java 64bits-server 1.8.0_60

I'm not sure that OpenJUMP "suddenly" complains as :

WFS has thrown an NPE for a long time (just tested with 1.9.0 and 1.9.1) 
and also with java7

but only in official releases !

In OpenJUMP I18N, there are two ways to initialize I18N : from a File or 
from a name.
If a File is passed as the argument, I think it will look for the file 
and will not find it if it is embeded in the jar.



private static I18N getInstance(final Object categoryPrefixOrPath) {
  I18N instance =instances.get(categoryPrefixOrPath);
  if (instance ==null) {
if (categoryPrefixOrPathinstanceof File)
  instance =new I18N((File) categoryPrefixOrPath);
else instance =new I18N(categoryPrefixOrPath.toString());
instances.put(categoryPrefixOrPath, instance);
  }
  return instance;
}



Le 19/03/2017 à 13:15, edgar.sol...@web.de a écrit :

On 19.03.2017 13:05, Michaël Michaud wrote:

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).

ic, you built your own extension jar. i actually include a second project into 
the classpath of OJ devel in eclipse and install it via 
workbench-properties.xml into OJ.
   
http://ojwiki.soldin.de/index.php?title=How_to_use_a_plugin_with_a_properties_file_in_ECLIPSE

but still that doesn't explain why it suddenly complains about missing files, 
that are not even supposed to be there. we never had fr_FR language files ;)


I think this is the same problem as for WFS.

agreed


We cannot suppose that language files are in separate files.

well, it shouldn't make a difference, as long as the jar/folder are provided in 
the classpath.

..ede

--
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
Jump-pilot-devel@lists.sourceforge.net
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [5387] core/trunk/src/com/vividsolutions/jump/I18N.java

2017-03-19 Thread jump-pilot-svn
Revision: 5387
  http://sourceforge.net/p/jump-pilot/code/5387
Author:   edso
Date: 2017-03-19 15:04:34 + (Sun, 19 Mar 2017)
Log Message:
---
fix ResourceBundle does not like backslash separators when resources are in 
zips/jars

> java.util.MissingResourceException: Can't find bundle for base name 
> language\wfs\messages, 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.(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 de.latlon.deejump.wfs.i18n.I18N.get(I18N.java:25)
>  at de.latlon.deejump.wfs.plugin.WFSPlugIn.i18n(WFSPlugIn.java:328)
>  at de.latlon.deejump.wfs.plugin.WFSPlugIn.execute(WFSPlugIn.java:110)
...

Modified Paths:
--
core/trunk/src/com/vividsolutions/jump/I18N.java

Modified: core/trunk/src/com/vividsolutions/jump/I18N.java
===
--- core/trunk/src/com/vividsolutions/jump/I18N.java2017-03-19 13:43:24 UTC 
(rev 5386)
+++ core/trunk/src/com/vividsolutions/jump/I18N.java2017-03-19 15:04:34 UTC 
(rev 5387)
@@ -93,6 +93,11 @@
*/
   private I18N(final File path) {
 resourcePath = path.toString();
+// make sure the resource path is slash separated, File.toString()
+// returns it as separated by the OS which may contain eg. backslashes
+// on windows, leading to resources not found in zipped jars
+if (File.separatorChar != '/')
+resourcePath = resourcePath.replace(File.separatorChar, '/');
 init();
   }
 
@@ -125,13 +130,15 @@
   private void init() {
 ClassLoader cl = classLoader instanceof ClassLoader ? classLoader
 : getClass().getClassLoader();
-// load resourcebundles accordingly
-// selected locale
-resourceBundle = getBundleOrDummy(resourcePath, locale, cl);
-// lang only locale
-resourceBundle2 = getBundleOrDummy(resourcePath, new Locale(
+// load several resourcebundles to allow overlaying "invalid" translations
+// with an entry from te next sensible translation file
+// order is: lang_Country, lang, default (english)
+// loads selected locale, selected language, empty locale
+resourceBundle = ResourceBundle.getBundle(resourcePath, locale, cl);
+// loads lang only locale or empty
+resourceBundle2 = ResourceBundle.getBundle(resourcePath, new Locale(
 language()), cl);
-// empty fallback locale (english)
+// loads only empty fallback locale (english)
 resourceBundle3 = ResourceBundle.getBundle(resourcePath,
 new Locale("", ""), cl);
 // apply locale to system
@@ -138,22 +145,6 @@
 applyToRuntime(locale);
   }
 
-  private ResourceBundle getBundleOrDummy(String baseName, Locale 
targetLocale, ClassLoader loader){
-  try {
-return ResourceBundle.getBundle(baseName, locale, loader);
-} catch (MissingResourceException e) {
-// return a dummy rb
-return new ResourceBundle(){
-protected Object handleGetObject(String key) {
-return null;
-}
-public Enumeration getKeys() {
-return null;
-}
-};
-}
-  }
-
   // remember missing strings, do not flood log
   private HashSet missing = new HashSet<>();
 


--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Fwd: SVN: [5384] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ language/I18NPlug.java

2017-03-19 Thread edgar . soldin
On 19.03.2017 15:26, Michaël Michaud wrote:
> In OpenJUMP I18N, there are two ways to initialize I18N : from a File or from 
> a name.
> If a File is passed as the argument, I think it will look for the file and 
> will not find it if it is embedded in the jar.

close but not quite. i found the commit r4616 (13.12.2015) where i moved the 
wfs language files into core. the bug has been lingering since and nobody 
complaint ;( .. to be fair it only occurred on windows probably, but that's our 
main clientele.

anyway, i simulated language files in a jar locally and am positive to have 
that fixed.. see r5387, seems like ResourceBundle does not like backslash as 
separator, but only when the resources in question are in archives or not in 
the plain file system.

fixed for you as well? ..ede

--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Fwd: SVN: [5384] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ language/I18NPlug.java

2017-03-19 Thread Michaël Michaud
Yeah !

Fixed for me, both wfs and cadtool, thanks ;-)

Michaël


Le 19/03/2017 à 16:08, edgar.sol...@web.de a écrit :
> On 19.03.2017 15:26, Michaël Michaud wrote:
>> In OpenJUMP I18N, there are two ways to initialize I18N : from a File or 
>> from a name.
>> If a File is passed as the argument, I think it will look for the file and 
>> will not find it if it is embedded in the jar.
> close but not quite. i found the commit r4616 (13.12.2015) where i moved the 
> wfs language files into core. the bug has been lingering since and nobody 
> complaint ;( .. to be fair it only occurred on windows probably, but that's 
> our main clientele.
>
> anyway, i simulated language files in a jar locally and am positive to have 
> that fixed.. see r5387, seems like ResourceBundle does not like backslash as 
> separator, but only when the resources in question are in archives or not in 
> the plain file system.
>
> fixed for you as well? ..ede
>
> --
> 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
> Jump-pilot-devel@lists.sourceforge.net
> 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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [5388] core/trunk/src/com/vividsolutions/jump/util/StringUtil.java

2017-03-19 Thread jump-pilot-svn
Revision: 5388
  http://sourceforge.net/p/jump-pilot/code/5388
Author:   michaudm
Date: 2017-03-19 18:15:24 + (Sun, 19 Mar 2017)
Log Message:
---
StringUtil : fix formatting double for NaN and Infinity

Modified Paths:
--
core/trunk/src/com/vividsolutions/jump/util/StringUtil.java

Modified: core/trunk/src/com/vividsolutions/jump/util/StringUtil.java
===
--- core/trunk/src/com/vividsolutions/jump/util/StringUtil.java 2017-03-19 
15:04:34 UTC (rev 5387)
+++ core/trunk/src/com/vividsolutions/jump/util/StringUtil.java 2017-03-19 
18:15:24 UTC (rev 5388)
@@ -393,6 +393,9 @@
  * @return string
  */
 public static String toString(double d) {
+if (Double.isNaN(d) || d == Double.POSITIVE_INFINITY || d == 
Double.NEGATIVE_INFINITY) {
+return Double.toString(d);
+}
 String s = allDecimals.format(d);
 double d2 = Double.valueOf(s);
 // check if we lost precision and if so we accept floating point


--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Fwd: SVN: [5384] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ language/I18NPlug.java

2017-03-19 Thread edgar . soldin
yeahaahh :)) thanks for reporting.. ede

On 19.03.2017 19:10, Michaël Michaud wrote:
> Yeah !
> 
> Fixed for me, both wfs and cadtool, thanks ;-)
> 
> Michaël
> 
> 
> Le 19/03/2017 à 16:08, edgar.sol...@web.de a écrit :
>> On 19.03.2017 15:26, Michaël Michaud wrote:
>>> In OpenJUMP I18N, there are two ways to initialize I18N : from a File or 
>>> from a name.
>>> If a File is passed as the argument, I think it will look for the file and 
>>> will not find it if it is embedded in the jar.
>> close but not quite. i found the commit r4616 (13.12.2015) where i moved the 
>> wfs language files into core. the bug has been lingering since and nobody 
>> complaint ;( .. to be fair it only occurred on windows probably, but that's 
>> our main clientele.
>>
>> anyway, i simulated language files in a jar locally and am positive to have 
>> that fixed.. see r5387, seems like ResourceBundle does not like backslash as 
>> separator, but only when the resources in question are in archives or not in 
>> the plain file system.
>>
>> fixed for you as well? ..ede
>>
>> --
>> 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
>> Jump-pilot-devel@lists.sourceforge.net
>> 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
> Jump-pilot-devel@lists.sourceforge.net
> 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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [5389] core/trunk/ChangeLog

2017-03-19 Thread jump-pilot-svn
Revision: 5389
  http://sourceforge.net/p/jump-pilot/code/5389
Author:   edso
Date: 2017-03-19 18:50:00 + (Sun, 19 Mar 2017)
Log Message:
---
fix ResourceBundle does not like backslash separators when resources are in 
zips/jars

> java.util.MissingResourceException: Can't find bundle for base name 
> language\wfs\messages, 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.(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 de.latlon.deejump.wfs.i18n.I18N.get(I18N.java:25)
>  at de.latlon.deejump.wfs.plugin.WFSPlugIn.i18n(WFSPlugIn.java:328)
>  at de.latlon.deejump.wfs.plugin.WFSPlugIn.execute(WFSPlugIn.java:110)
...

Modified Paths:
--
core/trunk/ChangeLog

Modified: core/trunk/ChangeLog
===
--- core/trunk/ChangeLog2017-03-19 18:15:24 UTC (rev 5388)
+++ core/trunk/ChangeLog2017-03-19 18:50:00 UTC (rev 5389)
@@ -3,6 +3,9 @@
 # 2. make sure that lines break at 80 chars for constricted display situations
 #< 80 chars 
-->#
 
+2017-03-19 ede
+  * fix WFS in PLUS not working due too i18n error
+
 2017-03-14 mmichaud 
   * upgrade to jumpjgrapht 0.7.1 (fix a bug related to empty geometries)
   * improve how MultiInputDialog is resized (let JTextArea increase its size)


--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] next release options

2017-03-19 Thread edgar . soldin
hey All,

we fixed some crucial bugs which warrant a new release. we have two options here

A. go directly to 1.11, as we have a new feature CAD tools

B. disable CAD tools for the release, keep it in snapshots and release a v1.10.1

i'd vote for A. (release early, release often :) ..ede

--
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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] next release options

2017-03-19 Thread Michaël Michaud
Hi,

I'm also OK for 1.11.

When would you like to release ?

Michaël


Le 19/03/2017 à 19:52, edgar.sol...@web.de a écrit :
> hey All,
>
> we fixed some crucial bugs which warrant a new release. we have two options 
> here
>
> A. go directly to 1.11, as we have a new feature CAD tools
>
> B. disable CAD tools for the release, keep it in snapshots and release a 
> v1.10.1
>
> i'd vote for A. (release early, release often :) ..ede
>
> --
> 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
> Jump-pilot-devel@lists.sourceforge.net
> 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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] next release options

2017-03-19 Thread edgar . soldin
after Peppe & Jukka spoke up.. maybe next week?.. ede

On 19.03.2017 23:13, Michaël Michaud wrote:
> Hi,
> 
> I'm also OK for 1.11.
> 
> When would you like to release ?
> 
> Michaël
> 
> 
> Le 19/03/2017 à 19:52, edgar.sol...@web.de a écrit :
>> hey All,
>>
>> we fixed some crucial bugs which warrant a new release. we have two options 
>> here
>>
>> A. go directly to 1.11, as we have a new feature CAD tools
>>
>> B. disable CAD tools for the release, keep it in snapshots and release a 
>> v1.10.1
>>
>> i'd vote for A. (release early, release often :) ..ede
>>
>> --
>> 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
>> Jump-pilot-devel@lists.sourceforge.net
>> 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
> Jump-pilot-devel@lists.sourceforge.net
> 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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel