Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#20066 closed defect (fixed)

NPE at GeoJSONWriter.getCoorArray

Reported by: anonymous Owned by: Don-vip
Priority: normal Milestone: 20.11
Component: Core geojson Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-04-06 02:17:07 +0200 (Mon, 06 Apr 2020)
Build-Date:2020-04-06 00:18:43
Revision:16239
Relative:URL: ^/trunk

Identification: JOSM/1.5 (16239 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 2004 (19041)
Memory Usage: 549 MB / 989 MB (275 MB allocated, but free)
Java version: 1.8.0_271-b09, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080
Dataset consistency test: No problems found

Plugins:
+ Mapillary (1.5.22)
+ apache-commons (35524)
+ apache-http (35092)
+ ejml (35313)
+ geotools (35169)
+ imagery_offset_db (35405)
+ javafx-windows (35458)
+ jaxb (35092)
+ jna (35092)
+ jts (35122)
+ measurement (35579)
+ opendata (35405)
+ pbf (35636)
+ reverter (35474)
+ todo (30306)
+ turnrestrictions (35405)
+ utilsplugin2 (35476)

Last errors/warnings:
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=401
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=401
- E: Authentication failed - <html>Authentication at the OSM server with the OAuth token 'JdvByeMcWMkbBmfSzpKLMc7kmOLlj1vp6jDVkwGe' failed.<br>Please launch the preferences dialog and retrieve another OAuth token.</html>
- W: Warning - <html>Cannot open 1 file because file does not exist or no suitable file importer is available.<br><ul><li>%UserProfile%\Downloads\singapore (<i>does not exist</i>)</li></ul></html>
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=401
- E: Authentication failed - <html>Authentication at the OSM server with the OAuth token 'JdvByeMcWMkbBmfSzpKLMc7kmOLlj1vp6jDVkwGe' failed.<br>Please launch the preferences dialog and retrieve another OAuth token.</html>
- E: Handled by bug report queue: java.lang.NullPointerException

OSM API: https://amk.osm.nextbillion.io/api


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (15) of main
java.lang.NullPointerException
	at org.openstreetmap.josm.data.coor.LatLon.<init>(LatLon.java:170)
	at org.openstreetmap.josm.data.projection.AbstractProjection.latlon2eastNorth(AbstractProjection.java:120)
	at org.openstreetmap.josm.data.projection.Projecting.latlon2eastNorth(Projecting.java:30)
	at org.openstreetmap.josm.io.GeoJSONWriter.getCoorArray(GeoJSONWriter.java:167)
	at org.openstreetmap.josm.io.GeoJSONWriter.access$000(GeoJSONWriter.java:48)
	at org.openstreetmap.josm.io.GeoJSONWriter$GeometryPrimitiveVisitor.lambda$visit$0(GeoJSONWriter.java:142)
	at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
	at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source)
	at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
	at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.util.stream.ReferencePipeline.forEach(Unknown Source)
	at org.openstreetmap.josm.io.GeoJSONWriter$GeometryPrimitiveVisitor.visit(GeoJSONWriter.java:143)
	at org.openstreetmap.josm.data.osm.Relation.accept(Relation.java:177)
	at org.openstreetmap.josm.io.GeoJSONWriter.appendPrimitive(GeoJSONWriter.java:191)
	at org.openstreetmap.josm.io.GeoJSONWriter.appendLayerFeatures(GeoJSONWriter.java:233)
	at org.openstreetmap.josm.io.GeoJSONWriter.write(GeoJSONWriter.java:88)
	at org.openstreetmap.josm.io.GeoJSONWriter.write(GeoJSONWriter.java:71)
	at org.openstreetmap.josm.gui.io.importexport.GeoJSONExporter.exportData(GeoJSONExporter.java:38)
	at org.openstreetmap.josm.actions.SaveActionBase.doInternalSave(SaveActionBase.java:144)
	at org.openstreetmap.josm.actions.SaveActionBase.doSave(SaveActionBase.java:112)
	at org.openstreetmap.josm.actions.SaveActionBase.doSave(SaveActionBase.java:99)
	at org.openstreetmap.josm.gui.layer.Layer$LayerSaveAsAction.actionPerformed(Layer.java:543)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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)
	Suppressed: javax.json.stream.JsonGenerationException: Generating incomplete JSON
		at org.glassfish.json.JsonGeneratorImpl.close(JsonGeneratorImpl.java:535)
		at org.glassfish.json.JsonPrettyGeneratorImpl.close(JsonPrettyGeneratorImpl.java:53)
		at org.glassfish.json.JsonWriterImpl.close(JsonWriterImpl.java:172)
		at org.openstreetmap.josm.io.GeoJSONWriter.write(GeoJSONWriter.java:91)
		... 45 more

Attachments (0)

Change History (5)

comment:1 by Don-vip, 4 years ago

Component: CoreCore geojson
Summary: ErrorNPE at GeoJSONWriter.getCoorArray

in reply to:  description comment:2 by skyper, 4 years ago

Replying to anonymous:

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-04-06 02:17:07 +0200 (Mon, 06 Apr 2020)
Build-Date:2020-04-06 00:18:43
Revision:16239
Relative:URL: ^/trunk

Please, update to tested version (17084) and check if it is still reproducible. Additionally, attaching a small example file to the ticket is always helpful. Thanks

comment:3 by Don-vip, 4 years ago

Milestone: 20.10
Owner: changed from team to Don-vip
Status: newassigned

comment:4 by Don-vip, 4 years ago

Resolution: fixed
Status: assignedclosed

In 17320/josm:

fix #20066 - NPE with nodes without coordinates

comment:5 by Don-vip, 4 years ago

Milestone: 20.1020.11

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
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.