Modify

Opened 16 years ago

Closed 16 years ago

#2538 closed defect (fixed)

null pointer exception on all uploads

Reported by: vbroman@… Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc: Gubaer

Description

since r1566 every (just about?) upload of edits I've done
results in a java null pointer exception signaled with
a popup window. I am unsure how much of the upload, if anything
succeeds in arriving. JOSM seems to add the old changes to
the next upload cumulatively. I tried "-latest" in a console
window, so I could see the following

PUT http://www.openstreetmap.org/api/0.6/changeset/create... OK
POST http://www.openstreetmap.org/api/0.6/changeset/1092597/upload... Unprocessable Entity
PUT http://www.openstreetmap.org/api/0.6/changeset/1092597/close... OK

I don't know how to compile the subversion latest version,
though if I got hints, I might be to try it.

Attachments (0)

Change History (3)

comment:1 by anonymous, 16 years ago

I did find a street, a way including node 49064045,
which had a tiger:tlid longer than 255 characters.
I tried shortening it, then deleting it.
I still fail in uploading all my changes, as below.
"Unprocessable" needs to be made more explicit, I guess -- what cannot be processed?

GET http://www.openstreetmap.org/api/capabilities... OK
Communications with http://www.openstreetmap.org/api established using protocol version 0.6
PUT http://www.openstreetmap.org/api/0.6/changeset/create... OK
POST http://www.openstreetmap.org/api/0.6/changeset/1134765/upload... Internal Server Error
POST http://www.openstreetmap.org/api/0.6/changeset/1134765/upload... Unprocessable Entity
Error body:

PUT http://www.openstreetmap.org/api/0.6/changeset/1134765/close... OK
GET http://www.openstreetmap.org/api/capabilities... OK
Communications with http://www.openstreetmap.org/api established using protocol version 0.6
PUT http://www.openstreetmap.org/api/0.6/changeset/create... OK
POST http://www.openstreetmap.org/api/0.6/changeset/1134801/upload... Unprocessable Entity
Error body:

PUT http://www.openstreetmap.org/api/0.6/changeset/1134801/close... OK

The error body returned seems to be empty, and the pop-up message window generated is blank.
Now I'm not getting the Null Pointer anymore, though.

comment:2 by Gubaer, 16 years ago

Cc: Gubaer added

It seems that way 49064045 does not cause the error.

Unprocessable Entity doen't seem to be an error code in the API 0.6, neither is it a standard status code for HTTP.

Can you post the smallest possible OSM file which causes the problem when uploading?

comment:3 by anonymous, 16 years ago

Resolution: fixed
Status: newclosed

I only have a very large osm file that I've done much with.
It appears that r1590 works for me now.
There was a useful error message from the upload,
and I could fix the relevant too-long tlid and a version conflict.
So now I'm unstuck. Thanks.

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.