当打包为jar时,optaplanner nullpointerexception ScoreDirectorFactoryConfig

时间:2017-09-21 16:47:35

标签: java intellij-idea executable-jar optaplanner

我在optaplanner-distribution-7.2.0中对MeetingScheduling示例进行了略微修改。最后它在IntelliJ 2017中运行良好。当我从中构建一个jar时,我得到以下异常。我使用的是Java 1.8

Exception in thread "main" java.lang.NullPointerException: null
    at org.optaplanner.core.config.score.director.ScoreDirectorFactoryConfig.buildDroolsScoreDirectorFactory(ScoreDirectorFactoryConfig.java:461)
    at org.optaplanner.core.config.score.director.ScoreDirectorFactoryConfig.buildScoreDirectorFactory(ScoreDirectorFactoryConfig.java:331)
    at org.optaplanner.core.config.solver.SolverConfig.buildSolver(SolverConfig.java:220)
    at org.optaplanner.core.impl.solver.AbstractSolverFactory.buildSolver(AbstractSolverFactory.java:57)
    at org.optaplanner.examples.common.app.CommonApp.createSolver(CommonApp.java:108)
    at org.optaplanner.examples.common.app.CommonApp.createSolutionBusiness(CommonApp.java:102)
    at org.optaplanner.examples.common.app.CommonApp.init(CommonApp.java:89)
    at org.optaplanner.examples.common.app.CommonApp.init(CommonApp.java:80)
    at org.optaplanner.examples.meetingscheduling3.app.MeetingScheduling3App.main(MeetingScheduling3App.java:31)

是否有关于如何从optaplanner发布制作jar的更详细说明?

感谢您的帮助。

0 个答案:

没有答案