解决java.sql.SQLException: ORA-01789: query block has incorrect number of result columns

java.sql.SQLException: ORA-01789: query block has incorrect number of result columns

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)

at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)

at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112)

at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:351)

at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:894)

at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:383)

at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:984)

at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1124)

at com.topcheer.ybt.daos.DAO.findAll(DAO.java:187)

at com.topcheer.ybt.events.QueryBillsEvents.getDownloadSearchBill(QueryBillsEvents.java:2260)

at com.topcheer.ybt.events.QueryBillsEvents.download(QueryBillsEvents.java:1173)

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 org.ofbiz.core.event.JavaEventHandler.invoke(JavaEventHandler.java:114)

at org.ofbiz.core.event.JavaEventHandler.invoke(JavaEventHandler.java:96)

at org.ofbiz.core.control.RequestHandler.runEvent(RequestHandler.java:580)

at org.ofbiz.core.control.RequestHandler.doRequest(RequestHandler.java:368)

at org.ofbiz.core.control.ControlServlet.doGet(ControlServlet.java:200)

at org.ofbiz.core.control.ControlServlet.doPost(ControlServlet.java:140)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.filter.SessionFilter.doFilter(SessionFilter.java:89)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.EncodingFilter.doFilter(EncodingFilter.java:69)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.ybt.web.LogFilter.doFilter(LogFilter.java:53)

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:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

at java.lang.Thread.run(Thread.java:619)

2710317[     RequestHandler.java:727:INFO ] servletName=control, view=downloadDetailBill

2014-6-24 18:28:39 org.apache.catalina.core.ApplicationDispatcher invoke

严重: Servlet.service() for servlet jsp threw exception

java.lang.IllegalStateException: getOutputStream() has already been called for this response

at org.apache.catalina.connector.Response.getWriter(Response.java:610)

at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)

at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)

at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)

at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)

at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:173)

at org.ofbiz.core.region.Section.render(Section.java:84)

at org.ofbiz.core.region.RenderTag.doEndTag(RenderTag.java:91)

at org.apache.jsp.templates.main_005ftemplate_jsp._jspx_meth_region_005frender_005f0(main_005ftemplate_jsp.java:182)

at org.apache.jsp.templates.main_005ftemplate_jsp._jspService(main_005ftemplate_jsp.java:81)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

at org.ofbiz.core.region.Region.render(Region.java:177)

at org.ofbiz.core.view.RegionViewHandler.render(RegionViewHandler.java:115)

at org.ofbiz.core.control.RequestHandler.renderView(RequestHandler.java:805)

at org.ofbiz.core.control.RequestHandler.handleNextView(RequestHandler.java:501)

at org.ofbiz.core.control.RequestHandler.doRequest(RequestHandler.java:415)

at org.ofbiz.core.control.ControlServlet.doGet(ControlServlet.java:200)

at org.ofbiz.core.control.ControlServlet.doPost(ControlServlet.java:140)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.filter.SessionFilter.doFilter(SessionFilter.java:89)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.EncodingFilter.doFilter(EncodingFilter.java:69)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.ybt.web.LogFilter.doFilter(LogFilter.java:53)

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:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

at java.lang.Thread.run(Thread.java:619)

2710322[  RegionViewHandler.java:128:ERROR] ServletException rendering JSP view

java.lang.IllegalStateException: getOutputStream() has already been called for this response

at org.apache.catalina.connector.Response.getWriter(Response.java:610)

at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)

at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)

at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)

at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)

at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:173)

at org.ofbiz.core.region.Section.render(Section.java:84)

at org.ofbiz.core.region.RenderTag.doEndTag(RenderTag.java:91)

at org.apache.jsp.templates.main_005ftemplate_jsp._jspx_meth_region_005frender_005f0(main_005ftemplate_jsp.java:182)

at org.apache.jsp.templates.main_005ftemplate_jsp._jspService(main_005ftemplate_jsp.java:81)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

at org.ofbiz.core.region.Region.render(Region.java:177)

at org.ofbiz.core.view.RegionViewHandler.render(RegionViewHandler.java:115)

