InteractiveGraph-neo4j
InteractiveGraph-neo4j copied to clipboard
请教一下无法显示数据节点的问题
您好,按照您知乎上步骤,我发现我打开的example只有界面,没有节点,我仔细按照您的步骤看了几遍,我认为几个可能出错的地方,麻烦您指点一下:
1.graphserver/WEB_INF/conf1.properties中: 我把这个改成neo4j.boltUrl=bolt://localhost:7687 ,请问这样写是否有误?(我不太确定到底是下面哪个端口) 我的neo4j网页是:http://localhost:7474/browser/ ,主界面显示“You are connected as user to neo4j://localhost:7687”
- 您说app.loadGson改成下面一段文字app.connect("http://localhost:8080/graphserver/connector-bolt"); 这个是将整个app.loadGson函数全部替换,对吗?
3.“这里localhost:8080为graphserver的地址”。 我打开http://localhost:8080/graphserver/是有文字显示的,所以我的graphserver地址就是localhost:8080,这样理解对吗?
我的网页日志显示: Failed to load resource: the server responded with a status of 500 ()
麻烦您指点一下我哪里有问题?感谢您了
你好! 麻烦提供下500报错的详细信息, 以及conf1.properties内容.
您好! conf1.properties: #allowOrigin=http://localhost:63342 allowOrigin=* backendType=neo4j-bolt neo4j.boltUrl=bolt://localhost:7687 neo4j.boltUser=neo4j neo4j.boltPassword=123 neo4j.regexpSearchFields=name neo4j.strictSearchFields=label:name neo4j.nodeCategories=Person:人物,Movie:电影 layout_on_startup=true visNodeProperty.label==$prop.name visNodeProperty.value==$prop.rate visNodeProperty.image==$prop.image visNodeProperty.x ==$prop.x visNodeProperty.y ==$prop.y visNodeProperty.info=
#if($prop.image)
#end
${prop.name}
- 评分:${node.rate}
- 类型:${node.category}
- 时长:${node.length}分钟
- 语言:${node.language}
报错信息: HTTP状态 500 - 内部服务器错误 类型 异常报告 消息 Servlet[connector1]的Servlet.init()引发异常 描述 服务器遇到一个意外的情况,阻止它完成请求。
例外情况 javax.servlet.ServletException: Servlet[connector1]的Servlet.init()引发异常 ... java.base/java.lang.Thread.run(Thread.java:834) 根本原因 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.grapheco.server.neo4j.Neo4jSetting#0' defined in class path resource [neo4j-base.xml]: Cannot create inner bean 'org.grapheco.server.neo4j.Neo4jGraphMetaDBInMemory#55377b9a' of type [org.grapheco.server.neo4j.Neo4jGraphMetaDBInMemory] while setting bean property 'graphMetaDB'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.grapheco.server.neo4j.Neo4jGraphMetaDBInMemory#55377b9a' defined in class path resource [neo4j-base.xml]: Invocation of init method failed; nested exception is org.neo4j.driver.v1.exceptions.ServiceUnavailableException: Connection to the database terminated. This can happen due to network instabilities, or due to restarts of the database.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.grapheco.server.neo4j.Neo4jGraphMetaDBInMemory#55377b9a' defined in class path resource [neo4j-base.xml]: Invocation of init method failed; nested exception is org.neo4j.driver.v1.exceptions.ServiceUnavailableException: Connection to the database terminated. This can happen due to network instabilities, or due to restarts of the database
org.neo4j.driver.v1.exceptions.ServiceUnavailableException: Connection to the database terminated. This can happen due to network instabilities, or due to restarts of the database
你好, 从错误信息
org.neo4j.driver.v1.exceptions.ServiceUnavailableException: Connection to the database terminated.
看出, 应该是链接Neo4j时遇到了异常. 请检查用户名密码是否正确, Neo4j版本是否一致.
好的,感谢您嘞,我换个版本试一下,我的是4.4.4版本,感觉很有可能是版本的问题 XD
您好,我更换为neo4j 3.5.12版本之后,出现两个这样的问题:(之前4.4.4版本也有这个提示)
DevTools failed to load source map: Could not load content for chrome-extension://ncennffkjdiamlpmcbajkmaiiiddgioo/js/xl-content.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for http://localhost:8080/igraph/lib/interactive-graph-0.1.0/interactive-graph.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
类型 状态报告 消息 请求的资源[/igraph/lib/interactive-graph-0.1.0/interactive-graph.map]不可用 描述 源服务器未能找到目标资源的表示或者是不愿公开一个已经存在的资源表示。
请问这是缺少什么文件嘛?
你好,这个错误不是关键问题, 请截一张浏览器控制台的报错截图吗?
您好,我与adios1995遇到同样问题,因此我期望用conf3.properties直接调用graphserver\WEB-INF\honglou.json。但也是提示同样的问题,浏览器报告404错误。期望得到您的解答!

另外,如果使用neo4j-bolt调用neo4j数据库,目前Neo4j Desktop 1.4.14版本软件里的数据库版本范围支持3.5.17-4.4.5,请问应该用哪个版本的建立local DBMS?
建议3.5 版本