ostyle1234567 2017-11-09 03:30 采纳率: 0%
浏览 3984

xStream XML转换为对象有错误 有人帮忙看一下吗

Exception in thread "Thread-7" com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field com.xlpayment.nucc.entity.MsgHeader.SignSN
---- Debugging information ----
field : SignSN
class : com.xlpayment.nucc.entity.MsgHeader
required-type : com.xlpayment.nucc.entity.MsgHeader
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /root/MsgHeader/SignSN
class[1] : com.xlpayment.nucc.entity.AuthDataEntity

version : null

at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.determineType(AbstractReflectionConverter.java:453)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:294)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:322)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1058)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1042)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:913)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:904)
at com.xlpayment.nucc.service.XstreamManagerServiceImpl.receiveReqBankDataXML(XstreamManagerServiceImpl.java:58)
at com.xlpayment.nucc.business.NuccTransBusi.AuthAndSign(NuccTransBusi.java:22)
at com.xlpayment.nucc.websocket.NuccServer.run(NuccServer.java

header类
private String SndDt;
private String MsgTp;
private String IssrId;
private String Drctn;
private String SignSn;
private String NcrptnSn;
private String DgtlEnvlp;

  • 写回答

2条回答 默认 最新

  • ostyle1234567 2017-11-09 03:31
    关注

    header

    private String SndDt;
    private String MsgTp;
    private String IssrId;
    private String Drctn;
    private String SignSn;
    private String NcrptnSn;
    private String DgtlEnvlp;

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料