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

来源:4-8 DAO层单元测试编码和问题排查(上)

E_714342

2017-08-06 17:24

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

http://img.mukewang.com/5986e0030001182010630507.jpg

http://img.mukewang.com/5986e0040001261608500154.jpg

http://img.mukewang.com/5986e00500015c2e07020153.jpg


写回答 关注

2回答

  • shirleyLi
    2018-08-21 16:15:08

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

  • E_714342
    2017-08-06 17:30:36

    控制台输出信息:

    八月 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: 漱壕


Java高并发秒杀API之业务分析与DAO层

Java实现高并发秒杀API的第一门课,还等什么,赶快来加入吧

87435 学习 · 496 问题

查看课程

相似问题