sys-error.2022-07-12.log 92 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  1. 14:15:50.320 [http-nio-8088-exec-2] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has outTypes] with root cause
  2. java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has outTypes
  3. at com.antfinancial.mychain.baas.tool.restclient.RestClient.chainCallForBiz(RestClient.java:794)
  4. at com.antfinancial.mychain.baas.tool.restclient.RestClient.bizChainCallWithReceipt(RestClient.java:681)
  5. at com.alipay.openchain.flow.ContractFlowforkms.callSolidityContract(ContractFlowforkms.java:153)
  6. at com.alipay.openchain.controller.Api.IssueAddrKms(Api.java:130)
  7. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  8. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  9. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  10. at java.lang.reflect.Method.invoke(Method.java:498)
  11. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  12. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  13. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  14. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  15. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  16. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  17. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  18. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  19. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  20. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  21. at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  22. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  23. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  24. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  25. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  26. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  27. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  28. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  29. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  30. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  31. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  32. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  33. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  34. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  35. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  36. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  37. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  38. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  39. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  40. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  41. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  42. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  43. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  44. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  45. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  46. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  47. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  48. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  49. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  50. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  51. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  52. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  53. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  54. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  55. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  56. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  57. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  58. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  59. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  60. at java.lang.Thread.run(Thread.java:748)
  61. 14:42:02.689 [main] ERROR o.s.b.SpringApplication - [reportFailure,771] - Application startup failed
  62. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'contractFlow': Unsatisfied dependency expressed through field 'restClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getRestClient': Invocation of init method failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://rest.baas.alipay.com/api/contract/shakeHand": Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: connect timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: connect timed out
  63. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
  64. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
  65. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
  66. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
  67. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
  68. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
  69. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  70. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  71. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  72. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  73. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
  74. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
  75. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
  76. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
  77. at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
  78. at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
  79. at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
  80. at com.alipay.openchain.OpenchainDemoApplication.main(OpenchainDemoApplication.java:15)
  81. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getRestClient': Invocation of init method failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://rest.baas.alipay.com/api/contract/shakeHand": Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: connect timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: connect timed out
  82. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137)
  83. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
  84. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1620)
  85. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
  86. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
  87. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  88. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  89. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  90. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
  91. at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
  92. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
  93. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
  94. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
  95. ... 17 common frames omitted
  96. Caused by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://rest.baas.alipay.com/api/contract/shakeHand": Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: connect timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: connect timed out
  97. at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:673)
  98. at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:635)
  99. at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:597)
  100. at com.antfinancial.mychain.baas.tool.restclient.client.RestHttpClient.callBaaSRest(RestHttpClient.java:23)
  101. at com.antfinancial.mychain.baas.tool.restclient.RestClient.shake(RestClient.java:138)
  102. at com.antfinancial.mychain.baas.tool.restclient.RestClient.init(RestClient.java:148)
  103. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  104. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  105. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  106. at java.lang.reflect.Method.invoke(Method.java:498)
  107. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
  108. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:311)
  109. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:134)
  110. ... 29 common frames omitted
  111. Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: connect timed out
  112. at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:143)
  113. at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
  114. at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
  115. at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
  116. at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
  117. at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
  118. at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
  119. at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
  120. at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
  121. at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
  122. at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:89)
  123. at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
  124. at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
  125. at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:659)
  126. ... 41 common frames omitted
  127. Caused by: java.net.SocketTimeoutException: connect timed out
  128. at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
  129. at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
  130. at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
  131. at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
  132. at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
  133. at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
  134. at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  135. at java.net.Socket.connect(Socket.java:589)
  136. at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337)
  137. at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
  138. ... 54 common frames omitted
  139. 15:49:01.613 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has outTypes] with root cause
  140. java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has outTypes
  141. at com.antfinancial.mychain.baas.tool.restclient.RestClient.chainCallForBiz(RestClient.java:794)
  142. at com.antfinancial.mychain.baas.tool.restclient.RestClient.bizChainCallWithReceipt(RestClient.java:681)
  143. at com.alipay.openchain.flow.ContractFlowforkms.callSolidityContract(ContractFlowforkms.java:157)
  144. at com.alipay.openchain.controller.Api.IssueAddrKms(Api.java:189)
  145. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  146. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  147. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  148. at java.lang.reflect.Method.invoke(Method.java:498)
  149. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  150. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  151. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  152. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  153. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  154. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  155. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  156. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  157. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  158. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  159. at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  160. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  161. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  162. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  163. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  164. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  165. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  166. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  167. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  168. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  169. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  170. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  171. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  172. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  173. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  174. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  175. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  176. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  177. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  178. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  179. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  180. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  181. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  182. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  183. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  184. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  185. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  186. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  187. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  188. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  189. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  190. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  191. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  192. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  193. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  194. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  195. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  196. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  197. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  198. at java.lang.Thread.run(Thread.java:748)
  199. 15:50:27.879 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has outTypes] with root cause
  200. java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has outTypes
  201. at com.antfinancial.mychain.baas.tool.restclient.RestClient.chainCallForBiz(RestClient.java:794)
  202. at com.alipay.openchain.flow.ContractFlowforkms.callSolidityContract(ContractFlowforkms.java:157)
  203. at com.alipay.openchain.controller.Api.IssueAddrKms(Api.java:189)
  204. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  205. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  206. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  207. at java.lang.reflect.Method.invoke(Method.java:498)
  208. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  209. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  210. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  211. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  212. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  213. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  214. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  215. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  216. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  217. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  218. at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  219. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  220. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  221. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  222. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  223. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  224. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  225. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  226. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  227. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  228. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  229. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  230. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  231. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  232. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  233. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  234. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  235. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  236. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  237. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  238. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  239. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  240. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  241. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  242. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  243. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  244. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  245. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  246. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  247. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  248. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  249. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  250. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  251. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  252. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  253. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  254. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  255. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  256. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  257. at java.lang.Thread.run(Thread.java:748)
  258. 15:52:21.564 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has outTypes] with root cause
  259. java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has outTypes
  260. at com.antfinancial.mychain.baas.tool.restclient.RestClient.chainCallForBiz(RestClient.java:794)
  261. at com.alipay.openchain.flow.ContractFlowforkms.callSolidityContract(ContractFlowforkms.java:158)
  262. at com.alipay.openchain.controller.Api.IssueAddrKms(Api.java:189)
  263. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  264. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  265. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  266. at java.lang.reflect.Method.invoke(Method.java:498)
  267. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  268. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  269. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  270. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  271. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  272. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  273. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  274. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  275. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  276. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  277. at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  278. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  279. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  280. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  281. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  282. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  283. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  284. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  285. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  286. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  287. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  288. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  289. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  290. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  291. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  292. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  293. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  294. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  295. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  296. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  297. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  298. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  299. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  300. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  301. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  302. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  303. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  304. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  305. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  306. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  307. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  308. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  309. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  310. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  311. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  312. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  313. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  314. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  315. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  316. at java.lang.Thread.run(Thread.java:748)
  317. 15:52:45.181 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has inputParamListStr] with root cause
  318. java.lang.RuntimeException: CALLCONTRACTBIZASYNC method must has inputParamListStr
  319. at com.antfinancial.mychain.baas.tool.restclient.RestClient.chainCallForBiz(RestClient.java:794)
  320. at com.alipay.openchain.flow.ContractFlowforkms.callSolidityContract(ContractFlowforkms.java:158)
  321. at com.alipay.openchain.controller.Api.IssueAddrKms(Api.java:189)
  322. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  323. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  324. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  325. at java.lang.reflect.Method.invoke(Method.java:498)
  326. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  327. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  328. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  329. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  330. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  331. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  332. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  333. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  334. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  335. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  336. at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  337. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  338. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  339. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  340. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  341. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  342. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  343. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  344. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  345. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  346. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  347. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  348. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  349. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  350. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  351. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  352. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  353. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  354. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  355. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  356. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  357. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  358. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  359. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  360. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  361. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  362. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  363. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  364. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  365. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  366. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  367. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  368. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  369. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  370. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  371. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  372. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  373. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  374. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  375. at java.lang.Thread.run(Thread.java:748)
  376. 17:04:08.226 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.alibaba.fastjson.JSONException: can not cast to : com.alipay.mychain.sdk.domain.account.Identity] with root cause
  377. com.alibaba.fastjson.JSONException: can not cast to : com.alipay.mychain.sdk.domain.account.Identity
  378. at com.alibaba.fastjson.util.TypeUtils.cast(TypeUtils.java:1260)
  379. at com.alibaba.fastjson.util.TypeUtils.castToJavaBean(TypeUtils.java:1069)
  380. at com.alibaba.fastjson.JSONArray.getObject(JSONArray.java:273)
  381. at com.antfinancial.mychain.baas.tool.utils.ContractParameterUtils.addParameter4Contract(ContractParameterUtils.java:50)
  382. at com.antfinancial.mychain.baas.tool.restclient.request.ConstructCallContractRequest.createCallContractTransaction(ConstructCallContractRequest.java:44)
  383. at com.antfinancial.mychain.baas.tool.restclient.RestClient.createCallContractTransaction(RestClient.java:191)
  384. at com.alipay.openchain.flow.ContractFlow.callSolidityContract(ContractFlow.java:107)
  385. at com.alipay.openchain.controller.Api.IssueAddr(Api.java:111)
  386. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  387. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  388. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  389. at java.lang.reflect.Method.invoke(Method.java:498)
  390. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  391. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  392. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  393. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  394. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  395. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  396. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  397. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  398. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  399. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  400. at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  401. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  402. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  403. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  404. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  405. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  406. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  407. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  408. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  409. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  410. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  411. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  412. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  413. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  414. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  415. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  416. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  417. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  418. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  419. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  420. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  421. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  422. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  423. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  424. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  425. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  426. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  427. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  428. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  429. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  430. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  431. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  432. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  433. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  434. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  435. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  436. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  437. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  438. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  439. at java.lang.Thread.run(Thread.java:748)
  440. 17:04:52.664 [main] ERROR o.s.b.SpringApplication - [reportFailure,771] - Application startup failed
  441. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'contractFlow': Unsatisfied dependency expressed through field 'restClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getRestClient': Invocation of init method failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://rest.baas.alipay.com/api/contract/shakeHand": Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out
  442. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
  443. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
  444. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
  445. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
  446. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
  447. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
  448. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  449. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  450. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  451. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  452. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
  453. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
  454. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
  455. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
  456. at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
  457. at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
  458. at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
  459. at com.alipay.openchain.OpenchainDemoApplication.main(OpenchainDemoApplication.java:15)
  460. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getRestClient': Invocation of init method failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://rest.baas.alipay.com/api/contract/shakeHand": Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out
  461. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137)
  462. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
  463. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1620)
  464. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
  465. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
  466. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  467. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  468. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  469. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
  470. at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
  471. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
  472. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
  473. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
  474. ... 17 common frames omitted
  475. Caused by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://rest.baas.alipay.com/api/contract/shakeHand": Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out
  476. at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:673)
  477. at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:635)
  478. at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:597)
  479. at com.antfinancial.mychain.baas.tool.restclient.client.RestHttpClient.callBaaSRest(RestHttpClient.java:23)
  480. at com.antfinancial.mychain.baas.tool.restclient.RestClient.shake(RestClient.java:138)
  481. at com.antfinancial.mychain.baas.tool.restclient.RestClient.init(RestClient.java:148)
  482. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  483. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  484. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  485. at java.lang.reflect.Method.invoke(Method.java:498)
  486. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
  487. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:311)
  488. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:134)
  489. ... 29 common frames omitted
  490. Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out
  491. at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:143)
  492. at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
  493. at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
  494. at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
  495. at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
  496. at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
  497. at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
  498. at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
  499. at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
  500. at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
  501. at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:89)
  502. at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
  503. at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
  504. at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:659)
  505. ... 41 common frames omitted
  506. Caused by: java.net.SocketTimeoutException: Read timed out
  507. at java.net.SocketInputStream.socketRead0(Native Method)
  508. at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
  509. at java.net.SocketInputStream.read(SocketInputStream.java:171)
  510. at java.net.SocketInputStream.read(SocketInputStream.java:141)
  511. at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
  512. at sun.security.ssl.InputRecord.read(InputRecord.java:503)
  513. at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
  514. at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
  515. at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
  516. at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
  517. at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
  518. at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
  519. at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
  520. ... 54 common frames omitted
  521. 17:05:28.997 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: Unsupported function parameter type: Identity] with root cause
  522. java.lang.RuntimeException: Unsupported function parameter type: Identity
  523. at com.antfinancial.mychain.baas.tool.utils.ContractParameterUtils.addParameter4Contract(ContractParameterUtils.java:62)
  524. at com.antfinancial.mychain.baas.tool.restclient.request.ConstructCallContractRequest.createCallContractTransaction(ConstructCallContractRequest.java:44)
  525. at com.antfinancial.mychain.baas.tool.restclient.RestClient.createCallContractTransaction(RestClient.java:191)
  526. at com.alipay.openchain.flow.ContractFlow.callSolidityContract(ContractFlow.java:107)
  527. at com.alipay.openchain.controller.Api.IssueAddr(Api.java:111)
  528. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  529. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  530. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  531. at java.lang.reflect.Method.invoke(Method.java:498)
  532. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  533. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  534. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  535. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  536. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  537. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  538. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  539. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  540. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  541. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  542. at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  543. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  544. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  545. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  546. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  547. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  548. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  549. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  550. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  551. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  552. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  553. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  554. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  555. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  556. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  557. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  558. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  559. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  560. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  561. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  562. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  563. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  564. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  565. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  566. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  567. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  568. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  569. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  570. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  571. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  572. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  573. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  574. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  575. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  576. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  577. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  578. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  579. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  580. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  581. at java.lang.Thread.run(Thread.java:748)
  582. 17:07:03.384 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.alibaba.fastjson.JSONException: can not cast to : com.alipay.mychain.sdk.domain.account.Identity] with root cause
  583. com.alibaba.fastjson.JSONException: can not cast to : com.alipay.mychain.sdk.domain.account.Identity
  584. at com.alibaba.fastjson.util.TypeUtils.cast(TypeUtils.java:1260)
  585. at com.alibaba.fastjson.util.TypeUtils.castToJavaBean(TypeUtils.java:1069)
  586. at com.alibaba.fastjson.JSONArray.getObject(JSONArray.java:273)
  587. at com.antfinancial.mychain.baas.tool.utils.ContractParameterUtils.addParameter4Contract(ContractParameterUtils.java:50)
  588. at com.antfinancial.mychain.baas.tool.restclient.request.ConstructCallContractRequest.createCallContractTransaction(ConstructCallContractRequest.java:44)
  589. at com.antfinancial.mychain.baas.tool.restclient.RestClient.createCallContractTransaction(RestClient.java:191)
  590. at com.alipay.openchain.flow.ContractFlow.callSolidityContract(ContractFlow.java:107)
  591. at com.alipay.openchain.controller.Api.IssueAddr(Api.java:111)
  592. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  593. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  594. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  595. at java.lang.reflect.Method.invoke(Method.java:498)
  596. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  597. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  598. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  599. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  600. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  601. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  602. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  603. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  604. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  605. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  606. at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  607. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  608. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  609. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  610. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  611. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  612. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  613. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  614. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  615. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  616. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  617. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  618. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  619. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  620. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  621. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  622. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  623. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  624. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  625. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  626. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  627. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  628. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  629. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  630. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  631. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  632. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  633. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  634. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  635. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  636. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  637. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  638. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  639. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  640. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  641. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  642. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  643. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  644. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  645. at java.lang.Thread.run(Thread.java:748)
  646. 17:09:04.895 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NumberFormatException: For input string: "{"data""] with root cause
  647. java.lang.NumberFormatException: For input string: "{"data""
  648. at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
  649. at java.lang.Integer.parseInt(Integer.java:580)
  650. at java.math.BigInteger.<init>(BigInteger.java:470)
  651. at java.math.BigInteger.<init>(BigInteger.java:606)
  652. at com.alibaba.fastjson.util.TypeUtils.castToBigInteger(TypeUtils.java:380)
  653. at com.alibaba.fastjson.JSONArray.getBigInteger(JSONArray.java:417)
  654. at com.antfinancial.mychain.baas.tool.utils.ContractParameterUtils.addParameter4Contract(ContractParameterUtils.java:38)
  655. at com.antfinancial.mychain.baas.tool.restclient.request.ConstructCallContractRequest.createCallContractTransaction(ConstructCallContractRequest.java:44)
  656. at com.antfinancial.mychain.baas.tool.restclient.RestClient.createCallContractTransaction(RestClient.java:191)
  657. at com.alipay.openchain.flow.ContractFlow.callSolidityContract(ContractFlow.java:107)
  658. at com.alipay.openchain.controller.Api.IssueAddr(Api.java:111)
  659. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  660. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  661. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  662. at java.lang.reflect.Method.invoke(Method.java:498)
  663. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  664. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  665. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  666. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  667. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  668. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  669. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  670. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  671. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  672. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
  673. at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
  674. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  675. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  676. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  677. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  678. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  679. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  680. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  681. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  682. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  683. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  684. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  685. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  686. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  687. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  688. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  689. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  690. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  691. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  692. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  693. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  694. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  695. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  696. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  697. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  698. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  699. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  700. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  701. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  702. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  703. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  704. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  705. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  706. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  707. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  708. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  709. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  710. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  711. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  712. at java.lang.Thread.run(Thread.java:748)
  713. 17:21:55.482 [main] ERROR o.s.b.SpringApplication - [reportFailure,771] - Application startup failed
  714. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'contractFlow': Unsatisfied dependency expressed through field 'restClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getRestClient': Invocation of init method failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://rest.baas.alipay.com/api/contract/shakeHand": Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out
  715. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
  716. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
  717. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
  718. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
  719. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
  720. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
  721. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  722. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  723. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  724. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  725. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
  726. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
  727. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
  728. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
  729. at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
  730. at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
  731. at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
  732. at com.alipay.openchain.OpenchainDemoApplication.main(OpenchainDemoApplication.java:15)
  733. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getRestClient': Invocation of init method failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://rest.baas.alipay.com/api/contract/shakeHand": Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out
  734. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137)
  735. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
  736. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1620)
  737. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
  738. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
  739. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  740. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  741. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  742. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
  743. at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
  744. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
  745. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
  746. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
  747. ... 17 common frames omitted
  748. Caused by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://rest.baas.alipay.com/api/contract/shakeHand": Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out
  749. at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:673)
  750. at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:635)
  751. at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:597)
  752. at com.antfinancial.mychain.baas.tool.restclient.client.RestHttpClient.callBaaSRest(RestHttpClient.java:23)
  753. at com.antfinancial.mychain.baas.tool.restclient.RestClient.shake(RestClient.java:138)
  754. at com.antfinancial.mychain.baas.tool.restclient.RestClient.init(RestClient.java:148)
  755. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  756. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  757. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  758. at java.lang.reflect.Method.invoke(Method.java:498)
  759. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
  760. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:311)
  761. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:134)
  762. ... 29 common frames omitted
  763. Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to rest.baas.alipay.com:443 [rest.baas.alipay.com/203.107.53.50] failed: Read timed out
  764. at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:143)
  765. at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
  766. at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
  767. at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
  768. at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
  769. at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
  770. at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
  771. at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
  772. at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
  773. at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
  774. at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:89)
  775. at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
  776. at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
  777. at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:659)
  778. ... 41 common frames omitted
  779. Caused by: java.net.SocketTimeoutException: Read timed out
  780. at java.net.SocketInputStream.socketRead0(Native Method)
  781. at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
  782. at java.net.SocketInputStream.read(SocketInputStream.java:171)
  783. at java.net.SocketInputStream.read(SocketInputStream.java:141)
  784. at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
  785. at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:593)
  786. at sun.security.ssl.InputRecord.read(InputRecord.java:532)
  787. at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
  788. at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
  789. at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
  790. at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
  791. at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
  792. at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
  793. at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
  794. ... 54 common frames omitted
  795. 18:11:54.701 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -9] with root cause
  796. java.lang.StringIndexOutOfBoundsException: String index out of range: -9
  797. at java.lang.String.substring(String.java:1967)
  798. at com.alipay.openchain.flow.ContractFlow.selectSolidityContract(ContractFlow.java:268)
  799. at com.alipay.openchain.controller.Api.select(Api.java:150)
  800. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  801. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  802. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  803. at java.lang.reflect.Method.invoke(Method.java:498)
  804. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  805. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  806. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  807. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  808. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  809. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  810. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  811. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  812. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  813. at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
  814. at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
  815. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  816. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  817. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  818. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  819. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  820. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  821. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  822. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  823. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  824. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  825. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  826. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  827. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  828. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  829. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  830. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  831. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  832. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  833. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  834. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  835. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  836. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  837. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  838. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  839. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  840. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  841. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  842. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  843. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  844. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  845. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  846. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  847. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  848. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  849. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  850. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  851. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  852. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  853. at java.lang.Thread.run(Thread.java:748)
  854. 18:13:20.545 [http-nio-8088-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,181] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -9] with root cause
  855. java.lang.StringIndexOutOfBoundsException: String index out of range: -9
  856. at java.lang.String.substring(String.java:1967)
  857. at com.alipay.openchain.flow.ContractFlow.selectSolidityContract(ContractFlow.java:269)
  858. at com.alipay.openchain.controller.Api.select(Api.java:150)
  859. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  860. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  861. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  862. at java.lang.reflect.Method.invoke(Method.java:498)
  863. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  864. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
  865. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
  866. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
  867. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
  868. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  869. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
  870. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
  871. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
  872. at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
  873. at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
  874. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
  875. at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
  876. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  877. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  878. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  879. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  880. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  881. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  882. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  883. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  884. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  885. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
  886. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  887. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  888. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  889. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  890. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  891. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  892. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  893. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
  894. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  895. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  896. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  897. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  898. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  899. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
  900. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  901. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  902. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  903. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  904. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  905. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  906. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  907. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  908. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  909. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  910. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  911. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  912. at java.lang.Thread.run(Thread.java:748)