at org.ofbiz.core.control.RequestHandler.renderView(RequestHandler.java:805)

at org.ofbiz.core.control.RequestHandler.handleNextView(RequestHandler.java:501)

at org.ofbiz.core.control.RequestHandler.doRequest(RequestHandler.java:415)

at org.ofbiz.core.control.ControlServlet.doGet(ControlServlet.java:200)

at org.ofbiz.core.control.ControlServlet.doPost(ControlServlet.java:140)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.filter.SessionFilter.doFilter(SessionFilter.java:89)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.EncodingFilter.doFilter(EncodingFilter.java:69)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.ybt.web.LogFilter.doFilter(LogFilter.java:53)

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:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

at java.lang.Thread.run(Thread.java:619)

2710322[     ControlServlet.java:204:ERROR] Error in request handler:

java.lang.IllegalStateException: getOutputStream() has already been called for this response

at org.apache.catalina.connector.Response.getWriter(Response.java:610)

at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)

at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)

at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)

at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)

at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:173)

at org.ofbiz.core.region.Section.render(Section.java:84)

at org.ofbiz.core.region.RenderTag.doEndTag(RenderTag.java:91)

at org.apache.jsp.templates.main_005ftemplate_jsp._jspx_meth_region_005frender_005f0(main_005ftemplate_jsp.java:182)

at org.apache.jsp.templates.main_005ftemplate_jsp._jspService(main_005ftemplate_jsp.java:81)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

at org.ofbiz.core.region.Region.render(Region.java:177)

at org.ofbiz.core.view.RegionViewHandler.render(RegionViewHandler.java:115)

at org.ofbiz.core.control.RequestHandler.renderView(RequestHandler.java:805)

at org.ofbiz.core.control.RequestHandler.handleNextView(RequestHandler.java:501)

at org.ofbiz.core.control.RequestHandler.doRequest(RequestHandler.java:415)

at org.ofbiz.core.control.ControlServlet.doGet(ControlServlet.java:200)

at org.ofbiz.core.control.ControlServlet.doPost(ControlServlet.java:140)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.filter.SessionFilter.doFilter(SessionFilter.java:89)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.EncodingFilter.doFilter(EncodingFilter.java:69)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.ybt.web.LogFilter.doFilter(LogFilter.java:53)

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:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

at java.lang.Thread.run(Thread.java:619)

2014-6-24 18:28:39 org.apache.catalina.core.ApplicationDispatcher invoke

严重: Servlet.service() for servlet jsp threw exception

java.lang.IllegalStateException: getOutputStream() has already been called for this response

at org.apache.catalina.connector.Response.getWriter(Response.java:610)

at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)

at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)

at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)

at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)

at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180)

at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)

at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)

at org.apache.jsp.error.globalError_jsp._jspService(globalError_jsp.java:100)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

at org.ofbiz.core.control.ControlServlet.handleError(ControlServlet.java:242)

at org.ofbiz.core.control.ControlServlet.doGet(ControlServlet.java:213)

at org.ofbiz.core.control.ControlServlet.doPost(ControlServlet.java:140)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.filter.SessionFilter.doFilter(SessionFilter.java:89)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.EncodingFilter.doFilter(EncodingFilter.java:69)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.ybt.web.LogFilter.doFilter(LogFilter.java:53)

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:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

at java.lang.Thread.run(Thread.java:619)

2014-6-24 18:28:39 org.apache.catalina.core.StandardWrapperValve invoke

严重: Servlet.service() for servlet ControlServlet threw exception

java.lang.IllegalStateException: getOutputStream() has already been called for this response

at org.apache.catalina.connector.Response.getWriter(Response.java:610)

at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)

at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)

at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)

at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)

at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180)

at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)

at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)

at org.apache.jsp.error.globalError_jsp._jspService(globalError_jsp.java:100)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

at org.ofbiz.core.control.ControlServlet.handleError(ControlServlet.java:242)

at org.ofbiz.core.control.ControlServlet.doGet(ControlServlet.java:213)

