These are chat archives for Nethereum/Nethereum

2nd
May 2016
rickzanux
@rickzanux
May 02 2016 20:02
hello everyone. good progress but im stuck in the definition of event. i can define contract events (alos if the final result is always 0 or null) but single events something is worng.
github.com/ethereum/go-ethereum/rpc.(*Server).serveRequest.func1(0xc082201d70, 0x19fb828, 0xc0834600a0)
/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/server.go:153 +0xbe
panic(0xe3b120, 0xc082008030)
/usr/local/go/src/runtime/panic.go:426 +0x4f7
encoding/json.(*decodeState).unmarshal.func1(0xc0863e7100)
/usr/local/go/src/encoding/json/decode.go:154 +0x8f
panic(0xe3b120, 0xc082008030)
/usr/local/go/src/runtime/panic.go:426 +0x4f7
github.com/ethereum/go-ethereum/eth/filters.(*NewFilterArgs).UnmarshalJSON(0xc0867b8380, 0xc0821260b1, 0xae, 0xaf, 0x0, 0x0)
/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/filters/api.go:387 +0x167d
encoding/json.(*decodeState).object(0xc082440a50, 0xc88440, 0xc0822ba690, 0x194)
/usr/local/go/src/encoding/json/decode.go:560 +0x14a
encoding/json.(*decodeState).value(0xc082440a50, 0xc88440, 0xc0822ba690, 0x194)
/usr/local/go/src/encoding/json/decode.go:367 +0x3a8
encoding/json.(*decodeState).array(0xc082440a50, 0xc6e280, 0xc082d809a0, 0x197)
/usr/local/go/src/encoding/json/decode.go:518 +0xa72
encoding/json.(*decodeState).value(0xc082440a50, 0xc40020, 0xc082d809a0, 0x16)
/usr/local/go/src/encoding/json/decode.go:364 +0x3c8
encoding/json.(*decodeState).unmarshal(0xc082440a50, 0xc40020, 0xc082d809a0, 0x0, 0x0)
/usr/local/go/src/encoding/json/decode.go:168 +0x19d
encoding/json.Unmarshal(0xc0821260b0, 0xb0, 0xb0, 0xc40020, 0xc082d809a0, 0x0, 0x0)
/usr/local/go/src/encoding/json/decode.go:96 +0x132
github.com/ethereum/go-ethereum/rpc.parsePositionalArguments(0xc0821260b0, 0xb0, 0xb0, 0xc082076960, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/json.go:273 +0x2bc
github.com/ethereum/go-ethereum/rpc.(*jsonCodec).ParseRequestArguments(0xc0834600a0, 0xc082076960, 0x1, 0x1, 0xc93080, 0xc082d80980, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/json.go:260 +0x1a3
github.com/ethereum/go-ethereum/rpc.(*Server).readRequest(0xc082201d70, 0x19fb828, 0xc0834600a0, 0x0, 0x0, 0x0, 0x180000, 0x0, 0x0)
/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/server.go:438 +0x1573
github.com/ethereum/go-ethereum/rpc.(*Server).serveRequest(0xc082201d70, 0x19fb828, 0xc0834600a0, 0xc083c97901, 0x1, 0x0, 0x0)
/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/server.go:183 +0x533
github.com/ethereum/go-ethereum/rpc.(*Server).ServeSingleRequest(0xc082201d70, 0x19fb828, 0xc0834600a0, 0x1)
/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/server.go:234 +0x4b
github.com/ethereum/go-ethereum/rpc.newJSONHTTPHandler.func1(0x19722f8, 0xc082cafad0, 0xc0842e00e0)
/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/http.go:121 +0x6ab
net/http.HandlerFunc.ServeHTTP(0xc082076da0, 0x19722f8, 0xc082cafad0, 0xc0842e00e0)
/usr/local/go/src/net/http/server.go:1618 +0x41
github.com/rs/cors.(*Cors).Handler.func1(0x19722f8, 0xc082cafad0, 0xc0842e00e0)
/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/rs/cors/cors.go:122 +0x185
net/http.HandlerFunc.ServeHTTP(0xc08203c700, 0x19722f8, 0xc082cafad0, 0xc0842e00e0)
/usr/local/go/src/net/http/server.go:1618 +0x41
net/http.serverHandler.ServeHTTP(0xc082276a80, 0x19722f8, 0xc082cafad0, 0xc0842e00e0)
/usr/local/go/src/net/http/server.go:2081 +0x1a5
net/http.(*conn).serve(0xc0863d9580)
/usr/local/go/src/net/http/server.go:1472 +0xf35
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2137 +0x455
this the result of: var docEvent = contract.GetEvent("DocumentEvent");
this happen in the output windows: Exception thrown: 'System.NullReferenceException' in mscorlib.dll
(this happen alos with the original code from github example). any idea?