graphium-project / graphium-neo4j Goto Github PK
View Code? Open in Web Editor NEWGraphium implementation as a Neo4j plugin with Routing and Map Matching extensions
License: GNU General Public License v3.0
Graphium implementation as a Neo4j plugin with Routing and Map Matching extensions
License: GNU General Public License v3.0
Tunnels are always a problem for GPS devices. Usually there is no GPS information (track points) about trajectory parts within tunnels available. The Map Matcher has to route in those cases from one tunnel's end to the other.
In some situations GPS track points at the end of a tunnel are too erroneous so routing fails and skips the way segments representing the tunnel, resulting in gaps of the map matched path.
I am trying to follow the configurations instructions but am getting stuck when trying to set the state of the imported map. The following request results in a null pointer exception.
curl -X PUT "http://localhost:7474/graphium/metadata/graphs/osm/versions/1/state/ACTIVE"
08:04:24,250 ERROR [GlobalExceptionController.handleInconsistentStateException()] Error occured during request
java.lang.NullPointerException
at at.srfg.graphium.neo4j.service.impl.STRTreeCacheManager.update(STRTreeCacheManager.java:199)
at java.util.Observable.notifyObservers(Observable.java:159)
at at.srfg.graphium.core.service.impl.GraphVersionMetadataServiceImpl.setGraphVersionState(GraphVersionMetadataServiceImpl.java:116)
at at.srfg.graphium.api.service.impl.GraphVersionMetadataAPIServiceImpl.setGraphVersionState(GraphVersionMetadataAPIServiceImpl.java:156)
at at.srfg.graphium.api.service.impl.GraphVersionMetadataAPIServiceImpl.changeState(GraphVersionMetadataAPIServiceImpl.java:216)
at at.srfg.graphium.api.controller.GraphVersionMetadataApiController.setGraphMetadataFields(GraphVersionMetadataApiController.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:748)
I am running neo4j in a docker container, and mounting the build plugins to the correct directory.
docker run -d -p 7474:7474 -p 7687:7687 -v ${PWD}/plugins:/var/lib/neo4j/plugins -v ${PWD}/conf:/var/lib/neo4j/conf --name neo4j neo4j:3.2.3
The issue seems to be with the metadata being passed the observable, but I can't say for sure.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.