Menu

Dec 2013 Updates: Feed Spec 1.22 Updates, POM Dependency Cleanup

Jim Doyle
2013-12-10
2018-04-11
  • Jim Doyle

    Jim Doyle - 2013-12-10

    The Adapter was brought up to date with the 1.22 changes in the feed (http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf). Further, I removed the old 2006-era JAXB plugins and brought the build for the 1.0.2 adapter JAR up to date with the current maven/mojo plugin basis.

    The ESB Pumper and Logger have been fully brought up to date for Apache ActiveMQ 5.9, Spring 2.2.5, Spring Integration 3.1. This will permit the pumper to be used directly with TomEE+plus and it's bundled ActiveMQ broker for those wishing a fast-past to Java EE 6 development against an automated feed.

     
  • Garret Duffy

    Garret Duffy - 2018-04-11

    Hi, I am trying to run your code (working in the nextbus-adapter-beanshelled-1.0.1-RELEASE) on a NextBus feed. Everything goes fine until I try and acces the Route Configuration:

    bsh % route66=Route.find(routes4ttc, "66");
    bsh % print(route66);
    Route{agency=Agency{id=ttc, title=Toronto Transit Commission, shortTitle=Toronto TTC, regionTitle=Ontario}, tag=66, title=66-Prince Edward}
    bsh % route66Conf=svc.getRouteConfiguration(route66);
    // Error: // Uncaught Exception: Method Invocation svc.getRouteConfiguration : at Line: 1 : in file: <unknown file=""> : svc .getRouteConfiguration ( route66 ) </unknown>

    Target exception: net.sf.nextbus.publicxmlfeed.service.FatalServiceException: javax.xml.bind.UnmarshalException
    - with linked exception:
    [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6979; cvc-complex-type.3.2.2: Attribute 'branch' is not allowed to appear in element 'direction'.]

    net.sf.nextbus.publicxmlfeed.service.FatalServiceException: javax.xml.bind.UnmarshalException
    - with linked exception:
    [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6979; cvc-complex-type.3.2.2: Attribute 'branch' is not allowed to appear in element 'direction'.]
    at net.sf.nextbus.publicxmlfeed.impl.NextbusService.getRouteConfiguration(NextbusService.java:146)

    I was wondering if this is a problem with the code or the NextBus feed? I am simply trying to log the data in the vehicleLocation feed but thought I would experiment with these general commands first.

    Many thanks for providing this code to us!

    Any advice on my issue greatly appreciated.

    Garret

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.