Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#20259 closed defect (fixed)

UnsupportedCharsetException: ISO-8859-3 - cadastre-fr with jpackage build

Reported by: pyrog Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin cadastre-fr Version:
Keywords: template_report jpackage regression charset Cc:

Description

What steps will reproduce the problem?

  1. Use https://josm.openstreetmap.de/download/macosx/josm-macosx.zip
  2. Download a place from "Téléchargement depuis le cadastre"

What is the expected result?

Download buildings…

What happens instead?

JOSM query the cadastre server but get nothing

Please provide any additional information below. Attach a screenshot if possible.

Works fine with https://josm.openstreetmap.de/josm-tested.jar

(I closed https://github.com/etalab/cadastre.data.gouv.fr/issues/91)

Revision:17329
Is-Local-Build:true
Build-Date:2020-11-22 22:31:51

Identification: JOSM/1.5 (17329 SVN fr) Mac OS X 10.14.6
OS Build number: Mac OS X 10.14.6 (18G4032)
Memory Usage: 472 MB / 8192 MB (296 MB allocated, but free)
Java version: 15.0.1+9, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69732928 1280x800 (scaling 2.0x2.0)
Maximum Screen Size: 1280x800
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
VM arguments: [-Dapple.awt.application.appearance=system, --module-path=/Applications/JOSM.app/Contents/app/mods]

Plugins:
+ PicLayer (2a9aa7a)
+ SeaMapEditor (35543)
+ apache-commons (35524)
+ apache-http (35589)
+ areaselector (368)
+ austriaaddresshelper (1597341117)
+ buildings_tools (35669)
+ cadastre-fr (35645)
+ conflation (0.6.6)
+ ejml (35458)
+ geotools (35458)
+ jaxb (35543)
+ jna (35662)
+ jts (35458)
+ log4j (35458)
+ measurement (35640)
+ microdata_scraping (1570137897)
+ opendata (35640)
+ pt_assistant (2.1.10-80-g7d9bba3)
+ reverter (35640)
+ utilsplugin2 (35671)
+ wikipedia (1.1.4)

Tagging presets:
+ https://raw.githubusercontent.com/OpenNauticalChart/josm/master/INT-1-preset.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/Telecom&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Healthcare&zip=1
+ https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/presets/nsi-josm-presets.min.xml

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/NumberedWalkingNodeNetworks&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1

Validator rules:
+ https://github.com/Jungle-Bus/transport_mapcss/raw/gh-pages/transport.validator.zip
+ ${HOME}/Downloads/Rules_Pictures.validator.mapcss

Last errors/warnings:
- 00018.226 E: <josm.userdata>/plugins/opendata/resources/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/agriculture/RegistreParcellaire.mapcss (No such file or directory)
- 00030.451 E: Thread main-worker-0 raised java.lang.ExceptionInInitializerError
- 00030.904 E: Thread main-worker-0 raised java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.fr.cadastre.edigeo.EdigeoCharset
- 00031.232 E: Thread main-worker-0 raised java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.fr.cadastre.edigeo.EdigeoCharset
- 00031.238 E: java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError. Cause : java.lang.ExceptionInInitializerError. Cause : java.nio.charset.UnsupportedCharsetException: ISO-8859-3
- 00031.245 E: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.fr.cadastre.edigeo.EdigeoCharset. Cause : java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.fr.cadastre.edigeo.EdigeoCharset
- 00031.250 E: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.fr.cadastre.edigeo.EdigeoCharset. Cause : java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.fr.cadastre.edigeo.EdigeoCharset

Attachments (0)

Change History (12)

comment:1 by Stereo, 3 years ago

Keywords: macOS regression added

comment:2 by Stereo, 3 years ago

I have no idea what that EdigeoCharset thing is, and if it is a red herring. And ISO-8859-3? Quite exotic.

When you run java --version from the command line, what version are you running?

I thought most people used the Cadastre WMS these days - what's better with the plugin?

comment:3 by Stereo, 3 years ago

Owner: changed from team to pyrog
Status: newneedinfo

comment:4 by pyrog, 3 years ago

java -version

java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

comment:5 by Stereo, 3 years ago

Component: Installer MacOSPlugin cadastre-fr

comment:6 by Stereo, 3 years ago

Summary: Can't download from cadastre-fr with packaged JOSM for macOSCan't download from cadastre-fr with java 15

comment:7 by Don-vip, 3 years ago

Keywords: charset added
Summary: Can't download from cadastre-fr with java 15UnsupportedCharsetException: ISO-8859-3 - cadastre-fr with java 15

in reply to:  2 comment:8 by Don-vip, 3 years ago

Replying to Stereo:

I have no idea what that EdigeoCharset thing is

Edigeo is the 1990s AFNOR norm that dictates how cadastre was exchanged in France: https://fr.wikipedia.org/wiki/EDIGEO

The norm has been deprecated but still being used by the DGFiP.

comment:9 by Don-vip, 3 years ago

Keywords: jpackage added; macOS removed
Owner: changed from pyrog to Don-vip
Status: needinfoassigned
Summary: UnsupportedCharsetException: ISO-8859-3 - cadastre-fr with java 15UnsupportedCharsetException: ISO-8859-3 - cadastre-fr with jpackage build

comment:10 by Don-vip, 3 years ago

Resolution: fixed
Status: assignedclosed

In 35676/osm:

fix #20259 - load charsets dynamically

comment:11 by Don-vip, 3 years ago

In 35677/osm:

fix #20259 - dist

comment:12 by pyrog, 3 years ago

Merci pour la correction :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.