模糊搜索问题
ERROR: com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor - "(Controlled) server error: Error while invoking the Java method 'pagedQuery' for Method 'ProvincesAction.pagedQuery'" (rid: 1018)com.softwarementors.extjs.djn.router.dispatcher.MethodExecutionException: Error while invoking the Java method 'pagedQuery'
at com.softwarementors.extjs.djn.router.dispatcher.MethodExecutionException.forMethodInvocationError(MethodExecutionException.java:53)
at com.softwarementors.extjs.djn.router.dispatcher.Dispatcher.createMethodInvocationError(Dispatcher.java:132)
at com.softwarementors.extjs.djn.router.dispatcher.Dispatcher.invokeMethod(Dispatcher.java:126)
at com.softwarementors.extjs.djn.router.dispatcher.Dispatcher.dispatch(Dispatcher.java:55)
at com.softwarementors.extjs.djn.router.processor.RequestProcessorBase.dispatch(RequestProcessorBase.java:219)
at com.softwarementors.extjs.djn.router.processor.RequestProcessorBase.dispatch(RequestProcessorBase.java:230)
at com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.processIndividualRequest(JsonRequestProcessor.java:368)
at com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.processIndividualRequestsInThisThread(JsonRequestProcessor.java:127)
at com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.process(JsonRequestProcessor.java:109)
at com.softwarementors.extjs.djn.router.RequestRouter.processJsonRequest(RequestRouter.java:77)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.doPost(DirectJNgineServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at core.HttpFilter.doFilter(HttpFilter.java:29)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.softwarementors.extjs.djn.router.dispatcher.Dispatcher.invokeMethod(Dispatcher.java:113)
... 33 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at core.MainUtils.changeQuery(MainUtils.java:687)
at web.wms.base.ProvincesAction.beforePagedQuery(ProvincesAction.java:100)
at core.DirectAction.pagedQuery(DirectAction.java:131)
at web.wms.base.ProvincesAction.pagedQuery(ProvincesAction.java:91)
... 38 more
ERROR: com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor - "(Controlled) server error: Error while invoking the Java method 'pagedQuery' for Method 'ProvincesAction.pagedQuery'" (rid: 1019)
com.softwarementors.extjs.djn.router.dispatcher.MethodExecutionException: Error while invoking the Java method 'pagedQuery'
at com.softwarementors.extjs.djn.router.dispatcher.MethodExecutionException.forMethodInvocationError(MethodExecutionException.java:53)
at com.softwarementors.extjs.djn.router.dispatcher.Dispatcher.createMethodInvocationError(Dispatcher.java:132)
at com.softwarementors.extjs.djn.router.dispatcher.Dispatcher.invokeMethod(Dispatcher.java:126)
at com.softwarementors.extjs.djn.router.dispatcher.Dispatcher.dispatch(Dispatcher.java:55)
at com.softwarementors.extjs.djn.router.processor.RequestProcessorBase.dispatch(RequestProcessorBase.java:219)
at com.softwarementors.extjs.djn.router.processor.RequestProcessorBase.dispatch(RequestProcessorBase.java:230)
at com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.processIndividualRequest(JsonRequestProcessor.java:368)
at com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.processIndividualRequestsInThisThread(JsonRequestProcessor.java:127)
at com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.process(JsonRequestProcessor.java:109)
at com.softwarementors.extjs.djn.router.RequestRouter.processJsonRequest(RequestRouter.java:77)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.doPost(DirectJNgineServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at core.HttpFilter.doFilter(HttpFilter.java:29)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.softwarementors.extjs.djn.router.dispatcher.Dispatcher.invokeMethod(Dispatcher.java:113)
... 33 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at core.MainUtils.changeQuery(MainUtils.java:687)
at web.wms.base.ProvincesAction.beforePagedQuery(ProvincesAction.java:100)
at core.DirectAction.pagedQuery(DirectAction.java:131)
at web.wms.base.PrvincesAction.pagedQuery(ProvincesAction.java:91)
... 38 more
模糊搜索不成功 到底哪出问题了 ? --------------------编程问答-------------------- Caused by: java.lang.ArrayIndexOutOfBoundsException:
数组越界 --------------------编程问答-------------------- 我的天,你调试的时候,把sql输出,然后查询分析器运行一下就知道哪里有问题了,这哪里看的明白
System.out.println(sql); --------------------编程问答-------------------- debug一下
补充:Java , Web 开发