Modify

Opened 2 years ago

Last modified 17 months ago

#17705 new defect

"IAE: The site ID is not given in the expected format!" when try get wikidata tag from existing wikipedia tag

Reported by: xangel1@… Owned by: floscher
Priority: normal Milestone:
Component: Plugin wikipedia Version: tested
Keywords: template_report wikidata Cc:

Description

What steps will reproduce the problem?

  1. Tag for existing relation wikipedia=RU:Рахманинов Сергей Васильевич
  2. Click from menu Данные->Получить ID Викиданных

What is the expected result?

Get Wikidata ID for Wikipedia article and set it to relation

What happens instead?

Exception (error)

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-04-28 04:36:41 +0200 (Sun, 28 Apr 2019)
Build-Date:2019-04-28 02:37:58
Revision:15031
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15031 ru) Linux Gentoo Base System release 2.6
Memory Usage: 410 MB / 1820 MB (64 MB allocated, but free)
Java version: 1.8.0_191-b12, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: icedtea-bin:!!! -e, --exact-name is now default.
!!! Use globbing to simulate the old behavior.
3.10.0-r1
VM arguments: [-Dicedtea-web.bin.name=itweb-javaws, -Dicedtea-web.bin.location=/usr/bin/itweb-javaws, -Dawt.useSystemAAFontSettings=on, -Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

Plugins:
+ OpeningHoursEditor (34977)
+ apache-commons (34908)
+ buildings_tools (34982)
+ imagery_offset_db (34908)
+ jaxb (34908)
+ jogl (1.2.2)
+ kendzi3d-resources (0.0.2)
+ log4j (34908)
+ photo_geotagging (34908)
+ photoadjust (34977)
+ pt_assistant (705)
+ reverter (34977)
+ routing (${version.entry.commit.revision})
+ wikipedia (v1.1.1)

Tagging presets:
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/RU.zip
+ https://raw.githubusercontent.com/ruosm-presets/literan-moscow/master/russian_shops.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/ParkingLanes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/NewTags&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Addr2&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Playground_Equipment&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Surveillance&zip=1
+ https://github.com/kendzi/Simple3dBuildingsPreset/releases/download/0.9_2018-05-08/s3db-preset.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/Community_Centre&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/contact(socialnetworks_IMs)&zip=1
+ https://raw.githubusercontent.com/species/josm-preset-wheelchair/master/sidewalks_kerbs.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/Drinks&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Payment_Method_RU&zip=1

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/NewHighwayColors&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/light_source&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/ParkingLanes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/AdvertisingStyle&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportV2&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PriorityRoad&zip=1

Validator rules:
+ https://raw.githubusercontent.com/zetx16/Josm-HnumbValidator/master/ru-housenumber.validator.mapcss

Last errors/warnings:
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: Конфликт в данных - <html>Это отношение было изменено за пределами редактора.<br>Невозможно применить ваши изменения и продолжить правку.<br><br>Вы хотите создать конфликт и закрыть редактор?</html>
- E: Handled by bug report queue: java.lang.IllegalArgumentException: The site ID is not given in the expected format!
- W: Внимание - <html>JOSM не может найти информацию о следующих модулях:<ul><li>imagery_offset_db</li><li>apache-commons</li><li>photoadjust</li><li>kendzi3d-resources</li><li>reverter</li><li>jaxb</li><li>pt_assistant</li><li>routing</li><li>photo_geotagging</li><li>OpeningHoursEditor</li><li>buildings_tools</li><li>jogl</li><li>wikipedia</li><li>log4j</li></ul>Модули не загружаются с сервера.</html>


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-1 (23) of JOSM
java.lang.IllegalArgumentException: The site ID is not given in the expected format!
	at org.wikipedia.api.wikidata_action.WikidataActionApiQuery.wbgetentities(WikidataActionApiQuery.java:113)
	at org.wikipedia.WikipediaApp.getWikidataForArticles0(WikipediaApp.java:298)
	at org.wikipedia.WikipediaApp.resolveWikidataItems(WikipediaApp.java:256)
	at org.wikipedia.WikipediaApp.lambda$getWikidataForArticles$10(WikipediaApp.java:244)
	at org.wikipedia.tools.ListUtil.processInBatches(ListUtil.java:29)
	at org.wikipedia.tools.ListUtil.processInBatches(ListUtil.java:34)
	at org.wikipedia.WikipediaApp.getWikidataForArticles(WikipediaApp.java:243)
	at org.wikipedia.actions.FetchWikidataAction$PrimitivesWithWikipedia.updateWikidataIds(FetchWikidataAction.java:131)
	at org.wikipedia.actions.FetchWikidataAction$Fetcher.realRun(FetchWikidataAction.java:75)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Attachments (0)

Change History (4)

comment:1 in reply to:  description Changed 2 years ago by Don-vip

Replying to xangel1@…:

Java package: icedtea-bin:!!! -e, --exact-name is now default.
!!! Use globbing to simulate the old behavior.
3.10.0-r1

Unrelated to your problem but it seems our code that call equery does not work on your system:

args = new String[] {"equery", "-q", "list", "-e", "--format=$fullversion", packageName};

can you please post the output of:
equery -q list --format=$fullversion icedtea-bin?
equery -q list -e --format=$fullversion icedtea-bin?
equery -q list --exact-name --format=$fullversion icedtea-bin?

comment:2 Changed 2 years ago by xangel1@…

equery -q list --format=$fullversion icedtea-bin
dev-java/icedtea-bin-3.12.0

equery -q list -e --format=$fullversion icedtea-bin
!!! -e, --exact-name is now default.
!!! Use globbing to simulate the old behavior.

dev-java/icedtea-bin-3.12.0
equery -q list --exact-name --format=$fullversion icedtea-bin
!!! -e, --exact-name is now default.
!!! Use globbing to simulate the old behavior.

dev-java/icedtea-bin-3.12.0

Installed java version:

eix icedtea-bin
dev-java/icedtea-bin
     Available versions:  (8) 3.10.0-r1^s (~)3.12.0^s
       {+alsa big-endian +cups doc examples +gtk headless-awt multilib nsplugin pulseaudio selinux source +webstart ABI_MIPS="n32 n64 o32" ABI_RISCV="lp64 lp64d" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  3.12.0(8)^s(03:46:18 05/12/19)(alsa webstart -big-endian -cups -doc -examples -gtk -headless-awt -multilib -nsplugin -pulseaudio -selinux -source ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            http://icedtea.classpath.org
     Description:         A Gentoo-made binary build of the IcedTea JDK

If need for testing I may install stable version.

comment:3 Changed 2 years ago by floscher

The issue should go away if you use a lowercase prefix (ru:Рахманинов Сергей Васильевич instead of RU:Рахманинов Сергей Васильевич).

The language prefixes for wikipedia=* tags should be lowercase, there are currently only two OSM objects in total that use uppercase: https://overpass-turbo.eu/s/Jwj

I'll look into this to solve this better in the wikipedia plugin. This should not lead to a full crash.

comment:4 Changed 17 months ago by Don-vip

Keywords: wikidata added
Summary: Exception when try get wikidata tag from existing wikipedia tag"IAE: The site ID is not given in the expected format!" when try get wikidata tag from existing wikipedia tag

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain floscher.
as The resolution will be set.
to The owner will be changed from floscher to the specified user.
The owner will change to xangel1@mail.ru
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from floscher to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.