pay.do接口报错,报错信息如下

来源:11-10 支付模块所有功能自测

慕数据4154996

2019-02-16

二月 16, 2019 4:31:27 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
二月 16, 2019 4:31:27 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
二月 16, 2019 4:31:29 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'dispatcher'
二月 16, 2019 4:31:52 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [dispatcher] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: expected value at column 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>支付宝 - 网上支付 安全快速!</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<meta name="description" content="中国最大的第三方电子支付服务提供商" />
<meta name="keywords" content="网上购物/网上支付/安全支付/安全购物/购物,安全/支付/支付宝,在线/付款,收款/网上,贸易/网上贸易" />


<link rel="icon" href="https://img.alipay.net:443/img/icon/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="https://img.alipay.net:443/img/icon/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="https://img.alipay.net:443/assets/c/global/global_v1.css?t=20081119.css" />
<link rel="stylesheet" type="text/css" href="https://img.alipay.net:443/assets/c/sys/sys.tabs.css?t=20080709.css" />
<link rel="stylesheet" type="text/css" href="https://img.alipay.net:443/assets/c/typography/ot.old.css?t=20080709.css" />
<link rel="stylesheet" type="text/css" href="https://img.alipay.net:443/assets/c/typography/as.kt.css?t=20080709.css" />


</head>
















		













<!--[if gte IE 6]>
<script type='text/javascript' src='https://img.alipay.net:443/js/sys/sys.object.js?t=20080122.js' defer='defer'></script>
<![endif]-->

<style type="text/css">
.topsearch{font-size:12px;position:relative;}
.topsearch form{margin:-2px 0 0 0;padding:0}
.topsearch form input{width:94px;height:13px;line-height:13px;border:1px solid #d7d7d7;padding:2px 2px 0 2px;font-size:12px}
.topsearch form button{width:40px;height:18px;margin:0 0 0 4px;border:1px solid #d7d7d7;background:#f3f3f3;padding:0}
.topsearch .xnews{border:0;position:absolute;top:0;right:-15px}
#Header #QuickLinks .QuickLinksMore{position:relative;}
#Header #QuickLinks .QuickLinksMore ol{display:none;position:absolute;top:18px;left:5px;float:none;width:65px;text-align:left;z-index:9999;text-align:left;border:1px solid #ccc;background:#fff;margin:0;padding:5px 0}
#Header #QuickLinks .QuickLinksMore ol li{display:block;float:none;background:none;margin:0;padding:2px 3px;text-align:center}
#Header #QuickLinks .QuickLinksMore ol li a{text-decoration:none;color:#666;margin:0;padding:0}
#Header #QuickLinks .QuickLinksMore ol li a:hover{color:#f60}
}
</style>
<!-- Header start-->
<div id="Header" class="clearfix">
  <!-- HeadTop start-->
  <div id="HeadTop">
                    <div id="Logo">
		<a href="https://www.alipay.com" class="logo"></a>
	</div>
            
       	 <div id="QuickLinks" style="padding-top:8px">
      	<ul>
			<li class="topsearch" style="background:none"><form id="topsearch" name="topsearch" action="https://help.alipay.com/support/search_new_result.htm" method="get" onsubmit="return checkTopSearch()">
							<input type="hidden" name="_form_token" value="9bc3370910fba6ea4521e1ee3b5380a06939fba7742e4e13a503272008cdbd40GZ00"/>
			<input id="word" name="word" type="text"/><button type="submit">搜索</button></form></li>
						
									<li><a href="https://help.alipay.com/support/index.htm" target="_blank">帮助中心</a></li>
			<li><a href="https://jifen.alipay.com/index.htm?src=yy_jifen_sy01" target="_blank">快乐积分</a></li>
			<li id="QuickLinksMore1" class="QuickLinksMore">
				<a href="https://wow.alipay.com?src=wow_home">哇!支付宝</a>
				<ol>
					<li><a href="https://wow.alipay.com/shop.htm?src=shop_home">促&nbsp;销&nbsp;街</a></li>
					<li><a href="https://wow.alipay.com/overseas.htm?src=overseas_home">海外购物</a></li>
					<li><a href="https://market.alipay.com/alipay/customer_index.htm?src=customer_home">合作商家</a></li>
					<li><a href="https://wow.alipay.com/services.htm?src=services_home">会员服务</a></li>
				</ol>
			</li>
			</ul>
<script type="text/javascript">
	at com.alipay.api.internal.util.json.ExceptionErrorListener.error(ExceptionErrorListener.java:7)
	at com.alipay.api.internal.util.json.JSONValidator.error(JSONValidator.java:211)
	at com.alipay.api.internal.util.json.JSONValidator.valid(JSONValidator.java:33)
	at com.alipay.api.internal.util.json.JSONValidator.validate(JSONValidator.java:20)
	at com.alipay.api.internal.util.json.JSONValidatingReader.read(JSONValidatingReader.java:20)
	at com.alipay.api.internal.parser.json.JsonConverter.toResponse(JsonConverter.java:38)
	at com.alipay.api.internal.parser.json.ObjectJsonParser.parse(ObjectJsonParser.java:27)
	at com.alipay.api.AbstractAlipayClient._execute(AbstractAlipayClient.java:396)
	at com.alipay.api.AbstractAlipayClient.execute(AbstractAlipayClient.java:103)
	at com.alipay.api.AbstractAlipayClient.execute(AbstractAlipayClient.java:90)
	at com.alipay.api.AbstractAlipayClient.execute(AbstractAlipayClient.java:84)
	at com.alipay.demo.trade.service.impl.AbsAlipayService.getResponse(AbsAlipayService.java:32)
	at com.alipay.demo.trade.service.impl.AbsAlipayTradeService.tradePrecreate(AbsAlipayTradeService.java:102)
	at com.alipay.demo.trade.service.impl.AlipayTradeServiceImpl.tradePrecreate(AlipayTradeServiceImpl.java:1)
	at com.mmall.service.impl.OrderServiceImpl.pay(OrderServiceImpl.java:472)
	at com.mmall.controller.portal.OrderController.pay(OrderController.java:92)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:214)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:748)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:931)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:833)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:807)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)


完全看不懂的报错信息,希望老师能帮忙看一下,谢谢!

写回答

2回答

慕数据4154996

提问者

2019-02-16

更清楚的错误如图//img.mukewang.com/szimg/5c67db4b0001677e20971066.jpg

0
2
黑子的一生
好吧老师源代码的问题我已经解决了
2020-01-09
共2条回复

慕数据4154996

提问者

2019-02-16

代码就不贴了 下载的源码

0
0

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9476 学习 · 8804 问题

查看课程

相似问题