Issue 291 in googletransitdatafeed: Converting the NPTDR: calendarDuplicateService exception

15 views
Skip to first unread message

googletran...@googlecode.com

unread,
Jun 18, 2011, 10:36:42 AM6/18/11
to googletran...@googlegroups.com
Status: New
Owner: ----

New issue 291 by t...@tombh.co.uk: Converting the NPTDR:
calendarDuplicateService exception
http://code.google.com/p/googletransitdatafeed/issues/detail?id=291

What steps will reproduce the problem?
Convert any of TXC files supplied by http://data.gov.uk/dataset/nptdr

Error:
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1,
Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at
transxchange2GoogleTransitHandler.TransxchangeCalendar.calendarDuplicateService(TransxchangeCalendar.java:569)
at
transxchange2GoogleTransitHandler.TransxchangeTrips$1TripStructure.createTripStructure(TransxchangeTrips.java:205)
at
transxchange2GoogleTransitHandler.TransxchangeTrips.endElement(TransxchangeTrips.java:257)
at
transxchange2GoogleTransitHandler.TransxchangeHandlerEngine.endElement(TransxchangeHandlerEngine.java:344)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2938)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:331)
at
transxchange2GoogleTransitHandler.TransxchangeHandler.parse(TransxchangeHandler.java:153)
at
Transxchange2GoogleTransit.main(Transxchange2GoogleTransit.java:102

What version of the product are you using? On what operating system?
transxchange2GTFS 1.7.1 on Ubuntu Natty

googletran...@googlecode.com

unread,
Jan 3, 2012, 6:19:45 AM1/3/12
to googletran...@googlegroups.com
Updates:
Labels: Language-Java App-Transxchange2GoogleTransit

Comment #1 on issue 291 by bdfer...@google.com: Converting the NPTDR:
calendarDuplicateService exception
http://code.google.com/p/googletransitdatafeed/issues/detail?id=291

(No comment was entered for this change.)

googletran...@googlecode.com

unread,
Mar 17, 2012, 11:30:33 AM3/17/12
to googletran...@googlegroups.com

Comment #2 on issue 291 by desired....@gmail.com: Converting the NPTDR:
calendarDuplicateService exception
http://code.google.com/p/googletransitdatafeed/issues/detail?id=291

Hi,
The attached patch worked around this problem for me. Do not know the
consequences, but at least managed to make _something_ working.

More info here:
http://m.jakstys.lt/tech/2012/03/converting-nptdr-data-to-gtfs/

Attachments:
0001-Comment-out-part-that-throws-up.patch 1.6 KB

googletran...@googlecode.com

unread,
Jun 8, 2012, 4:38:54 PM6/8/12
to googletran...@googlegroups.com

Comment #3 on issue 291 by t...@tombh.co.uk: Converting the NPTDR:
calendarDuplicateService exception
http://code.google.com/p/googletransitdatafeed/issues/detail?id=291

Excellent, thanks :)I'll give it a go.

googletran...@googlecode.com

unread,
Jan 26, 2013, 3:05:52 PM1/26/13
to googletran...@googlegroups.com

Comment #4 on issue 291 by Joachim....@gmail.com: Converting the NPTDR:
calendarDuplicateService exception
http://code.google.com/p/googletransitdatafeed/issues/detail?id=291

Also, please see issue 356


googletran...@googlecode.com

unread,
Jan 26, 2013, 3:07:32 PM1/26/13
to googletran...@googlegroups.com

Comment #5 on issue 291 by Joachim....@gmail.com: Converting the NPTDR:
calendarDuplicateService exception
http://code.google.com/p/googletransitdatafeed/issues/detail?id=291

Issue 356 has been merged into this issue.

Reply all
Reply to author
Forward
0 new messages