Opened 15 years ago
Closed 15 years ago
#3340 closed defect (fixed)
NPE with remoteControl-plugin after cancelling download (RequestProcessor$2)
Reported by: | vsandre | Owned by: | framm |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core remotecontrol | Version: | latest |
Keywords: | NPE remoteControl | Cc: |
Description
After cancelling a data download with the remoteControl-plugin, i get the following exception:
RemoteControl received: GET /load_and_zoom?left=7.76500&bottom=46.05789&right=7. 79753&top=46.07531 HTTP/1.1 GET http://www.openstreetmap.org/api/capabilities... OK Kommunikation mit http://www.openstreetmap.org/api mittels Protokollversion 0.6 etabliert. GET http://www.openstreetmap.org/api/0.6/map?bbox=7.765,46.05789,7.79753,46.0753 1 27.08.2009 12:17:45 org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask $Task realRun WARNUNG: Ignoring exception because download has been cancelled. Exception was: {0}org.openstreetmap.josm.io.OsmTransferException: java.net.SocketException: soc ket closed java.lang.NullPointerException at org.openstreetmap.josm.plugins.remotecontrol.RequestProcessor$2.run(R equestProcessor.java:214) 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)
Should I ignore this, as mentioned in the exception? If yes, could JOSM ignore this too and display a popup with "The download initiated by the plugin RemoteControl was cancelled." instead.
Attachments (0)
Change History (8)
follow-up: 2 comment:1 by , 15 years ago
comment:2 by , 15 years ago
Replying to plaicy:
I looks like you have two exceptions: SocketException and NullPointerException. After the first is ignored, the second is raised.
This is caused because (Main.map==null) (Main.map.mapView==null). After your download there should not have been any data layer. One solution would be to check for this condition.
Yes I started JOSM, clicked on a JOSM-remote-URL and the loading window displayed. But after two minutes of waiting, because nothing else happened, I cancelled the process and get this failure.
And yes I have not got a data layer, only the today's message screen.
comment:3 by , 15 years ago
Component: | Plugin → Core remotecontrol |
---|---|
Owner: | changed from | to
comment:6 by , 15 years ago
Summary: | NPE with remoteControl-plugin after cancelling download → NPE with remoteControl-plugin after cancelling download (RequestProcessor$2) |
---|
comment:8 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I looks like you have two exceptions: SocketException and NullPointerException. After the first is ignored, the second is raised.