Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all articles
Browse latest Browse all 893

java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1

$
0
0

Hi,

 

  How to resolve the below error in Crystal reports usin JSP;

 

Error Stack Trace:

 

java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1

ORA-01000: maximum open cursors exceeded

ORA-00604: error occurred at recursive SQL level 1

ORA-01000: maximum open cursors exceeded

ORA-01000: maximum open cursors exceeded

 

I am using below code to genrate report:


String reportPath;

Object reportSource;

ReportClientDocument reportClientDocument;

ByteArrayInputStream byteArrayInputStream;

byte[] byteArray;

int bytesRead;

 

reportPath = request.getParameter("_reportName");

 

reportClientDocument = new ReportClientDocument();

 

reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);

 

reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);

 

 

reportSource = reportClientDocument.getReportSource();

session.setAttribute("ReportSource", reportSource);

 

byteArrayInputStream = (ByteArrayInputStream) reportClientDocument

        .getPrintOutputController().export(ReportExportFormat.PDF);

 

response.reset();

 

response.setHeader("Content-disposition", "inline;filename=crreport.pdf");

response.setContentType("application/pdf");

 

byteArray = new byte[1024];

while((bytesRead = byteArrayInputStream.read(byteArray)) != -1) {

response.getOutputStream().write(byteArray, 0, bytesRead);

}

 

response.getOutputStream().flush();

response.getOutputStream().close();

 

reportClientDocument.close();

 

 

Thanks

Penchal


Viewing all articles
Browse latest Browse all 893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>