Skip to content

创建channel失败 #8

Description

@Mac24

捕获

报错信息:
2020/01/14 10:16:02 [Recovery] 2020/01/14 - 10:16:02 panic recovered:
POST /defChannelAndBuild HTTP/1.1
Host: localhost:4991
Accept-Encoding: gzip
Content-Length: 146
Content-Type: application/json;charset=utf-8
User-Agent: Go-http-client/1.1

runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:82 (0xc34a30)
panicmem: panic(memoryError)
/usr/local/go/src/runtime/signal_unix.go:390 (0xc3485f)
sigpanic: panicmem()
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/hyperledger/fabric-sdk-go/pkg/fabsdk/context.go:53 (0x16b25d5)
(*FabricSDK).newIdentity: orgName: sdk.provider.IdentityConfig().Client().Organization,
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/hyperledger/fabric-sdk-go/pkg/fabsdk/fabsdk.go:368 (0x16b637d)
(*FabricSDK).Context.func1: identity, err := sdk.newIdentity(options...)
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/hyperledger/fabric-sdk-go/pkg/client/msp/client.go:67 (0x16b7dab)
New: ctx, err := clientProvider()
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/jonluo94/baasmanager/baas-core/core/fasdk/fasdk.go:76 (0x1727a7c)
(*FabricClient).CreateChannel: mspClient, err := mspclient.New(f.sdk.Context(), mspclient.WithOrg(f.Orgs[0]))
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/service/fabric_service.go:94 (0x174226f)
FabricService.defChannelAndBuild: fsdk.CreateChannel(fautil.GetChannelTx(chain, paths.ArtifactPath))
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/gin-gonic/gin/context.go:124 (0x119d589)
(*Context).Next: c.handlersc.index
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/gin-gonic/gin/recovery.go:83 (0x11af269)
RecoveryWithWriter.func1: c.Next()
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/gin-gonic/gin/context.go:124 (0x119d589)
(*Context).Next: c.handlersc.index
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/jonluo94/baasmanager/baas-core/common/gintool/ginlog.go:16 (0x11be7f0) Logger.func1: c.Next()
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/gin-gonic/gin/context.go:124 (0x119d589)
(*Context).Next: c.handlersc.index
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/gin-gonic/gin/gin.go:389 (0x11a6a71)
(*Engine).handleHTTPRequest: c.Next()
/opt/gopath/src/github.com/jonluo94/baasmanager/baas-fabricengine/vendor/github.com/gin-gonic/gin/gin.go:351 (0x11a62a3)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/go/src/net/http/server.go:2774 (0xed1157)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/go/src/net/http/server.go:1878 (0xeccd40)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/go/src/runtime/asm_amd64.s:1337 (0xc4c3c0)
goexit: BYTE $0x90 // NOP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions