我是 Go 的新手,我正在尝试使用 Cayley 和 BoltDB 作为后端数据存储来设置一个简单的图形数据库。现在我正在尝试从命令行运行 cayley。运行此命令:cayley http --db="bolt"生成此错误:panic: runtime error: invalid memory address or nil pointer dereference[signal 0xb code=0x1 addr=0x8 pc=0x2517e7]goroutine 16 [running]:runtime.panic(0x6ae9e0, 0xbc1f44) /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5github.com/boltdb/bolt.(*Bucket).Get(0x0, 0xc208000b68, 0x4, 0x8, 0x0, 0x0, 0x0) /Users/tbrown/Development/src/github.com/boltdb/bolt/bucket.go:256 +0x57github.com/google/cayley/graph/bolt.(*QuadStore).getInt64ForKey(0xc20800eff0, 0xc208028270, 0x750ac0, 0x4, 0x0, 0xc20800e0b8, 0x0, 0x0) /Users/tbrown/Development/src/github.com/google/cayley/graph/bolt/quadstore.go:437 +0xd9github.com/google/cayley/graph/bolt.func·009(0xc208028270, 0x0, 0x0) /Users/tbrown/Development/src/github.com/google/cayley/graph/bolt/quadstore.go:452 +0x76github.com/boltdb/bolt.(*DB).View(0xc20807e180, 0xc2080a9a90, 0x0, 0x0) /Users/tbrown/Development/src/github.com/boltdb/bolt/db.go:490 +0xe4github.com/google/cayley/graph/bolt.(*QuadStore).getMetadata(0xc20800eff0, 0x0, 0x0) /Users/tbrown/Development/src/github.com/google/cayley/graph/bolt/quadstore.go:458 +0x5a我觉得我在某处遗漏了一步,但我找不到关于将 Cayley 与 Bolt 结合使用的任何好的文档。有什么建议?
1 回答
- 1 回答
- 0 关注
- 192 浏览
添加回答
举报
0/150
提交
取消