runtime error: invalid memory address or nil pointer dereference

來源:互聯網
上載者:User
2018/06/27 21:24:20 http: panic serving 10.105.107.106:34988: runtime error: invalid memory address or nil pointer dereferencegoroutine 1242 [running]:net/http.(*conn).serve.func1(0xc4202fe000) /usr/local/go/src/net/http/server.go:1726 +0xd0panic(0x701840, 0x91fd70) /usr/local/go/src/runtime/panic.go:502 +0x229database/sql.(*Stmt).ExecContext(0x0, 0x7a82a0, 0xc4200160d0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/database/sql/sql.go:2224 +0x4adatabase/sql.(*Stmt).Exec(0x0, 0x0, 0x0, 0x0, 0x7efe6b4862a8, 0xc420312120, 0x0, 0xc420016115) /usr/local/go/src/database/sql/sql.go:2253 +0x65main.mpp(0x7a7fe0, 0xc420316000, 0xc42030c000) /root/golang_mysql_proxy_pool/pool.go:151 +0x12e1net/http.HandlerFunc.ServeHTTP(0x77e138, 0x7a7fe0, 0xc420316000, 0xc42030c000) /usr/local/go/src/net/http/server.go:1947 +0x44net/http.(*ServeMux).ServeHTTP(0x92c0a0, 0x7a7fe0, 0xc420316000, 0xc42030c000) /usr/local/go/src/net/http/server.go:2337 +0x130net/http.serverHandler.ServeHTTP(0xc420097110, 0x7a7fe0, 0xc420316000, 0xc42030c000) /usr/local/go/src/net/http/server.go:2694 +0xbcnet/http.(*conn).serve(0xc4202fe000, 0x7a8260, 0xc4202a6040) /usr/local/go/src/net/http/server.go:1830 +0x651created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:2795 +0x27b60 次點擊  
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.