为了账号安全,请及时绑定邮箱和手机立即绑定

控制台没有报错,但是junit报空指针错误!

控制台没有报错,但是junit报空指针错误,是什么原因导致的呢?

http://img1.sycdn.imooc.com//5986e0030001182010630507.jpg

http://img1.sycdn.imooc.com//5986e0040001261608500154.jpg

http://img1.sycdn.imooc.com//5986e00500015c2e07020153.jpg


正在回答

2 回答

请问您解决了吗?可以分享一下吗,我也是这个问题

0 回复 有任何疑惑可以回复我~

控制台输出信息:

八月 06, 2017 5:07:52 下午 com.mchange.v2.c3p0.C3P0Registry banner

信息: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]

17:07:53.096 [main] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.

17:07:53.339 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Class not found: org.jboss.vfs.VFS

17:07:53.340 [main] DEBUG org.apache.ibatis.io.ResolverUtil - JBoss 6 VFS API is not available in this environment.

17:07:53.342 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Class not found: org.jboss.vfs.VirtualFile

17:07:53.344 [main] DEBUG org.apache.ibatis.io.ResolverUtil - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.

17:07:53.345 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Using VFS adapter org.apache.ibatis.io.DefaultVFS

17:07:53.346 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Find JAR URL: file:/F:/Eclipse%20IDE%20for%20JAVA%20EE%20developers/eclipse-jee-kepler-SR2-win32-x86_64/Workspace/SharingBooks/target/classes/com/sharingbooks/entity

17:07:53.347 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Not a JAR: file:/F:/Eclipse%20IDE%20for%20JAVA%20EE%20developers/eclipse-jee-kepler-SR2-win32-x86_64/Workspace/SharingBooks/target/classes/com/sharingbooks/entity

17:07:53.455 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: BorrowedBook.class

17:07:53.456 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: SharedBook.class

17:07:53.458 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: SuccessBorrowed.class

17:07:53.459 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: SuccessLended.class

17:07:53.460 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: UserInfo.class

17:07:53.461 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Listing file:/F:/Eclipse%20IDE%20for%20JAVA%20EE%20developers/eclipse-jee-kepler-SR2-win32-x86_64/Workspace/SharingBooks/target/classes/com/sharingbooks/entity

17:07:53.461 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Find JAR URL: file:/F:/Eclipse%20IDE%20for%20JAVA%20EE%20developers/eclipse-jee-kepler-SR2-win32-x86_64/Workspace/SharingBooks/target/classes/com/sharingbooks/entity/BorrowedBook.class

17:07:53.461 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Not a JAR: file:/F:/Eclipse%20IDE%20for%20JAVA%20EE%20developers/eclipse-jee-kepler-SR2-win32-x86_64/Workspace/SharingBooks/target/classes/com/sharingbooks/entity/BorrowedBook.class

17:07:53.462 [main] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: 漱壕


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

控制台没有报错,但是junit报空指针错误!

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信