jyawn / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

NullPointerException with DaysOfNonOperation #331

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Running transxchange2GTFS for Edinburgh, UK data 
(other data not analysed) sourced from traveline.info
sample file attached to this issue

2. Reported exception:
Exception in thread "main" java.lang.NullPointerException
        at java.lang.StringBuffer.<init>(Unknown Source)
        at transxchange2GoogleTransitHandler.ValueList.addValue(ValueList.java:26)
        at transxchange2GoogleTransitHandler.TransxchangeCalendar.calendarDuplicateService(TransxchangeCalendar.java:565
)
        at transxchange2GoogleTransitHandler.TransxchangeTrips$1TripStructure.createTripStructure(TransxchangeTrips.java
:228)
        at transxchange2GoogleTransitHandler.TransxchangeTrips.endElement(TransxchangeTrips.java:280)
        at transxchange2GoogleTransitHandler.TransxchangeHandlerEngine.endElement(TransxchangeHandlerEngine.java:343)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Sou
rce)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at transxchange2GoogleTransitHandler.TransxchangeHandler.parse(TransxchangeHandler.java:164)
        at Transxchange2GoogleTransit.main(Transxchange2GoogleTransit.java:107)

3. removing 'DaysOfNonOperation' branch helped

I am using version 1.7.5 on windows 7 

Original issue reported on code.google.com by kgruszcz...@gmail.com on 28 May 2012 at 5:04

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by Joachim....@gmail.com on 28 May 2012 at 8:17

GoogleCodeExporter commented 8 years ago
removing 'DaysOfNonOperation' branch/data from input xml files helped

Original comment by kgruszcz...@gmail.com on 30 May 2012 at 3:23

GoogleCodeExporter commented 8 years ago
I am looking into this now. There is definitely a problem with the service 
exceptions running from the year 1900 to 2012 and from 2050 to 9999 in 
combination with the indefinite service. This creates an excessive amount of 
records in the calendar_dates.txt file.
There is also a problem with the definition of the Bank Holidays. It is empty; 
it needs to be eliminated completely.
This is not the full story yet, but certainly needs to be changes at the data 
source.

Original comment by Joachim....@gmail.com on 31 May 2012 at 5:06