报这错怎样解决

来源:1-11 通过Hibernate API编写访问数据库的代码

_________________h

2017-06-19 02:38

java.lang.NullPointerException

at org.eclipse.jdt.internal.junit4.runner.SubForestFilter.shouldRun(SubForestFilter.java:81)

at org.junit.internal.runners.TestClassMethodsRunner.filter(TestClassMethodsRunner.java:84)

at org.junit.runner.manipulation.Filter.apply(Filter.java:47)

at org.junit.internal.runners.TestClassRunner.filter(TestClassRunner.java:64)

at org.junit.runner.manipulation.Filter.apply(Filter.java:47)

at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:34)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createFilteredTest(JUnit4TestLoader.java:77)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:68)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:43)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)


写回答 关注

1回答

  • Great3765473
    2017-06-20 10:18:14

    绿条不是成功了么,报的错是空指针。

Hibernate初探之单表映射

Java持久化框架Hibernate入门教程,掌握Hibernate基本概念

74810 学习 · 793 问题

查看课程

相似问题