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;

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!