Modify

Opened 4 months ago

Closed 3 months ago

Last modified 3 months ago

#24116 closed defect (fixed)

When loading Bing aerial imagery, Message popped up.

Reported by: anonymous Owned by: team
Priority: normal Milestone: 25.02
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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

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 en) Mac OS X 15.2
OS Build number: macOS 15.2 (24C101)
Memory Usage: 654 MB / 4096 MB (268 MB allocated, but free)
Java version: 21.0.5+11-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69734272 1440x900x32bpp@[Unknown refresh rate] (scaling 2.00×2.00) Display 188945225 1920x1080x32bpp@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-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]

Plugins:
+ Mapillary (1792)
+ apache-commons (36366)
+ apache-http (36349)
+ buildings_tools (36370)
+ changessum (v0.1.1)
+ flatlaf (36349)
+ graphview (36370)
+ jna (36360)
+ mapwithai (837)
+ markseen (14)
+ osm-obj-info (58)
+ pmtiles (36370)
+ reverter (36354)
+ utilsplugin2 (36370)

Tagging presets:
+ ${HOME}/Downloads/JOSM_Files/FB_presets.max.xml

Map paint styles:
+ ${HOME}/Downloads/JOSM_Files/FB_style.mapcss
- ${HOME}/Downloads/JOSM_Files/rainbow_roads.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
- ${HOME}/Downloads/Custom_layer_style.mapcss

Validator rules:
+ ${HOME}/Downloads/JOSM_Files/FB_rules5.14.validator.mapcss

Last errors/warnings:
- 00420.725 W: java.io.IOException: Attribution is not loaded yet
- 00420.725 W: java.io.IOException: Attribution is not loaded yet
- 00420.726 W: java.io.IOException: Attribution is not loaded yet
- 00420.726 W: java.io.IOException: Attribution is not loaded yet
- 00420.726 W: java.io.IOException: Attribution is not loaded yet
- 00420.727 W: java.io.IOException: Attribution is not loaded yet
- 00420.727 W: java.io.IOException: Attribution is not loaded yet
- 00420.727 W: java.io.IOException: Attribution is not loaded yet
- 00420.728 W: java.io.IOException: Attribution is not loaded yet
- 00421.663 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.toString()" because "replacement" is null



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: bing-attribution-loader-timer (335)
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 (37)

comment:1 by stoecker, 4 months ago

In 36381/osm:

JMapViewer 2.24, see #24116, prevent error when key retrival returns null

comment:2 by stoecker, 4 months ago

Resolution: fixed
Status: newclosed

In 19308/josm:

increase JMapViewer to 2.24, fix #24116

comment:3 by stoecker, 4 months ago

Well, either a retry or tomorrow latest should fix it.

Hopefully this happens seldom as this looks like it has potential for a hotfix ;-)

comment:4 by taylor.smock, 4 months ago

Considering this was in latest for a week, I would assume that it happens infrequently.

comment:5 by stoecker, 4 months ago

There were many successful server requests, so I agree. Usually for a hotfix topic there would be at least 5 identical tickets right now ;-)

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

comment:6 by stoecker, 4 months ago

Ticket #24117 has been marked as a duplicate of this ticket.

comment:7 by stoecker, 4 months ago

Milestone: 25.02

comment:8 by stoecker, 4 months ago

Ticket #24118 has been marked as a duplicate of this ticket.

comment:9 by stoecker, 4 months ago

Ticket #24119 has been marked as a duplicate of this ticket.

comment:10 by stoecker, 4 months ago

Ticket #24120 has been marked as a duplicate of this ticket.

comment:11 by stoecker, 4 months ago

Ticket #24127 has been marked as a duplicate of this ticket.

comment:12 by stoecker, 4 months ago

Ticket #24129 has been marked as a duplicate of this ticket.

comment:13 by stoecker, 4 months ago

Ticket #24130 has been marked as a duplicate of this ticket.

comment:14 by stoecker, 4 months ago

Ticket #24133 has been marked as a duplicate of this ticket.

comment:15 by stoecker, 4 months ago

Ticket #24139 has been marked as a duplicate of this ticket.

