Hi, About the NumberFormatException with OpenJDK 11, it seems to have something to do with the locale. Error happens with my default settings (Finnish) but not when I use
set JAVA_OPTS=%JAVA_OPTS% -Duser.language=en -Duser.country=EN It would be irritating if characters used as decimal separator will start to make trouble with JDK 11 and higher. Let’s hope that it does not happen generally. -Jukka Rahkonen- Lähettäjä: Michaud Michael <m.michael.mich...@orange.fr> Lähetetty: keskiviikko 23. joulukuuta 2020 12.11 Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahko...@maanmittauslaitos.fi> Aihe: Re: [JPP-Devel] Some Sextante tools don't like negative pixel values Wow, These are other errors. Not sure it is related to yesterday's report. May be it is worth writing a proper bug report about each : - NumberFormatException in yesterday's report : probably a bug in the way we display numbers in the dialog of VectorizeToContoursPlugIn. I need to reproduce the problem but until now I can't (I used your image with negative values and OpenJDK11) - NullPointerException in VectorizeToPolygonsPlugIn with java 8 : I can reproduce. Will investigate and try to fix ASAP. - NoSuchFileException : no idea. There is no plugin name in the stacktrace. Seems to happen during OpenJUMP initialization. I don't know what is this "OpenJUMP-20201222-r6656-PLUS\conf" file or directory it is looking for. Maybe Ede will have a better idea as the error happens in the PlugInClassLoader - about the warning : yes, this warning has been added with the interior border capability. Maybe it is not really useful. It throws a warning because 'interior' attribute is not really an optional tag, but it is accepted (hard-coded exception) in order to guarantee backward compatibility. Michaël envoyé : 23 décembre 2020 à 10:10 de : "Rahkonen Jukka (MML)" <jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>> à : Michaud Michael <m.michael.mich...@orange.fr<mailto:m.michael.mich...@orange.fr>>, OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>> objet : Re: [JPP-Devel] Some Sextante tools don't like negative pixel values Hi, Yes, the tools are in the Raster menu. It seems that this issue happens with Java 11 but not with Java 8 ( versions I have are OpenJDK 11 and Corretto 8) With Java 8 * Countours are OK (but user should know that contours must be created for the raw, not colorized image) * Histogram is OK * Create Polygons From Raster – AdbToolbox gives NPE java.lang.NullPointerException at org.openjump.core.rasterimage.algorithms.VectorizeAlgorithm.toPolygonsAdbToolBox(VectorizeAlgorithm.java:111) at org.openjump.core.ui.plugin.raster.VectorizeToPolygonsPlugIn.run(VectorizeToPolygonsPlugIn.java:170) at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151) Start with Java 11 prints also something that Java 8 does not into console window: ---Start OJ--- java.nio.file.NoSuchFileException: C:\ohjelmat\OJ\OpenJUMP-20201222-r6656-PLUS\conf at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:96) at java.base/sun.nio.fs.WindowsLinkSupport.getRealPath(WindowsLinkSupport.java:257) at java.base/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:891) at java.base/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:42) at com.vividsolutions.jump.workbench.plugin.PlugInClassLoader.toFileURL(PlugInClassLoader.java:140) at com.vividsolutions.jump.workbench.plugin.PlugInClassLoader.addClassPathToUCP(PlugInClassLoader.java:121) at com.vividsolutions.jump.workbench.plugin.PlugInClassLoader.<init>(PlugInClassLoader.java:27) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at java.base/java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1977) at java.base/java.lang.System.initPhase3(System.java:2069) And both Java 8 and Java 11 prints this warning about 30 times during the startup. It must have something to do with the new style option “Interior border (slow)”. [WARN] 10:50:51.916 Expected 'interior' attribute but found none. Tag = line; Attributes = [Attribute: enabled="true"], [Attribute: width="1"] -Jukka- Lähettäjä: Michaud Michael <m.michael.mich...@orange.fr<mailto:m.michael.mich...@orange.fr>> Lähetetty: tiistai 22. joulukuuta 2020 23.36 Vastaanottaja: OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>> Aihe: Re: [JPP-Devel] Some Sextante tools don't like negative pixel values Hi Jukka, Did you mean tools of Raster menu working on Sextante raster ? Exception seems to come from VectorizeToContoursPlugIn. I tried to reproduce the error with your last image (values from -16 to 0), but it produced contours without error. Michaël envoyé : 22 décembre 2020 à 16:22 de : "Rahkonen Jukka (MML)" <jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>> à : "jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>" <jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>> objet : [JPP-Devel] Some Sextante tools don't like negative pixel values Hi, I believe that the stack trace below means that the tool does not accept negative values. Tools which generate these errors are in the Sextante menu: * histogram * create polygons with the Adbtoolbox algorithm * create contours java.lang.NumberFormatException: For input string: "?16.257333755493" at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054) at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.base/java.lang.Double.parseDouble(Double.java:543) at java.base/java.lang.Double.valueOf(Double.java:506) at com.vividsolutions.jump.util.StringUtil.toString(StringUtil.java:397) at com.vividsolutions.jump.workbench.ui.AbstractMultiInputDialog.addDoubleField(AbstractMultiInputDialog.java:723) at com.vividsolutions.jump.workbench.ui.AbstractMultiInputDialog.addDoubleField(AbstractMultiInputDialog.java:705) at org.openjump.core.ui.plugin.raster.VectorizeToContoursPlugIn.setDialogValues(VectorizeToContoursPlugIn.java:154) at org.openjump.core.ui.plugin.raster.VectorizeToContoursPlugIn.execute(VectorizeToContoursPlugIn.java:109) at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:344) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369) at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1020) at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1064) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342) at java.desktop/java.awt.Component.processEvent(Component.java:6397) at java.desktop/java.awt.Container.processEvent(Container.java:2263) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) -Jukka Rahkonen- _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net<mailto:Jump-pilot-devel@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
_______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel