You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2020/08/04 02:52:44 UTC
[GitHub] [dubbo-go] xc19950304 opened a new issue #690: dubbogo-hessian反序列化问题
xc19950304 opened a new issue #690:
URL: https://github.com/apache/dubbo-go/issues/690
我们这边在用dubbogo的hessian序列化反序列化的功能,目前出现了个问题就是反序列化失败,当对象中存在Byte数组时,无法反序列化,且报错“error list tag: `0x29”`
`type Circular struct {
Num int
Previous *Circular
Next *Circular
ResponseDataBytes []byte
}
func (Circular) JavaClassName() string {
return "com.company.Circular"
}
func main() {
c := &Circular{}
c.Num = 12345
c.Previous = c
c.Next = c
c.ResponseDataBytes = []byte(`{"a":"b"}`)
e := hessian.NewEncoder()
err := e.Encode(c)
if err != nil {
panic(err)
}
bytes := e.Buffer()
decoder := hessian.NewDecoder(bytes)
decode, err := decoder.Decode()
if err != nil {
panic(err)
}
fmt.Println(decode)
}`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go] AlexStocks closed issue #690: Fix: dubbogo-hessian2 can not unmarshal []byte
Posted by GitBox <gi...@apache.org>.
AlexStocks closed issue #690:
URL: https://github.com/apache/dubbo-go/issues/690
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org