Jfinal3.3 Jdoc 启动问题

  jfinal 3.3  使用jdoc生成文档时,启动项目必须加 1200 参数:JFinal.start("src/main/webapp", 7071, "/",1200);

        但 如果加上1200  那么数据库连接方面又会有问题,   不加的话就会出现如下问题:

        还望好心人能给我解答下

正在加载源文件D:\java\zrCultivate\training-paren\user-manage\user-web\src\main\java\com\itlead\user\controller\ScoreItemController.java...

正在加载源文件D:\java\zrCultivate\training-paren\user-manage\user-web\src\main\java\com\itlead\user\controller\UserSignController.java...

正在构造 Javadoc 信息...

javadoc: 错误 - 在 doclet 类com.nmtx.doc.core.parser.DocumentParser中, 方法start已抛出异常错误java.lang.reflect.InvocationTargetException

java.lang.NullPointerException

at com.nmtx.doc.core.config.JDocConfig.getValue(JDocConfig.java:24)

at com.nmtx.doc.core.api.ApiBuilder.builder(ApiBuilder.java:31)

at com.nmtx.doc.core.parser.DocumentParser.start(DocumentParser.java:26)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)

at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)

at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)

at com.sun.tools.javadoc.Start.begin(Start.java:219)

at com.sun.tools.javadoc.Start.begin(Start.java:205)

at com.sun.tools.javadoc.Main.execute(Main.java:64)

at com.nmtx.doc.core.JDocCore.builder(JDocCore.java:45)

at com.nmtx.doc.core.api.jfinal.JFinalApiDocConfig.start(JFinalApiDocConfig.java:39)

at com.itlead.user.config.BaseConfig.configRoute(BaseConfig.java:80)

at com.jfinal.core.Config.configJFinal(Config.java:52)

at com.jfinal.core.JFinal.init(JFinal.java:63)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)

at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:724)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)

at org.eclipse.jetty.server.Server.doStart(Server.java:277)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at com.jfinal.server.JettyServerForIDEA.doStart(JettyServerForIDEA.java:133)

at com.jfinal.server.JettyServerForIDEA.start(JettyServerForIDEA.java:72)

at com.jfinal.core.JFinal.start(JFinal.java:174)

at com.itlead.user.config.BaseConfig.main(BaseConfig.java:47)

1 个错误

Starting Complete. Welcome To The JFinal World :)


评论区

JFinal

2018-02-01 19:51

NullPointerException 这个异常没有什么好的办法,认认真真单步调试一下,看哪个对象是 null 值,再解决之

热门反馈

扫码入社