2011-10-22T23:44:51ZFluxBBhttps://forum.openstreetmap.org/viewtopic.php?id=7256Looks like this error appears when you partially imported osm data into the database. I got it while importing only coastlines from a planet dump with osmosis (--way-key-value keyValueList="natural.coastline" --used-node).

]]>https://forum.openstreetmap.org/profile.php?id=108152011-10-22T23:44:51Zhttps://forum.openstreetmap.org/viewtopic.php?pid=197820#p197820May be I understand... The error is like null pointer exception and when I was running the query before it failed (SELECT * FROM "current_ways" WHERE ("current_ways"."id" = 4097030), it returns no result... So i was changing bbox to smaller and finally it returned required XML. Probably the only one solution is to import bigger part of map and to hope, that there won't be way crossing my borders. Or may I do something diffirent(like set settings when it find no result, it won't add the way..)?

so I specified validateSchemaVersion="no" and it seems it worked... There are many rows in all tables.

When I run tests (sudo rake test) it returned 4 failures but according manual, there should be only 3 failures.

1) Failure:test_changes_simple(ApiControllerTest) [/test/functional/api_controller_test.rb: 204]:Expected response to be a <:success>, but was <500><"">

2) Failure:test_changes_zoom_valid(ApiControllerTest) [/test/functional/api_controller_test.rb:228:in `test_changes_zoom_valid' /test/functional/api_controller_test.rb:226:in `upto' /test/functional/api_controller_test.rb:226:in `test_changes_zoom_valid']:Expected response to be a <:success>, but was <500><"">

3) Failure:test_hours_valid(ApiControllerTest) [/test/functional/api_controller_test.rb:257:in `test_hours_valid' /test/functional/api_controller_test.rb:255:in `upto' /test/functional/api_controller_test.rb:255:in `test_hours_valid']:Expected response to be a <:success>, but was <500><"">

4) Failure:test_delete(NodeControllerTest) [/test/functional/node_controller_test.rb:224]:<"Precondition failed: Node 3 is still used by way 1."> expected but was<"Precondition failed: Node 3 is still used by way 3.">.

Do you have any idea how to fix error "NoMethodError: undefined method `visible?' for nil:NilClass"