NutzCN Logo
问答 请各位大哥解释一下,为何我会报下面的错?
发布于 2885天前 作者 qq_6427b776 1704 次浏览 复制 上一个帖子 下一个帖子
标签:

@At("/getDeptOrgList")
@Ok("json")
@Log(isEnabled = false)
public List getDeptOrgList() {
return this.securityReportAssetService.getDeptOrgList();
}

java.lang.NumberFormatException: For input string: "null"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:441)
at java.lang.Long.(Long.java:702)
at sun.reflect.GeneratedConstructorAccessor47.newInstance()
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.nutz.castor.castor.String2Number.cast(String2Number.java:34)
at org.nutz.castor.castor.String2Number.cast(String2Number.java:1)

at org.nutz.castor.Castors.cast(Castors.java:227)
at org.nutz.castor.Castors.castTo(Castors.java:292)
at org.nutz.castor.castor.Array2Object.cast(Array2Object.java:21)
at org.nutz.castor.Castors.cast(Castors.java:227)
at org.nutz.castor.Castors.castTo(Castors.java:292)
at org.nutz.mvc.adaptor.injector.NameInjector.fromReqParam(NameInjector.java:84)
at org.nutz.mvc.adaptor.injector.NameInjector.get(NameInjector.java:79)
at org.nutz.mvc.adaptor.AbstractAdaptor.adapt(AbstractAdaptor.java:195)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:28)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:40)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:85)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:64)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:101)
at com.venustech.tsoc.CupidNutFilter.doFilter(SourceFile:69)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
4 回复

忘记编译了吧, 要么就不是这个方法.

@At("/getDeptOrgList")
@Ok("json")
@Log(isEnabled = false)
public List getDeptOrgList() {
return this.securityReportAssetService.getDeptOrgList();
}

debug进去,跑完才报错的

所以不是这个入口方法的问题咯

添加回复
请先登陆
回到顶部