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 06:15:59 UTC

[GitHub] [dubbo-go-hessian2] xc19950304 opened a new issue #214: Fix: dubbogo-hessian2 can not unmarshal []byte

xc19950304 opened a new issue #214:
URL: https://github.com/apache/dubbo-go-hessian2/issues/214


   当对象中存在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 = 1234
   
   	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-hessian2] wongoo closed issue #214: Fix: dubbogo-hessian2 can not unmarshal []byte

Posted by GitBox <gi...@apache.org>.
wongoo closed issue #214:
URL: https://github.com/apache/dubbo-go-hessian2/issues/214


   


----------------------------------------------------------------
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-hessian2] wongoo commented on issue #214: Fix: dubbogo-hessian2 can not unmarshal []byte

Posted by GitBox <gi...@apache.org>.
wongoo commented on issue #214:
URL: https://github.com/apache/dubbo-go-hessian2/issues/214#issuecomment-668488113


   thanks for reporting this issue with details, we will fix it asap


----------------------------------------------------------------
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