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

包都可以打好,也可以运行,但是源代码报错 #3

Closed
orangeyts opened this issue Sep 16, 2018 · 4 comments
Closed

包都可以打好,也可以运行,但是源代码报错 #3

orangeyts opened this issue Sep 16, 2018 · 4 comments

Comments

@orangeyts
Copy link
Contributor

源码错误:
image

路径添加为lib也不行

image

运行错误:

编译后的Jsp具体行数
image

@orangeyts
Copy link
Contributor Author

long modelLastModifiedDate = com.jdon.jivejdon.presentation.action.util.ForumUtil.getForumsLastModifiedDate(this.getServletContext()).getModifiedDate2();
这一行报的空指针异常

@banq
Copy link
Owner

banq commented Sep 17, 2018

需要把lib目录下子目录里面的jar包加入idea的库包路径。 空指针可能是数据库没有配置正常,可看看tomcat/logs下的localhost日志或jdon.log

@orangeyts
Copy link
Contributor Author

1 编译异常,确实是 类路径不对导致的(IDEA还不太熟悉,用了eclipse还是方便些)
2 NPE,由于默认的"论坛"没有默认的"回复",因此报错了,但是没有error日志,因此通过remote debug发现的问题

npe

3 运行的话需要 在jiveforum jivemessage jivethread 三个表建立一点初始数据才可以,提交了一个PR,可以方便后来的学习着

@banq
Copy link
Owner

banq commented Sep 19, 2018

非常感谢。

This issue was closed.
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