Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException with DaysOfNonOperation #331

Open
GoogleCodeExporter opened this issue Mar 3, 2016 · 3 comments
Open

NullPointerException with DaysOfNonOperation #331

GoogleCodeExporter opened this issue Mar 3, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 28 May 2012 at 5:04

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 28 May 2012 at 8:17

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

removing 'DaysOfNonOperation' branch/data from input xml files helped

Original comment by [email protected] on 30 May 2012 at 3:23

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 31 May 2012 at 5:06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant