Modify

Opened 4 years ago

Closed 4 years ago

#2676 closed defect (fixed)

NullPointerException when failing to connect to OSM API Server

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

Description

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
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
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$4.run(PleaseWaitRunnable.java:119)
	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 java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
	at org.openstreetmap.josm.io.BoundingBoxDownloader.parseRawGps(BoundingBoxDownloader.java:65)
	at org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask$Task.realRun(DownloadGpsTask.java:40)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:101)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (3)

comment:1 Changed 4 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 4 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 "http://www.openstreetmap.org/api" I could download OSM data again.

comment:3 Changed 4 years ago by stoecker

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.