Trying to edit an association which is connected to another association not existing in the database anymore leads to error message
@jri This test is a variation of the test described in https://git.dmx.systems/dmx-platform/dmx-platform/issues/277#note_11250.
Click stream
- Topicmap A in browser tab 1 and Topicmap B in browser tab 2
- Draw an association between two "Fachliche Begriffe": Automatically an association of type "Attribut" is drawn (correct)
- Create a new Note Topic
- Draw an Association between the Attribut Association and the not Topic
- Open an edit dialogue for the new Association
- Delete the original "Attribut" Association on Topicmap A
- Click "Save" in the edit dialogue on Topicmap B
NOTE: The below error messages are displayed. The browser error message remains even after reloading the topicmap (!). After restarting the server however no error message appears anymore. The respective association don't exist anymore - just the remaining note topic.
Error message in browser
500 Server Error
{ "exception": "java.lang.RuntimeException", "message": "An error occurred in the ServiceRequestFilter of plugin \"DMX Caching\"", "cause": { "exception": "java.lang.RuntimeException", "message": "Fetching modification time of object 106843 failed", "cause": { "exception": "org.neo4j.graphdb.NotFoundException", "message": "Node[106843]" } } }
Corresponding server log
SCHWERWIEGEND: Request "GET /core/association/106843?children=true&assoc_children=true" failed. Responding with 500 (Internal Server Error). The original exception/error is:
java.lang.RuntimeException: An error occurred in the ServiceRequestFilter of plugin "DMX Caching"
at systems.dmx.core.impl.EventManager.dispatchEvent(EventManager.java:96)
at systems.dmx.core.impl.EventManager.fireEvent(EventManager.java:59)
at systems.dmx.core.impl.JerseyRequestFilter.filter(JerseyRequestFilter.java:27)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1465)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1411)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1360)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1350)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:339)
at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:300)
at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:76)
at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:49)
at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Fetching modification time of object 106843 failed
at systems.dmx.timestamps.TimestampsPlugin.getModificationTime(TimestampsPlugin.java:94)
at systems.dmx.caching.CachingPlugin.serviceRequestFilter(CachingPlugin.java:64)
at systems.dmx.core.impl.CoreEvent$22.dispatch(CoreEvent.java:250)
at systems.dmx.core.impl.EventManager.dispatchEvent(EventManager.java:83)
... 41 more
Caused by: org.neo4j.graphdb.NotFoundException: Node[106843]
at org.neo4j.kernel.impl.core.NodeManager.getNodeById(NodeManager.java:367)
at org.neo4j.kernel.InternalAbstractGraphDatabase.getNodeById(InternalAbstractGraphDatabase.java:860)
at systems.dmx.storage.neo4j.Neo4jStorage.fetchNode(Neo4jStorage.java:1078)
at systems.dmx.storage.neo4j.Neo4jStorage.hasProperty(Neo4jStorage.java:466)
at systems.dmx.core.impl.CoreServiceImpl.hasProperty(CoreServiceImpl.java:351)
at systems.dmx.timestamps.TimestampsPlugin.getModificationTime(TimestampsPlugin.java:92)
... 44 more
Aug 02, 2019 5:43:22 PM systems.dmx.topicmaps.TopicmapsPlugin getTopicmap
INFORMATION: Fetching topicmap 111723, includeChildren=false