Skip to content

企微接收客户标签变更事件序列化成Bean异常 #2137

Description

@lixiaojie09

简要描述

接收客户标签变更事件时,
<xml> <SuiteId> <![CDATA[ww122cacf30fe7f949]]> </SuiteId> <AuthCorpId> <![CDATA[ww673a375b380d45e0]]> </AuthCorpId> <InfoType> <![CDATA[change_external_tag]]> </InfoType> <TimeStamp>1622182830</TimeStamp> <ChangeType> <![CDATA[update]]> </ChangeType> <Id> <![CDATA[etEsNADQAAaiB0cWCSDFiJ2qCap-ww9A]]> </Id> <TagType> <![CDATA[tag]]> </TagType> </xml>
使用代码 WxCpTpXmlMessage.fromXml(decryptXml) 转成 WxCpTpXmlMessage 出错。

模块版本情况

  • WxJava 模块名: weixin-java-cp
  • WxJava 版本号: 4.0.8.B

详细描述

CoversionException日志
---- Debugging information ----
cause-exception : java.lang.NumberFormatException
cause-message : For input string: "etEsNADQAAaiB0cWCSDFiJ2qCap-ww2b"
class : java.lang.Integer
required-type : java.lang.Integer
converter-type : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter : com.thoughtworks.xstream.converters.basic.IntConverter
line number : 1
class[1] : me.chanjar.weixin.cp.bean.message.WxCpTpXmlMessage
required-type[1] : me.chanjar.weixin.cp.bean.message.WxCpTpXmlMessage
converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
version : not available

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions