I am getting this error and cannot print for certain record, but ok with some record. I am so confused.
Can anyone explain?
Thank you very much.
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R Caused by: com.ibm.db2.jcc.a.SqlException: DB2 SQL error: SQLCODE: -811, SQLSTATE: 21000, SQLERRMC: null
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.a.jf.b(jf.java:3198)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.a.jf.a(jf.java:3182)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.b.jb.e(jb.java:589)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.b.jb.n(jb.java:579)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.b.jb.j(jb.java:247)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.b.jb.c(jb.java:57)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.b.w.c(w.java:42)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.b.cc.h(cc.java:177)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.a.rf.p(rf.java:1256)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.a.sf.d(sf.java:2312)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.a.sf.X(sf.java:508)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at com.ibm.db2.jcc.a.sf.executeQuery(sf.java:491)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.query.JRJdbcQueryExecu ter.createDatasource(JRJdbcQueryExecuter.java:115)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.fill.JRFillDataset.cre ateQueryDatasource(JRFillDataset.java:665)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.fill.JRFillDataset.set Datasource(JRFillDataset.java:609)
[9/27/10 11:14:37:764 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.fill.JRFillDataset.set ParameterValues(JRFillDataset.java:598)
[9/27/10 11:14:37:780 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.fill.JRBaseFiller.setP arameters(JRBaseFiller.java:879)
[9/27/10 11:14:37:780 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:708)
[9/27/10 11:14:37:780 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:666)
[9/27/10 11:14:37:780 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.fill.JRFillSubreport.f illSubreport(JRFillSubreport.java:494)
[9/27/10 11:14:37:780 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.fill.JRSubreportRunnab le.run(JRSubreportRunnable.java:63)
[9/27/10 11:14:37:780 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.fill.JRThreadSubreport Runner.run(JRThreadSubreportRunner.java:137)
[9/27/10 11:14:37:780 SGT] 00000030 SystemErr R at java.lang.Thread.run(Thread.java:813)
[9/27/10 11:14:51:466 SGT] 00000030 SystemOut O ReptWbUtil here
[9/27/10 11:14:52:294 SGT] 00000030 SystemOut O Pdf Exporter
[9/27/10 11:14:58:699 SGT] 00000030 SystemOut O Start export report
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R net.sf.jasperreports.engine.JRException: No input source supplied to the exporter.
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.JRAbstractExporter.set Input(JRAbstractExporter.java)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at net.sf.jasperreports.engine.export.JRPdfExporter.e xportReport(JRPdfExporter.java)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at my.org.hasil.dcms.report.web.ReportWebUtil.viewPdf Report(ReportWebUtil.java)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at my.org.hasil.dcms.grq.web.XcAction.performPost(XcA ction.java)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:85)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:58)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:60)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at java.lang.reflect.Method.invoke(Method.java:391)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at my.com.mesiniaga.web.CommonAction.execute(CommonAc tion.java:176)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at org.apache.struts.chain.commands.servlet.ExecuteAc tion.execute(ExecuteAction.java:53)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at org.apache.struts.chain.commands.AbstractExecuteAc tion.execute(AbstractExecuteAction.java:64)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at org.apache.struts.chain.commands.ActionCommandBase .execute(ActionCommandBase.java:48)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at org.apache.commons.chain.impl.ChainBase.execute(Ch ainBase.java:190)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at org.apache.commons.chain.generic.LookupCommand.exe cute(LookupCommand.java:304)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at org.apache.commons.chain.impl.ChainBase.execute(Ch ainBase.java:190)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at org.apache.struts.chain.ComposableRequestProcessor .process(ComposableRequestProcessor.java:280)
[9/27/10 11:15:21:306 SGT] 00000030 SystemErr R at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1858)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:459)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1212)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:629)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleReques t(WebApp.java:2837)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequ est(WebGroup.java:220)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.webcontainer.VirtualHost.handleRequest( VirtualHost.java:204)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:1681)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:77)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:421)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:367)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:94)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java:548)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java:601)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java:934)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java:1021)
[9/27/10 11:15:21:322 SGT] 00000030 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1332)
Here's the codes:
Expand|Select|Wrap|Line Numbers
- public ActionForward performPost(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws java.io.IOException, javax.servlet.ServletException{
- ActionErrors errors = new ActionErrors();
- ActionForward forward = new ActionForward(); // return value
- HttpSession httpSession = request.getSession();
- MESSession session = (MESSession) httpSession.getAttribute(DCMSConstants.DCMSConstants_MESSESSION);
- XcBO xcbo = new XcBO(session);
- try{
- XcForm xcForm = (XcForm) form;
- BeanUtils.copyProperties(xcbo,xcForm);
- if(xcForm.getHiddenPrint()!= null)
- {
- xcbo.repodataForUpdatePage();
- }
- else
- xcbo.retriveRepoData();
- String fdigi=xcbo.getFile_no().substring(xcbo.getFile_no().length()-1);
- String sdigi=xcbo.getFile_no().substring(xcbo.getFile_no().length()-3,xcbo.getFile_no().length()-1);
- String tdigi=xcbo.getFile_no().substring(0,xcbo.getFile_no().length()-3);
- String userId = getUserIdInSession( request );
- IOnlineListGenerator generator = OnlineListFactory.lookupGenerator("xc18report");
- String[] multivalue=null;
- if(xcForm.getHiddenPrint()!= null)
- {
- }
- else
- multivalue=xcForm.getFileArr();
- // System.out.println("it ref no"+xcbo.getIt_ref_no());
- Map inputData = new HashMap();
- //parameter required for date list
- // inputData.put("file_type",xcbo.getFile_type());
- // inputData.put("instyear",xcbo.getInstall_year());
- // inputData.put("instmonth",xcbo.getInstall_month());
- // //System.out.println("year length.........."+xcbo.getAssmt_year().length);
- inputData.put("yeararr",xcbo.getAssmt_year());
- //parameter for date list
- if(xcForm.getHiddenPrint()!= null)
- {
- inputData.put("print","print");
- inputData.put("fileNo",xcForm.getFile_no());
- inputData.put("taxpayer_key",xcForm.getTaxpayer_key());
- inputData.put("status",xcForm.getStatus());
- inputData.put("year",xcForm.getInstall_year());
- inputData.put("month",xcForm.getInstall_month());
- inputData.put("filetype",xcForm.getFile_type());
- inputData.put("taxtype_key",xcForm.getTaxtype_key());
- inputData.put("it_ref_no",xcbo.getIt_ref_no());
- }
- else
- {
- inputData.put("multivalue",multivalue[0]);
- inputData.put("print","selectPrint");
- }
- inputData.put("newic",xcbo.getNew_ic_no());
- inputData.put("name",xcbo.getTaxpayer_name());
- inputData.put("add1ra",xcbo.getRa_address_line1());
- inputData.put("add2ra",xcbo.getRa_address_line2());
- inputData.put("add3ra",xcbo.getRa_address_line3());
- inputData.put("cityra",xcbo.getRa_city());
- inputData.put("statera",xcbo.getRa_state());
- inputData.put("posra",xcbo.getRa_postcode());
- inputData.put("proffkod",xcbo.getProfession_code());
- inputData.put("empname",xcbo.getEmployer_name());
- inputData.put("add1re",xcbo.getRe_address_line1());
- inputData.put("add2re",xcbo.getRe_address_line2());
- inputData.put("add3re",xcbo.getRe_address_line3());
- inputData.put("cityre",xcbo.getRe_city());
- inputData.put("statere",xcbo.getRe_state());
- inputData.put("posre",xcbo.getRe_postcode());
- inputData.put("offpre",xcbo.getOfficer_prepare());
- inputData.put("datpre",xcbo.getDate_prepare());
- inputData.put("offapp",xcbo.getOfficer_approve());
- inputData.put("datapp",xcbo.getDate_approve());
- inputData.put("creby",xcbo.getCrt_by());
- inputData.put("creon",xcbo.getCrt_on());
- inputData.put("totpaid",xcbo.getTotal_paid_amount());
- inputData.put("totnetbal",xcbo.getTotal_net_balance_amount());
- inputData.put("totbal",xcbo.getTotal_balance());
- inputData.put("fdig",fdigi);
- inputData.put("sdig",sdigi);
- inputData.put("tdig",tdigi);
- inputData.put("filetype_category",xcbo.getFile_category());
- JasperPrint jasperPrint = generator.process("xc18report",userId,inputData);
- ReportWebUtil.viewPdfReport(response, jasperPrint, "xc18report");
- // ReportWebUtil.viewPdfReport(response,"xc18report");
- }catch(Exception e)
- {
- e.printStackTrace();
- }
- return null;
- }
- }