使用 Neo4j 导入精灵所遇问题的解决办法
发布于 5 年前 作者 zhizh 3148 次浏览 来自 分享

由微云数聚(北京)科技有限公司开发的 “Neo4j 导入精灵”,能够方便地直接导入 Excel、MySQL 等格式的数据,深受广大 Neo4j 爱好者喜爱。其下载安装地址是: http://we-yun.com:8000/ToNeo4j 案例下载地址是: http://we-yun.com/neo4jguide/微云.xlsx 其具体使用方法在《Neo4j 权威指南》第九章 9.10 节有详细介绍。

但是,最近有许多读者和开发者反映,在 Neo4j 3.5 版本上,导入精灵不能正常工作。出现如下报错:

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.Exception: Received an unexpected HTTP status when executing the request.

The response status was: 401 Unauthorized

The response from Neo4j (which might include useful detail!) was: {
"errors" : [ {
	"code" : "Neo.ClientError.Security.Unauthorized",
	"message" : "Invalid username or password."
} ]
}
在 Neo4jClient.GraphClient.Connect(NeoServerConfiguration configuration)
在 ToNeo4j.Neo4jDriver20..ctor(String server, String username, String password)
在 ToNeo4j.Importer..ctor(IReader reader, String server, String userame, String password)
在 ToNeo4j.MainForm.btExcel_Click(Object sender, EventArgs e)
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

经查,这是导入精灵对新版本的兼容性问题所导致的密码问题。我们将在新版本中解决这个兼容性问题。在新版本发布之前,给大家提供一个解决办法:找到 neo4j.conf 文件,将 #dbms.security.auth_enabled=false 中的 # 去掉,变为: dbms.security.auth_enabled=false 重新启动就好了。

2 回复

老师,请教一下如果节点有多标签,那么节点数据返回后台是如何接收的 后台执行:@Query(“match (a:Phone) return a limit {Num}”) 报错:Multiple classes found in type hierarchy that map to: [Phone, a_User]; nested exception is org.neo4j.ogm.exception.core 问题描述:当执行语句时,查询的节点由于多标签的存在,无法完成与实体类的映射。 TIM图片20190506095538.png

建议直接解析 JSON.

回到顶部