Opened 14 years ago

Closed 14 years ago

#2676 closed defect (fixed)

NullPointerException when failing to connect to OSM API Server

Reported by: david@… Owned by: team
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc:


After loading a TCX file from the garmin training center (with the tcx-support plugin) I tried to download the osm data. so I zoomed out a bit, and hit the download button, and accept the default coordinates. An error message pops up: "Der Aufbau der Verbindung zum OSM-Server ist fehlgeschlagen. ..." press OK, error pops up again, press OK, the default dialog for unexpected errors comes and shows this trace:

Path: trunk
Repository Root:
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1629
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1629
Last Changed Date: 2009-05-30 17:24:29 +0200 (Sat, 30 May 2009)

Java version: 1.6.0_13
Plugins: remotecontroltcx-supportvalidator
Plugin remotecontrol Version: 14991
Plugin validator Version: 15127
Plugin tcx-support Version: 14120

java.lang.RuntimeException: java.lang.NullPointerException
	at org.openstreetmap.josm.gui.PleaseWaitRunnable$
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at Source)
Caused by: java.lang.NullPointerException
	at org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask$Task.realRun(
	at java.util.concurrent.Executors$ Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$ Source)
	at Source)

Attachments (0)

Change History (3)

comment:1 Changed 14 years ago by david@…

The error seems to be unrelated to the tcx-support, I can reproduce it without loading a TCX file first.

comment:2 Changed 14 years ago by david@…

Actually, this seems to have been caused by an empty osm-server.orl setting. No idea how that happened, but it was empty and after setting it (again?) to "" I could download OSM data again.

comment:3 Changed 14 years ago by stoecker

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.