comment:16 by stoecker, 4 months ago

Ticket #24141 has been marked as a duplicate of this ticket.

comment:17 by GerdP, 4 months ago

Ticket #24151 has been marked as a duplicate of this ticket.

comment:18 by GerdP, 4 months ago

Ticket #24155 has been marked as a duplicate of this ticket.

comment:19 by voschix, 4 months ago

Resolution: fixed
Status: closedreopened

The problem is back again.

comment:20 by stoecker, 4 months ago

The problem is back again.

Which means? The duplicate reports are all for r19307.

comment:21 by t-matsuu, 4 months ago

What is the difference between this ticket and #23913?

comment:22 by stoecker, 4 months ago

#23913 is caused by issues with the Bing license. This ticket is a (already fixed) programming error when retrieving the license information.

comment:23 by voschix, 3 months ago

This bug is not fixed, by my experience. It returned after it had been fixed. That's why I reopened a ticket yesterday. My apology if I reopened the wrong ticket - but the reported fault has returned and is still .

comment:24 by stoecker, 3 months ago

If you don't provide additional information why that bug is not fixed, see question above, then your reopening is bogus.

Only reopening a bug with no reason wastes time of everybody.

comment:25 by voschix, 3 months ago

I am an end user, not a programmer. I can only state, that the problem appeared fixed to me, then it came back. As I was sick and off my computer I cannot say exactly when it reappeared. I restarted the computer, installed the tested version of JOSM (19307). Computer runs Windows 10 latest version. That is all I can contribute.

comment:26 by stoecker, 3 months ago

Resolution: fixed
Status: reopenedclosed

As you can see above the bug is fixed in r19308. So when you start r19307 it is NOT fixed. You need to wait till next tested release or start latest version.

comment:27 by stoecker, 3 months ago

Ticket #24165 has been marked as a duplicate of this ticket.

comment:28 by stoecker, 3 months ago

Ticket #24168 has been marked as a duplicate of this ticket.

comment:29 by voschix, 3 months ago

The problem is back both with r1930.

It had disappeared with r19308 for a couple of days

comment:30 by voschix, 3 months ago

typing error: it is back with r19308.

comment:31 by stoecker, 3 months ago

Please open a new ticket including the JOSM error report when using the new version and the error appears.

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

comment:32 by GerdP, 3 months ago

I've done this right now because I can reproduce the problem with latest on my laptop, see #24172

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

comment:33 by stoecker, 3 months ago

Ticket #24181 has been marked as a duplicate of this ticket.

comment:34 by stoecker, 3 months ago

Ticket #24182 has been marked as a duplicate of this ticket.

comment:35 by stoecker, 3 months ago

Ticket #24136 has been marked as a duplicate of this ticket.

comment:36 by anonymous, 3 months ago

I see this in 19342

2025-03-04 11:37:14.340 WARNING: java.io.IOException: Attribution is not loaded yet
2025-03-04 11:37:14.488 INFO: GET https://josm.openstreetmap.de/mapkey/Bing -> HTTP/1.1 200 (180 ms; 65 B)
2025-03-04 11:37:14.598 SEVERE: Could not parse Bing aerials attribution metadata.
java.lang.NumberFormatException: For input string: ""
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseInt(Integer.java:678)
	at java.base/java.lang.Integer.parseInt(Integer.java:786)
	at org.openstreetmap.gui.jmapviewer.tilesources.BingAerialTileSource.parseAttributionText(BingAerialTileSource.java:183)
	at org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource.access$200(CachedAttributionBingAerialTileSource.java:37)
	at org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource$AttributionTimerTask.run(CachedAttributionBingAerialTileSource.java:146)
	at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
	at java.base/java.util.TimerThread.run(Timer.java:516)

2025-03-04 11:37:14.603 WARNING: java.io.IOException: Attribution is not loaded yet

For a short while, two days ago, bing aerials did load on the previous version 19307. A happy coincidence?

comment:37 by stoecker, 3 months ago

That's #23913 and this is not solved yet. And Yes: Coincidence. Depends on the load Bing gets with the license JOSM uses.

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

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.