qicz opened a new issue #2150:
URL: https://github.com/apache/incubator-shenyu/issues/2150


   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   when the `ShenyuTestHttpApplication` start or stop will throw an exception.
   
   ### Expected Behavior
   
   use the client normal and no exception.
   
   ### Steps To Reproduce
   
   1. start admin
   2. start bootsrap
   3. start `ShenyuTestHttpApplication`
   
   ### Environment
   
   ```markdown
   ShenYu version(s): 2.4.1-SNAPSHOT
   RegisterType: zookeeper
   ```
   
   
   ### Debug logs
   
   Exception in thread "shenyu-disruptor-shenyu_disruptor_consumer_-19" 
java.lang.NullPointerException
        at 
org.apache.shenyu.admin.service.impl.SelectorServiceImpl.buildSelectorData(SelectorServiceImpl.java:334)
        at 
org.apache.shenyu.admin.service.impl.SelectorServiceImpl.buildByName(SelectorServiceImpl.java:242)
        at 
org.apache.shenyu.admin.service.impl.SelectorServiceImpl$$FastClassBySpringCGLIB$$20b2533e.invoke(<generated>)
        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
        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$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
        at 
org.apache.shenyu.admin.service.impl.SelectorServiceImpl$$EnhancerBySpringCGLIB$$31d5674.buildByName(<generated>)
        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.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205)
        at com.sun.proxy.$Proxy144.buildByName(Unknown Source)
        at 
org.apache.shenyu.admin.service.register.ShenyuClientRegisterDefaultServiceImpl.registerURIDefault(ShenyuClientRegisterDefaultServiceImpl.java:86)
        at 
org.apache.shenyu.admin.disruptor.subscriber.URIRegisterExecutorSubscriber.lambda$executor$0(URIRegisterExecutorSubscriber.java:55)
        at java.util.HashMap.forEach(HashMap.java:1289)
        at 
org.apache.shenyu.admin.disruptor.subscriber.URIRegisterExecutorSubscriber.executor(URIRegisterExecutorSubscriber.java:55)
        at 
org.apache.shenyu.admin.disruptor.executor.RegisterServerConsumerExecutor.run(RegisterServerConsumerExecutor.java:46)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   
   
   ### Anything else?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to