Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

存储模板时NPE #15

Closed
code4craft opened this issue Jan 14, 2017 · 3 comments
Closed

存储模板时NPE #15

code4craft opened this issue Jan 14, 2017 · 3 comments

Comments

@code4craft
Copy link

code4craft commented Jan 14, 2017

在编辑模板页面编辑好后,点保存总是会出现/panel/commons/editSpiderInfo,每次都必现。
image
image

java.lang.NullPointerException
	at com.gs.spider.dao.SpiderInfoDAO.getByDomain(SpiderInfoDAO.java:126)
	at com.gs.spider.dao.SpiderInfoDAO.index(SpiderInfoDAO.java:51)
	at com.gs.spider.service.commons.spiderinfo.SpiderInfoService.lambda$index$2(SpiderInfoService.java:58)
	at com.gs.spider.model.utils.ResultBundleBuilder.bundle(ResultBundleBuilder.java:25)
	at com.gs.spider.service.commons.spiderinfo.SpiderInfoService.index(SpiderInfoService.java:58)
	at com.gs.spider.controller.commons.spiderinfo.SpiderInfoController.save(SpiderInfoController.java:87)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
@code4craft
Copy link
Author

code4craft commented Jan 14, 2017

似乎是我ES没配置好,已经修改。不过standalone模式好像这里走不通啊。

@gsh199449
Copy link
Owner

如果不配置es肯定是不能使用存储模板功能的。如果配置ES了还出空指针错误吗?

@gsh199449
Copy link
Owner

没有后续反馈,如果还有类似问题请再重新打开这个issue吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants