lvhaowen的gravatar头像
lvhaowen 2016-06-13 17:06:38

java异常The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments怎么解决?

session start
六月 13, 2016 5:02:11 下午 org.apache.catalina.session.StandardSession tellNew
严重: Session event listener threw exception
java.lang.Error: Unresolved compilation problems:
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)
    The method selectBySplb(String) in the type ScSptpService is not applicable for the arguments (String, String)

    at com.qlestore.cms.core.WebCache.indexSessions(WebCache.java:160)
    at com.qlestore.cms.core.WebSessionListener.setIndexSessions(WebSessionListener.java:34)
    at com.qlestore.cms.core.WebSessionListener.sessionCreated(WebSessionListener.java:24)
    at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:422)
    at org.apache.catalina.session.StandardSession.setId(StandardSession.java:394)
    at org.apache.catalina.session.StandardSession.setId(StandardSession.java:375)
    at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:653)
    at org.apache.catalina.connector.Request.doGetSession(Request.java:2946)
    at org.apache.catalina.connector.Request.getSession(Request.java:2310)
    at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:897)
    at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
    at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:569)
    at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:514)
    at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:147)
    at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:126)
    at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:112)
    at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:65)
    at org.apache.jsp.views.emall.category_jsp._jspService(category_jsp.java:85)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
    at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
    at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)
    at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1157)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:927)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:744)

所有回答列表(2)
daizhen256的gravatar头像
daizhen256  LV6 2016年6月14日

你的方法在ScSptpService里面是有两个参数的,现在只写了一个参数,参数不匹配导致编译出错

评论(0) 最佳答案
yjx4510013的gravatar头像
yjx4510013  LV9 2016年6月14日

同意楼上“daizhen256”说的

顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友