Modify

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#24133 closed defect (duplicate)

Bing aerial imagery returns "Attribution is not loaded yet" error

Reported by: t-matsuu Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Launch JOSM.
  2. Using the web browser, go to the OSM Web site and view an area.
  3. Load an area into JOSM using "Edit -> Remote Control" from the OSM web interface.
  4. Load "Bing aerial imagery" into JOSM.

What is the expected result?

Bing aerial imagery loads correctly.

What happens instead?

Bing aerial imagery does not load with the error message "Attribution is not loaded yet".
And then the bug reporting dialog pops up.

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

JOSM rev. 19307 runs on win11 x64 through OpenWebStart 1.11.1.

Yesterday it worked fine.
So this may be a server side issue.

I don't know if this is related to this issue, but the URL configuration for Bing aerial imagery is slightly different between JOSM and OSM Editor Layer Index by OSM Lab.
JOSM: https://www.bing.com/maps/
OSM Lab: https://www.bing.com/maps (trailing slash is not set)

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2025-02-03 20:59:54 +0100 (Mon, 03 Feb 2025)
Revision:19307
Build-Date:2025-02-04 02:30:32
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (19307 ja) Windows 11 64-Bit
OS Build number: Windows 10 Pro 24H2 (26100)
Memory Usage: 460 MB / 4006 MB (94 MB allocated, but free)
Java version: 21.0.5+11-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 2560x1440x32bpp@75Hz (scaling 1.00×1.00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: MS932
Locale info: ja_JP
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Dicedtea-web.bin.location=%UserProfile%\AppData\Local\Programs\OpenWebStart\javaws, -Djava.util.Arrays.useLegacyMergeSort=true, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djava.security.manager=allow]
Dataset consistency test: No problems found

Plugins:
+ apache-commons (36379)
+ ejml (36379)
+ geotools (36379)
+ jackson (36379)
+ jaxb (36379)
+ jts (36379)
+ opendata (36379)
+ pmtiles (36379)
+ utilsplugin2 (36379)
+ wikipedia (428)

Tagging presets:
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/JP.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/JaNamigSample&zip=1

Map paint styles:
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_style_JOSM/master/Styles_Traffic_signs_PAC.zip

Last errors/warnings:
- 00036.447 W: java.io.IOException: Attribution is not loaded yet
- 00036.469 W: java.io.IOException: Attribution is not loaded yet
- 00036.491 W: java.io.IOException: Attribution is not loaded yet
- 00036.513 W: java.io.IOException: Attribution is not loaded yet
- 00036.535 W: java.io.IOException: Attribution is not loaded yet
- 00036.558 W: java.io.IOException: Attribution is not loaded yet
- 00036.582 W: java.io.IOException: Attribution is not loaded yet
- 00036.604 W: java.io.IOException: Attribution is not loaded yet
- 00036.626 W: java.io.IOException: Attribution is not loaded yet
- 00036.652 W: java.io.IOException: Attribution is not loaded yet



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: bing-attribution-loader-timer (131)
java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.toString()" because "replacement" is null
	at java.base/java.lang.String.replace(String.java:3086)
	at org.openstreetmap.gui.jmapviewer.tilesources.BingAerialTileSource.getAttributionUrl(BingAerialTileSource.java:134)
	at org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource.access$100(CachedAttributionBingAerialTileSource.java:37)
	at org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource$BingAttributionData.isOffline(CachedAttributionBingAerialTileSource.java:82)
	at org.openstreetmap.josm.io.CacheCustomContent.needsUpdate(CacheCustomContent.java:90)
	at org.openstreetmap.josm.io.CacheCustomContent.updateIfRequiredString(CacheCustomContent.java:120)
	at org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource$AttributionTimerTask.run(CachedAttributionBingAerialTileSource.java:142)
	at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
	at java.base/java.util.TimerThread.run(Timer.java:516)

Attachments (0)

Change History (4)

comment:1 by stoecker, 3 months ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #24116.

comment:2 by t-matsuu, 3 months ago

The problem is critical and we hope that a fixed version will be released without waiting for a regular release.

comment:3 by stoecker, 3 months ago

The fix only fixes an illegal access with the fallback. JOSM will then fall back to the old key which anyway has trouble (#23913). That should actually not happen at all. It would help if you can help solve the question "Why does the key retrieval not work on your system" so the fallback gets activated.

Last edited 3 months ago by stoecker (previous) (diff)

comment:4 by GerdP, 3 months ago

No idea if this helps. Yesterday I encountered the problem on my PC. The JOSM instance was active for some days (hybernated multiple times). I then compiled JOSM latest (19312) and started it with --debug.
Unfortunately I didn't keep the log but I think that I saw many calls like this

GET https://ecn.t2.tiles.virtualearth.net/tiles/a12023001020130.jpeg?g=15002&pr=odbl

before any call to actually retrieve valid attribution data.
I also tried to rename the file bing.attribution.xml to make sure that JOSM retrieves a new one before actually trying to get tiles.
I think I still saw the GET requests before the message

WARNING: java.io.IOException: Attribution is not loaded yet

Today I started the tested version again and Bing works again.
I still have the renamed copy of the bing.attribution.xml in case this can help.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.