at org.ofbiz.core.control.ControlServlet.doPost(ControlServlet.java:140)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.filter.SessionFilter.doFilter(SessionFilter.java:89)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.common.EncodingFilter.doFilter(EncodingFilter.java:69)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.topcheer.ybt.web.LogFilter.doFilter(LogFilter.java:53)

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:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

at java.lang.Thread.run(Thread.java:619)

这种问题一般出现在用UNION将若干个select连接到一起,由于select后的列的个数不相等而造成的。

比如

select userid from usercustom

union

select userid,loginname from usercustom

正常的使用需要

select userid,‘‘ as ln from usercustom

union

select userid,loginname from usercustom

已满足列数的相等。

解决java.sql.SQLException: ORA-01789: query block has incorrect number of result columns

时间: 2024-10-10 17:49:10

解决java.sql.SQLException: ORA-01789: query block has incorrect number of result columns的相关文章

ORA-01789: query block has incorrect number of result columns

问题描述 原因如下 查询使用了union或者union all的时候查询上下的字段不一致导致, 需要仔细查看union前和union后的查询的字段是否一致,是否有丢失的字段. 原文地址:https://www.cnblogs.com/7q4w1e/p/9729715.html

解决java.sql.SQLException: Incorrect string value: '\xE6\x88\x91\xE7\x9A\x84...' for column 'groupName'

今天使用mysql,用java程序往mysql中写数据,出现如下错误: Caused by: java.sql.SQLException: Incorrect string value: '\xD3\xCD\xBB\xAD' for column 'type' at row 1 解法: 创建每张表的时候都必须设置数据编码方式: drop table if exists we_artwork_desc; CREATE TABLE we_artwork_desc ( id VARCHAR(200),

Caused by: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0

1.错误描述 org.hibernate.exception.GenericJDBCException: error executing work at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(Sql

解决java.sql.SQLException: Parameter number X is not an OUT parameter--转

最近独自一个人写项目,孤军奋战的程序猿可真伤不起! Java 调用MYSQL带输入输出参数存储过程时如题错误:java.sql.SQLException: Parameter number X is not an OUT parameter(X 表示某个数字) 按照惯例,立刻在谷歌搜以上错误,得到的答案都是在如网址1 网址2 所说删掉输出参数后边的注释啊什么的. 可是我试了还是不行,远程问同行问QQ群无一解决办法.坑爹的一天就那么给浪费过去了. 今天决定重新写一个测试专用的遍存储过程,重新调用.

【Mybatis异常】Caused by: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).

一.错误原因分析 从错误提示可以看出:实际传入的参数大于sql中待设置的参数,也就是sql中的?少于参数或?根本没有产生原因:  ?号被单引号包围 如: sql += " and article_title like '%#{articleTitle}%'"; 二.解决办法 去掉单引号 上面sql改为: sql += " and article_title like concat('%',#{articleTitle},'%')"; 原文地址:https://www

java.sql.SQLException: Can not issue empty query.

1.错误叙述性说明 java.sql.SQLException: Can not issue empty query. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:

java.sql.SQLException: 索引中丢失 IN 或 OUT 参数:: 1解决办法

java.sql.SQLException: 索引中丢失  IN 或 OUT 参数:: 1 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162) at oracle.jdbc.driver.OraclePreparedStatement.pr

出现java.sql.SQLException: No suitable driver的几种解决办法

今天在用C3p0连接MySql数据库 这个时候出现了上面的错误, 一般来说这种错误有3个方向解决 一般都是db的配置的问题 ,一定要小心DB 的配置 八月 19, 2017 8:30:46 下午 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask run警告: [email protected]95 -- Acquisition Attempt Failed!!! Clearing pending acquires. While t

java.sql.SQLException: [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序解决方法

开发程序需要登录功能 ,就不想用大数据库,直接用java连接access.     在自己机器上一切正常,  url直连 和配置数据源都没有问题.  发布到windows server2008 上 ,获取不到数据连接.      系统都是64位, office是2010  32位.     问题找了半天,最终得以解决: 32为的Access driver 需要用32为的jdk才能调用, 于是重装成与自己机器上一样的32位jdk,  连接成功,问题解决.      配置数据源不会刻意搜一下. ja