AI智能
改变未来

dubbo没有提供者No provider available from registry 127.0.0.1:2181 for service com.itheima.health.service.

Caused by: java.lang.IllegalStateException: Type handler was null on parameter mapping for property \'checkItems\'. It was either not specified and/or could not be found for the javaType (java.util.List) : jdbcType (null) combination. 	at org.apache.ibatis.mapping.ParameterMapping$Builder.validate(ParameterMapping.java:119) 	at org.apache.ibatis.mapping.ParameterMapping$Builder.build(ParameterMapping.java:104) 	at org.apache.ibatis.builder.SqlSourceBuilder$ParameterMappingTokenHandler.buildParameterMapping(SqlSourceBuilder.java:123) 	at org.apache.ibatis.builder.SqlSourceBuilder$ParameterMappingTokenHandler.handleToken(SqlSourceBuilder.java:67) 	at org.apache.ibatis.parsing.GenericTokenParser.parse(GenericTokenParser.java:78) 	at org.apache.ibatis.builder.SqlSourceBuilder.parse(SqlSourceBuilder.java:45) 	at org.apache.ibatis.scripting.defaults.RawSqlSource.<init>(RawSqlSource.java:46) 	at org.apache.ibatis.scripting.defaults.RawSqlSource.<init>(RawSqlSource.java:40) 	at org.apache.ibatis.scripting.xmltags.XMLScriptBuilder.parseScriptNode(XMLScriptBuilder.java:58) 	at org.apache.ibatis.scripting.xmltags.XMLLanguageDriver.createSqlSource(XMLLanguageDriver.java:44) 	at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:94) 	at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:135) 	at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:128) 	at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:118) 	... 31 more

这个错误导致服务消费者显示没有提供者

严重: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: No provider available from registry 127.0.0.1:2181 for service com.itheima.health.service.CheckGroupService on consumer 10.254.6.247 use dubbo version 2.6.0, may be providers disabled or not registered ?] with root cause com.alibaba.dubbo.rpc.RpcException: No provider available from registry 127.0.0.1:2181 for service com.itheima.health.service.CheckGroupService on consumer 10.254.6.247 use dubbo version 2.6.0, may be providers disabled or not registered ? 	at com.alibaba.dubbo.registry.integration.RegistryDirectory.doList(RegistryDirectory.java:572) 	at com.alibaba.dubbo.rpc.cluster.directory.AbstractDirectory.list(AbstractDirectory.java:73) 	at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.list(AbstractClusterInvoker.java:265) 	at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:224) 	at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:70) 	at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:51) 	at com.alibaba.dubbo.common.bytecode.proxy0.findPage(proxy0.java)

经过测试,发现是数据库标签出现错误导致

更正后恢复正常使用。

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » dubbo没有提供者No provider available from registry 127.0.0.1:2181 for service com.itheima.health.service.