You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/07/01 05:28:05 UTC
[GitHub] [incubator-shenyu] stulzq opened a new issue, #3641: [BUG] When docInfoJson is empty, will get a NullPointerException
stulzq opened a new issue, #3641:
URL: https://github.com/apache/incubator-shenyu/issues/3641
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
````
2022-07-01 13:21:10 [main] ERROR org.apache.shenyu.admin.service.manager.impl.DocManagerImpl - getDocInfo error={}
java.lang.NullPointerException: null
at org.apache.shenyu.admin.service.manager.impl.DocManagerImpl.getDocInfo(DocManagerImpl.java:98)
at org.apache.shenyu.admin.service.manager.impl.DocManagerImpl.addDocInfo(DocManagerImpl.java:81)
at org.apache.shenyu.admin.service.manager.impl.ServiceDocManagerImpl.pullApiDocument(ServiceDocManagerImpl.java:72)
at org.apache.shenyu.admin.service.manager.impl.ServiceDocManagerImpl.lambda$pullApiDocument$0(ServiceDocManagerImpl.java:53)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.apache.shenyu.admin.service.manager.impl.ServiceDocManagerImpl.pullApiDocument(ServiceDocManagerImpl.java:52)
at org.apache.shenyu.admin.service.manager.impl.LoadServiceDocEntryImpl.loadApiDocument(LoadServiceDocEntryImpl.java:69)
at org.apache.shenyu.admin.listener.ApplicationStartListener.onApplicationEvent(ApplicationStartListener.java:49)
at org.apache.shenyu.admin.listener.ApplicationStartListener.onApplicationEvent(ApplicationStartListener.java:33)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378)
at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:46)
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)
at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155)
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:935)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:745)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:420)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
at org.apache.shenyu.admin.ShenyuAdminBootstrap.main(ShenyuAdminBootstrap.java:36)
````
![image](https://user-images.githubusercontent.com/13200155/176829433-f2e100d0-e177-4097-a337-24563c18fbf9.png)
### Expected Behavior
No exeption
### Steps To Reproduce
1.Run dotnet client AspNetCore example register by http
2.Restart Admin will get this exception
### Environment
```markdown
ShenYu version(s): 2.4.3
```
### Debug logs
_No response_
### Anything else?
I can fix it.
--
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: notifications-unsubscribe@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] yu199195 closed issue #3641: [BUG] When docInfoJson is empty, will get a NullPointerException
Posted by GitBox <gi...@apache.org>.
yu199195 closed issue #3641: [BUG] When docInfoJson is empty, will get a NullPointerException
URL: https://github.com/apache/incubator-shenyu/issues/3641
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org