springBoot 集成 dubbo SPI  找不到 spi扩展点 的实现类

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/y_h_d/article/details/93637195

dubbo SPI  找不到 扩展点 的实现类:

1、以下是异常:

2019-06-24 09:00:56.283 [DubboServerHandler-172.16.105.206:20880-thread-2] INFO  com.bigtreefinance.dubbo.aspect.DubboApiLoggerAspect - dubbo接口名:com.bigtreefinance.pay.api.impl.BankCustodyImpl.getAccBal
2019-06-24 09:00:56.283 [DubboServerHandler-172.16.105.206:20880-thread-2] INFO  com.bigtreefinance.dubbo.aspect.DubboApiLoggerAspect - dubbo接口入参:{_HEAD_KEY=null, clientID=111111, bnkCd=shanghai, acctType=5, eAcctNo=03003803502}
2019-06-24 09:00:56.283 [DubboServerHandler-172.16.105.206:20880-thread-2] INFO  com.bigtreefinance.pay.api.impl.BankCustodyImpl - ++++++++++++++++++++查询余额任务开始:111111入参:{_HEAD_KEY=null, clientID=111111, bnkCd=shanghai, acctType=5, eAcctNo=03003803502}
2019-06-24 09:00:59.799 [DubboServerHandler-172.16.105.206:20880-thread-2] INFO  com.bigtreefinance.trace.RpcClientMethodAspect - 
跟踪信息:
当前调用方法:getAccBal,
类:com.bigtreefinance.pay.api.IBankCustodyApi,
参数:[{_HEAD_KEY=null, clientID=111111, bnkCd=shanghai, acctType=5, eAcctNo=03003803502, channelId=TEST}],
返回值: 
全局跟踪号:null
局部跟踪号:null,
异常信息:java.lang.IllegalStateException: Failed to load extension class(interface: interface com.bigtreefinance.pay.driver.spi.BankSPI, class line: com.bigtreefinance.pay.driver.shanghai.BankImpl) in file:/D:/IDEASpace/goldbill_2.0/gb-pay/gb-pay/gb-pay-driver/gb-pay-spi/target/classes/META-INF/services/com.bigtreefinance.pay.driver.spi.BankSPI, cause: Error when load extension class(interface: interface com.bigtreefinance.pay.driver.spi.BankSPI, class line: com.bigtreefinance.pay.driver.shanghai.BankImpl), class com.bigtreefinance.pay.driver.shanghai.BankImplis not subtype of interface.
at com.alibaba.dubbo.common.extension.ExtensionLoader.loadResource(ExtensionLoader.java:634)
at com.alibaba.dubbo.common.extension.ExtensionLoader.loadDirectory(ExtensionLoader.java:604)
at com.alibaba.dubbo.common.extension.ExtensionLoader.loadExtensionClasses(ExtensionLoader.java:587)
at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtensionClasses(ExtensionLoader.java:561)
at com.alibaba.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:487)
at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:309)
at com.bigtreefinance.pay.api.impl.BankCustodyImpl.getBankSpi(BankCustodyImpl.java:64)
at com.bigtreefinance.pay.api.impl.BankCustodyImpl.getAccBal(BankCustodyImpl.java:104)
at com.bigtreefinance.pay.api.impl.BankCustodyImpl$$FastClassBySpringCGLIB$$8df36026.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
at com.bigtreefinance.dubbo.aspect.DubboApiLoggerAspect.recordRemotingInfo(DubboApiLoggerAspect.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
at com.bigtreefinance.trace.RpcClientMethodAspect.invoke(RpcClientMethodAspect.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at com.bigtreefinance.pay.api.impl.BankCustodyImpl$$EnhancerBySpringCGLIB$$afd78324.getAccBal(<generated>)
at com.alibaba.dubbo.common.bytecode.Wrapper2.invokeMethod(Wrapper2.java)
at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47)
at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:76)

 

2、spring-boot-devtools 依赖包导致  项目重复加载初始化 。删掉此依赖。如下图:

 

 

 

 

展开阅读全文

没有更多推荐了,返回首页