When calling the background interface, the code reported the following error:
Warning: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed t
o invoke the method findPage in the service com.service.BrandService. Tried 3 times of the providers [172.16.94.115:20881] (1/1) from the registry 192.168.25.129:2181 on the consum
er 172.16.94.115 using the dubbo version 2.8.4. Last error is: Invoke remote method timeout. method: findPage, provider: dubbo://172.16.94.115:20881/com.service.BrandService?anyhos
t=true&application=tystore-manager-web&check=false&dubbo=2.8.4&generic=false&interface=com.service.BrandService&methods=add,findById,update,findPage,delete,findAll&pid=15116&revisi
on=1.0-SNAPSHOT&side=consumer×tamp=1624929883885, cause: Waiting server-side response timeout. start time: 2021-06-29 09:25:49.385, end time: 2021-06-29 09:25:50.386, client e
lapsed: 0 ms, server elapsed: 1001 ms, timeout: 1000 ms, request: Request [id=17, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=findPage, pa
rameterTypes=[class com.pojo.TbBrand, class java.lang.Integer, class java.lang.Integer], arguments=[com.pojo.TbBrand@7268b2f8, 1, 10], attachments={path=com.service.BrandService, i
nterface=com.service.BrandService, version=0.0.0}]], channel: /172.16.94.115:53263 -> /172.16.94.115:20881] with root cause
com.alibaba.dubbo.remoting.TimeoutException: Waiting server-side response timeout. start time: 2021-06-29 09:25:49.385, end time: 2021-06-29 09:25:50.386, client elapsed: 0 ms, ser
ver elapsed: 1001 ms, timeout: 1000 ms, request: Request [id=17, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=findPage, parameterTypes=[cla
ss com.pojo.TbBrand, class java.lang.Integer, class java.lang.Integer], arguments=[com.pojo.TbBrand@7268b2f8, 1, 10], attachments={path=com.service.BrandService, interface=com.serv
ice.BrandService, version=0.0.0}]], channel: /172.16.94.115:53263 -> /172.16.94.115:20881
After checking the following:
-
- POJO serializes local IP and service ipdubbo running state, and closes firewall
The final reason is that the server performance is not enough, the response time is long, and the automatic timeout.
@Service(
interfaceName = "com.service.BrandService",
timeout = 600000)
After setting the timeout on the service, it will be normal.
Read More:
- Request processing failed;nested exception is java.lang.*
- [Solved] com.alibaba.nacos.api.exception.NacosException: failed to req API
- How to Fix error performing isolated work; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarE
- NACOS error com.alibaba.nacos.api.exception.NacosException: failed to req API:/api//nacos/v1/ns/instance
- [Jackson exception] com.fasterxml.jackson . databind.JsonMappingException Exception handling method
- Initialization of bean failed; nested exception is java.lang.StackOverflowError
- Method threw ‘java.lang.NullPointerException‘ exception. Cannot evaluate com.sun.proxy.xxx
- Spring nested exception is java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey
- Android Studio Error: Invoke-customs are only supported starting with Android O (–min-api 26)
- java.lang.AbstractMethodError: Receiver class com.alibaba.cloud.sentinel.feign.SentinelContractHolde
- nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property
- Could not start Quartz Scheduler after delay; nested exception is org.quartz.SchedulerException:
- SQL state [null]; error code [0]; Error; nested exception is java.sql.SQLException: Error] with root
- com.alibaba.fastjson .JSONException: For input string: “3000-01-01” or “9999-12-31”
- Caused by: java.lang.ClassNotFoundException: com.alibaba.nacos.api.naming.NamingMaintainService
- [error handling] idea error reporting com.alibaba.druid . pool.DruidDataSource error
- About starting the service, you always get stuck in com. Alibaba. Druid. Pool. Druiddatasource | {datasource-1} initiated
- Idea error: (4, 28) Java: package com.alibaba.fastjson does not exist
- com.alibaba.druid.sql.parser.ParserException: syntax error
- Can’t Dubbo’s @ service be injected into the spring container?