Modify

Opened 3 years ago

Closed 22 months ago

#13696 closed defect (fixed)

NPE at GTFSImporterDialog.setGTFSStopTableModel

Reported by: cedric780@… Owned by: roland.olbricht
Priority: normal Milestone:
Component: Plugin public_transport Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

I am looking for a way to import some public transport stop positions from the french STIF
OpenData service.

  1. Go to https://opendata.stif.info/explore/dataset/offre-horaires-tc-gtfs-idf/table/
  2. Download stif_gtfs.zip
  3. Extract the stops.txt
  4. With the 'public_transport' plugin open the stops.txt file

What is the expected result?

I don't know exactly, it's the first time I try this function.
I even expected an OutOfMemoryError from the size of the file.

What happens instead?

NullPointerException.

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

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-09-06 00:16:07 +0200 (Tue, 06 Sep 2016)
Build-Date:2016-09-05 22:21:00
Revision:10966
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10966 fr) Windows 10 64-Bit
Memory Usage: 1092 MB / 3616 MB (146 MB allocated, but free)
Java version: 1.8.0_102-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-14cb3775, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=60134, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAC1Eam5scC5hcHBsaWNhdGlvbi5ocmVmPWh0dHBzOi8vam9zbS5vcGVuc3RyZWV0bWFwLmRlL2Rvd25sb2FkL2pvc20uam5scAA=]
Dataset consistency test: No problems found

Plugins:
+ BuildingGeneralization (1010)
+ DirectDownload (32699)
+ PicLayer (32796)
+ ShapeTools (1220)
+ buildings_tools (32944)
+ cadastre-fr (32950)
+ ejml (32680)
+ geotools (32813)
+ imagery_offset_db (32796)
+ imageryadjust (32699)
+ jts (32699)
+ public_transport (32796)
+ public_transport_layer (32817)
+ rasterfilters (32877)
+ routes (32842)
+ utilsplugin2 (32815)

Last errors/warnings:
- W: Old style SideButton usage for action org.openstreetmap.josm.plugins.rasterfilters.actions.ShowLayerFiltersDialog@4a2eba62
- E: java.lang.NullPointerException


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-2 (38) of javawsApplicationThreadGroup
java.lang.NullPointerException
	at public_transport.GTFSImporterDialog.setGTFSStopTableModel(GTFSImporterDialog.java:340)
	at public_transport.GTFSImporterAction.refreshData(GTFSImporterAction.java:203)
	at public_transport.GTFSImporterAction.actionPerformed(GTFSImporterAction.java:98)
	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)

Attachments (1)

stops.txt.zip (1003.0 KB) - added by anonymous 3 years ago.
The stops.txt file

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by anonymous

Attachment: stops.txt.zip added

The stops.txt file

comment:1 Changed 2 years ago by Don-vip

Summary: NullPointerException with 'public_transport' plugin when importing stops.txt from STIFNPE with 'public_transport' plugin when importing stops.txt from STIF

comment:2 Changed 2 years ago by Don-vip

Summary: NPE with 'public_transport' plugin when importing stops.txt from STIFNPE at GTFSImporterDialog.setGTFSStopTableModel

comment:3 Changed 22 months ago by Don-vip

Resolution: fixed
Status: newclosed

Fixed in [o33770:33771].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain roland.olbricht.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.