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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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