我正在尝试查找此跟踪中的错误源:
org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver logException: Handler execution resulted in exception
java.lang.NullPointerException
at com.wikistart.service.WikiServiceImpl.getWikis(WikiServiceImpl.java:548)
at com.wikistart.controller.WikiController.wiki(WikiController.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:43)
null是否总是抛出在跟踪中提到的最上面一行?
换句话说,这个NullPointerException
来自WikiServiceImpl.java:548
,而不是来自WikiController.java:88
?