收藏
回答

调用退款接口出错org.xml.sax.SAXParseException

参数如下:
{"out_trade_no":"1145605634234867736","out_refund_no":"1145605727147089946_r","refund_account":"REFUND_SOURCE_UNSETTLED_FUNDS","total_fee":"3800","refund_fee":"3800","refund_fee_type":"CNY","sub_mch_id":"1509620871"}

异常如下: 
org.xml.sax.SAXParseException: Premature end of file.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) ~[?:1.8.0_45]
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348) ~[?:1.8.0_45]
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) ~[?:1.8.0_45]
	at com.github.wxpay.sdk.WXPayUtil.xmlToMap(WXPayUtil.java:43) ~[wxpay-sdk-0.0.6.jar:0.0.6]
	at com.github.wxpay.sdk.WXPay.processResponseXml(WXPay.java:193) ~[wxpay-sdk-0.0.6.jar:0.0.6]
	at com.github.wxpay.sdk.WXPay.refund(WXPay.java:506) ~[wxpay-sdk-0.0.6.jar:0.0.6]
	at com.github.wxpay.sdk.WXPay.refund(WXPay.java:483) ~[wxpay-sdk-0.0.6.jar:0.0.6]


请问:退款请求参数有问题吗?为什么会报错?


回答关注问题邀请回答
收藏

1 个回答

  • 阿庚
    阿庚
    2019-09-06

    我也报这个错,请问解决了吗

    2019-09-06
    有用
    回复
登录 后发表内容