Idle Session in Crystal Report
We have an environment where Crystal Report is talking to Universe. Report is published using BO XI3 Publisher. Issue is when Crystal Report is running for a report let us say for 10 minutes then for each query it executes; one session is opened and data is fetched, but the session is kept idle session even though query has completed fetching data.
If the report is run for 10 minutes till the report execution is completed those many idle sessions it creates and is removed only when the report completes execution.
Is there anyway we can close those sessions which is complete fetching data from database, instead of waiting complete report execution.
Hello,
So repost to the Businessobject forum. This one is for Crystal reports only and no one in this forum will help you.
10 minutes is the default timeout for some of the BOE servers, you can change this setting in the CMC servers area.
Thank you
Closing again
Similar Messages
-
Detail session in crystal report
For a report i need the details session to be constant as 20 lines
if the report retrieve four lines i don't want just four lines in details session
i need four lines and totally twenty lines
If you have any clarification plz reply i will reply shortly
Regards,
KrishHi
You can apply a suppress condition in section expert for details section with count of record as below:
- Open section expert.
- Select details section.
- Click on X-2 for Suppress.
- in the formula editor type the below formula:
Count(database field) = 20;
-Click on save and close.
-Click on Ok.
This would restrict data to 20 records only.
Hope this helps!!!
Regards
Sourashree -
Crystal report not shown after application idle time
i have a web page which uses around 10 session variables to store values on a button click.and after assign session values Response.Redirect("~/url",false); to a a page which contains crystal report viewer.and report should show those session values.after keeping the application idle for 45 mins i click on the button which assign session values.then it's redirecting to the report page but the report is not shown.it shows a empty page and no errors shown(only happens application is idle for nearly 45 mins other wise works fine)
i'm using iis 7
in the web.config i have set sessionState timeout="60" and application pool idle time out to 60 mins.
any idea why this happensMake sure you are on SP 8
Make sure you are using .Close and .Dispose on your report objects as you get done with them.
What OS? (2003, 2008, 2012)
Provide more info on the following:
The problem is that the Crystal Report Viewer does not load after a few hours.
What does that mean? Errors? Warnings? Behavior? Symptoms?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Crystal report print button greyed out in user citrix sessions
Hi,
We are running Citrix Enterprise Server 4.5 on Windows 2003 servers.
We have a ERP app called Epicor 7.3.6 installed on them.
Crystal Reports 9 is installed on all these servers and the epicor app displays and prints crystal reports.
Some users when logged into their Citrix profile session and running Crystal Reports from within Epicor application can not print the Crystal report because the Print button is greyed out.
We have compared users that can print against users who can not not print and not found anything at the network, file permissions, application permissions, printer setup setting level.
Also, if we were to take citirx completely out of the discussion, what might cause the print button to be greyed out in a crystal report when it is displayed (not the developer, but in the minmal window that shows the export, print, magnify options only).
Thanks
ChrisCheck with Epicor. We don't know how Epicor implemented the solution so it's kinda like you asking a mechnic to fix your car, but he can't open the hood to see the engine.
A tip; this is more than likely due to permissions. So, compare between boxes thast work and don't work. Use [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] to track permission issues.
Ludek -
Crystal report server2008 (XI R2): CMC session timeout error
HI
Crystal report server2008 (XI R2): CMC session timeout error
Accessing folders, scheduling reporting or running reports are working fine with Central Management Console (CMC) within the Crystal report server or accessing CMC within VPN machine. But when CMC is accessed through browser from client desktop i.e through proxy URL, users are not able to access folder or personal folders to view any reports even admin user is not able to access folders. When users try to access folder or personal folders it gives session-timeout errors. Within less than a 1 or 2 minutes it is showing session timeout error. Appreciates any one help on this quickly.
Regards,
Patrick RathsPlease post your query to the [Business Objects Enterprise Administration|BI Platform; forum. This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
BTW., if thi is an important issue, I'd recommend creating a phone case.
Ludek
Edited by: Ludek Uher on Aug 11, 2010 1:58 PM -
Crystal Reports 2008 crashes in Windows 2003 terminal Services Session
Hi,
We installed Crystal Reports Server and Crystal Reports 2008 on a new Windows 2003 Small Business Server. Crystal Reports works when run at the physical console, but when accessed from Remote Desktop it crashes to the debugger when I try to:
a) open an existing working report that uses SQL Server 2005 parameterized stored procedure,
b) create a new report using any SQL Server 2005 parameterized stored procedure,
c) access help.
All the above work fine at the physical server but I need to access remotely using RDC.
I log in as administrator, I have tried turning off DEP and I am running RDC via the mstsc command both without and with the /admin switch to run in session 0 but there is still a difference between being at the physical console versus remote that CR does not like.
More: I have to drive a long way to get to the server to try things locally. For now, as a workaround, I have started crw32.exe at the physical server and I can use that when I log in via RDC - I just cannot start crw32.exe remotely and run it successfully. Also, when I do run remotely, I get the entire menu bar on startup with no start page, but running at physical server I get only the File, View and Help menus but I do get the Start page.
Any ideas?
Thanks,
Rob Hershfield
Dave Machado
Edited by: David Machado on Nov 17, 2008 9:39 PMPermission issues
-
Can you use Crystal Reports on a webpage without having to use session?
In all of the examples I have seen it shows using the session to store the reportdocument object between postbacks. That means that clicking the page buttons fires a postback. Other reporting tools such as PDF, ActiveReports, and others do not have to do this. Is this a limitation of Crystal and a COM backend or is it just a common sample and not the only option?
How do you get paging to work without having to use session and do postbacks? AJAX, Javascript, converting to a PDF, etc. would all be possible ways to not require a postback.
My problem is that I am using SQL Server to store the session and the reportdocument object is not serializeable. I have been told I can buy Crystal Report Server for $5000 and this will work. But in reality I can buy other reporting tool for $500 or convert them to SQL Reporting and it will work as well. So I am trying to be reasonable and figure out what I need to do. That seems like a bit much to need a whole server application to serve the reports just to turn on paging for a couple of simple reports. I'm hoping there is a way to not use session to get paging to work.
I have consider pushing the report into viewstate and not session. But I would rather not push it into either. Is this a valid option?
What is the typical way to handle this sort of thing? Do you really have to push it into session to get the CrystalReportViewer control to page on an ASPX page. What other options are there?
Any suggestions, thoughts, or ideas would be very much appreciated. This is causing enough of a problem where the company is asking me to look at alternatives if we cannot solve this.
Best regards,
JonAcrobat doesnu2019t cause postbacks when paging because the acrobat reader installed locally, so its viewing is in a client-side control. I imagine the same thing is the case for ActiveReports (some sort of client-side activex control installed).
If the winform viewer was used on in your web page, then you wouldnu2019t get postbacks either, but then you'd need Crystal Reports runtime on the client to view in that control. And placing a winviewer in a web page give me shivers...
So, to avoid using session, recreate the reportdocument and re-load the report on postbacks.
As Surabh mentioned, you can serialize the report but you will have to use teh InProc RAS. There is an issue thought; you start to get load errors and otehr errors after viewing 3 reports. I belive this has been reported to R&D for a fix comment, but I do not have and ETA at this time. The code for the InProc RAS SDK would be as follows:
If Not IsPostBack Then
Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim boReportClientDocument As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument
' rpt.ReportAppServer = "Inproc:multithreaded"
rpt.Load("c:inetpubwwwroot estSerializeInprocRASEmployee Profile.rpt",
OpenReportMethod.OpenReportByTempCopy)
boReportClientDocument = rpt.ReportClientDocument
Dim x As String = boReportClientDocument.DataDefController.Database.Tables(0).Name
' boReportClientDocument.DatabaseController.logon("sa", "admin")
Dim convertUtil As New CrystalDecisions.ReportAppServer.Utilities.Conversion()
Dim serializedDoc As String
serializedDoc = convertUtil.ToString(rpt.ReportClientDocument)
Session.Add("SerializedDoc", serializedDoc)
'ViewState.Add("SerializedDoc", serializedDoc)
Response.Write("The document has been serialized.")
CrystalReportViewer1.ReportSource = boReportClientDocument.ReportSource
Else
Label1.Visible = False
Button1.Visible = False
Dim x As String
x = ViewState("SerializedDoc").ToString()
Dim deSerializedDoc As ISCDReportClientDocument
Dim convertUtil As New Conversion
deSerializedDoc = convertUtil.ToReportClientDocument(Session("SerializedDoc").ToString())
'deSerializedDoc = convertUtil.ToReportClientDocument(ViewState("SerializedDoc").ToString())
CrystalReportViewer1.ReportSource = deSerializedDoc
Response.Write("You are viewing a de-Serialized report" & "<BR>")
Response.Write(ViewState("SerializedDoc").ToString())
End If
[1542991 - How to serialize the ReportClientDocument using the RAS .NET SDK?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343332333933393331%7D.do]
- Ludek
Edited by: Ludek Uher on Dec 9, 2011 11:16 AM -
Catch BO Session info in Crystal Report 2008
Hi All.
I have an Xcelsius model with data provided by a Live Office connection.
I've tried to embed this model, as swf file, in a report Crystal 2008.
I've published this report within BOE Enterprise, but trying to visualize it, the Live Office connection prompts for BO authentication.
Is there any way in Crystal Report 2008 to catch current BO session info to pass it to the Live Office connection?
I would really appreciate any suggestion.
Thanks a million.
PS: I'm sorry if this is not the right forum. This thread is available also in Dashboard Design (Xcelsius) section.HI,
to get or find an answer/solution about your question/problem?
I planning also to use Hierarchy Display in CR. And it is very interessting for me to know if that is working.
Thanks
Andreas -
Catch BO Session info in Crystal Report 2008 to pass to Xcelsius 2008
Hi All.
I have an Xcelsius 2008 model with data provided by a Live Office connection.
I've tried to embed this model, as swf file, in a report Crystal 2008.
I've published this report within BOE Enterprise, but trying to visualize it, the Live Office connection prompts for BO authentication.
Is there any way in Crystal Report 2008 to catch current BO session info to pass it to the Live Office connection?
I would really appreciate any suggestion.
Thanks a million.
PS: I'm sorry if this is not the right forum. This thread is available also in Crystal Reports Design section.No, we haven't found a solution that we would like to have.
We are putting in place a workaround to update the Xcelsius SWF file outside of Crystal. We will have the Crystal Report using the BOBJ scheduler to export to Excel on a file share the cross tab table used in Xcelsius and then have Xcelsius updated using the BOBJ scheduler. Instead of having the Xcelsuis embedded in Crystal, the SWF file will be posted to the same SharePoint site that we will be posting the PDF file from Crystal. Not ideal, but it should work. -
Crystal report Viewer Session times out for more data in Portal
Hi All,
I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
Please help . Please let me know if I am missing something.. Thanks in Advance!!!
CODE;
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
<%@page
import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
<%@page import="com.crystaldecisions.report.web.viewer.*"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
<%@page import="java.io.Writer"%>
<%@page import="java.io.IOException "%>
<%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
<% response.setHeader("pragma","no-cache");//HTTP 1.1
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.addDateHeader("Expires", -1);
response.setDateHeader("max-age", 0);
//response.setIntHeader ("Expires", -1);
//prevents caching at the proxy server
response.addHeader("cache-Control", "private"); %>
<%
String reportPath,Sharedpath;
ReportClientDocument reportClientDocument;
ParameterFieldController parameterFieldController;
try{
reportPath = "reportlocation";
Sharedpath = "Target Location";
reportClientDocument = new ReportClientDocument();
reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");
System.out.println("Connecting...");
parameterFieldController = reportClientDocument.getDataDefController()
.getParameterFieldController();
parameterFieldController.setCurrentValues("", "param 1",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
parameterFieldController.setCurrentValues("", "Param 2",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
reportClientDocument.close();
System.out.println("Finished...");
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setOwnPage(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
viewer.setReportSource(Sharedpath);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
System.out.println("Finished...");
} catch (ReportSDKException e) {
// TODO Auto-generated catch block
e.printStackTrace();
%>Hi All,
I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
Please help . Please let me know if I am missing something.. Thanks in Advance!!!
CODE;
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
<%@page
import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
<%@page import="com.crystaldecisions.report.web.viewer.*"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
<%@page import="java.io.Writer"%>
<%@page import="java.io.IOException "%>
<%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
<% response.setHeader("pragma","no-cache");//HTTP 1.1
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.addDateHeader("Expires", -1);
response.setDateHeader("max-age", 0);
//response.setIntHeader ("Expires", -1);
//prevents caching at the proxy server
response.addHeader("cache-Control", "private"); %>
<%
String reportPath,Sharedpath;
ReportClientDocument reportClientDocument;
ParameterFieldController parameterFieldController;
try{
reportPath = "reportlocation";
Sharedpath = "Target Location";
reportClientDocument = new ReportClientDocument();
reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");
System.out.println("Connecting...");
parameterFieldController = reportClientDocument.getDataDefController()
.getParameterFieldController();
parameterFieldController.setCurrentValues("", "param 1",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
parameterFieldController.setCurrentValues("", "Param 2",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
reportClientDocument.close();
System.out.println("Finished...");
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setOwnPage(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
viewer.setReportSource(Sharedpath);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
System.out.println("Finished...");
} catch (ReportSDKException e) {
// TODO Auto-generated catch block
e.printStackTrace();
%> -
Crystal Report Viewer Session Time out error ( FWM 01002)
Hi,
We are using java 1.4 and Teradata base with BO XI 3.0
I am getting the following error when click on icons (Export, Print, Paging) within Crystal Report Viewer.
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unable to
reconnect to the CMS [servername]. The session has been logged off or has expired. (FWM 01002) [RASLIB9038]---- Error code:-2147215357
Error code name:internal at
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source) at
com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.a(Unknown Source) at com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.getLastPageNumber(Unknown Source) at com.businessobjects.report.web.b.a.do(Unknown Source) at
com.businessobjects.report.web.event.q.a(Unknown Source) at com.businessobjects.report.web.event.q.a(Unknown Source) at com.businessobjects.report.web.event.k.a(Unknown Source) at com.businessobjects.report.web.event.bt.broadcast(Unknown Source) at com.businessobjects.report.web.event.ak.a(Unknown Source) at com.businessobjects.report.web.a.q.if(Unknown Source) at com.businessobjects.report.web.e.a(Unknown Source) at com.businessobjects.report.web.e.a(Unknown Source) at com.businessobjects.report.web.e.if(Unknown Source) at
com.crystaldecisions.report.web.viewer.CrystalReportViewerUpdater.a(Unknown Source) at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source) at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.if(Unknown Source) at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at
If I let the report sit for 30 minutes or so, the icons will work. The u201Csession
timeout error messageu201D is kind of misleading. I have updated the JDBC drivers to version 13.0 for Teradata (terajdbc4.jar and tdgssconfig.jar) and did not see improvement.
Can anyone please help?
Thanks!
Edited by: Yingchiu Ou on May 12, 2010 12:42 AMI see the viewer, but not the attendant EnterpriseSession nor what the ReportSource is connected to.
Since the error message explicitly states issues with EnterpriseSession lifetime, it'll be good to give the above info.
Sincerely,
Ted Ueda -
Oracle Forms and Report Services kill idle sessions
In our Oracle Forms and Report Server many user open session and stay idle, i want to drop such sessions after 10 minutes to free resources.
Please help how to proceedDefault settings for forms session timeout is 15 Minutes. But heartbeat parameter (default 2 minutes) doesn't allow AS to close idle sessions. So define heartbeat=20 in your formsweb.cfg file.
As far as reports are concerned set engineResponseTimeout="15" in your report server configuration file. This setting will not allow any report to remain in the queue for more than 15 minutes.
Regards
Mohsin Iqbal -
InfoView Request timeout error for Crystal report server2008 (XI R2):
HI
Crystal report server2008 (XI R2): InfoView Request timeout error
Some reports which are taking more than 10 to 15 minutess while running through InfoView gives error as follows:
An error has occured: Request timed out.
This error appears within the crystal report server and when user tries to access through browser client desktop also. Sometimes it prompts the error as follows when users try to access through browsers from there desk i.e through proxy connection.
The proxy server received an invalid response from an upstream server.
The proxy serer could not handle the request POST/report/CrystalReports/Viewrpt.aspx.
Reason: Error reading from remote server
The timeout setting of all web.config files under infoviewapp, infoviewappactions, platform services, crystal reports folders have been checked and the default timeout 20 minutes is changed to 30 minutes and IIS is restarted, but still users are getting request timeout error within 10 to 15 minutes while running a crystal report. Even admin user.
Regards,
Patrick RathsAlso try the below changes for IIS,
Right-click default website --> properties
Go to the Home Directory tab and click on Configuration
Change the Session Timeout to 30 minutes
Click OK
Right click the BOBJAppPool121 Application Pool --> Properties
Go to the performance tab and change the idle timeout to 30 --> Click OK
Right click the DefaultAppPool Application Pool --> Properties
Go to the performance tab and change the idle timeout to 30 --> Click OK
Restarted IIS
Thanks,
Hari -
Crystal Report generate PDF with J2EE problem
Dear All
I am having a great problem on generating PDF file by Crystal Report in J2EE.
I have my J2EE application runs Crystal Report to generate PDF files.
However for a report, i hit the following error (red color) when the PDF is generating.
But is no problem for the other reports.
Here is the code that i used to generate the PDF
My OS and Java version as follows
Window 2003 server.
Java 1.4.2_04
Please Kindly Help
Thanks very much
public static void export(HttpServletRequest request, HttpServletResponse response, String reportPath, ArrayList paramList, ReportExportFormat outFormat) throws Exception{
System.gc();
HttpSession session = request.getSession(false);
Object reportSource = getReportSource(request, reportPath);
ReportExportControl exportControl = new ReportExportControl();
if(paramList != null && paramList.size()>0){
exportControl.setParameterFields(getParamFields(paramList));
ExportOptions exportOptions = new ExportOptions();
exportOptions.setExportFormatType(outFormat);
PDFExportFormatOptions pdfexpopts = new PDFExportFormatOptions();
exportOptions.setFormatOptions(pdfexpopts);
exportControl.setReportSource(reportSource);
exportControl.setExportOptions(exportOptions);
exportControl.processHttpRequest(request, response, session.getServletContext(), null);
exportControl.dispose();
public static IReportSource getReportSource(HttpServletRequest request, String reportPath) throws Exception{
ReportClientDocument oReportClientDocument = new ReportClientDocument();
HttpSession session = request.getSession(false);
oReportClientDocument.open(reportPath, 0);
return oReportClientDocument.getReportSource();
00:57:08,671 ERROR reportdefinition Thread-28 - Report printer was not valid, switching to default printer.
00:57:08,687 ERROR objectformatter Thread-28 - com.crystaldecisions.reports.dataengine.k: |Y
00:57:09,343 ERROR b Thread-28 - Disk Exporter: no output file was created by an exporter
00:57:09,343 ERROR b Thread-28 - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); java.lang.IllegalArgumentExceptionHi,
I have tried this code but stil the same.
However i tried setup another tomcat and application in the other machine and the only job for the application is exporting the report that has problem, then the error is gone.
So i guess that is the memory size problem.
Thanks for this
One more question about the memory size between Tomcat and Crystal report.
I have set in catalina.bat as
set JAVA_OPTS = "-Xms2048M -Xmx1024M"
and CRConfig as
<JVMMaxHeap>1024000000</JVMMaxHeap>
<JVMMinHeap>512000000</JVMMinHeap>
1. Is that the correct setting.?
2. The memory in the JAVA_OPT and is the MAX and MIN memory that java would use,
then is the Max memory in CRConf is 1024M out of the java heap size or the application use another 1024 memory -
Exception-Error when excecuting JSP-File in Crystal reports for Eclipse
Hi,
I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
Coud anyone help me?
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
An error occurred at line: 10 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
ReportClientDocument cannot be resolved to a type
10: try catch (ReportSDKExceptionBase e)
60:
An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
e cannot be resolved
55:
56:
57: } catch (ReportSDKExceptionBase e)
60:
61: %>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
Apache Tomcat/5.5.26
Bericht1.jsp:
<%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
com.crystaldecisions.reports.sdk.ReportClientDocument,
com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
// This sample code calls methods from the JRCHelperSample class, which
// contains examples of how to use the BusinessObjects APIs. You are free to
// modify and distribute the source code contained in the JRCHelperSample class.
try {
String reportName = "Bericht1.rpt";
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null) {
// Report can be opened from the relative location specified in the CRConfig.xml, or the report location
// tag can be removed to open the reports as Java resources or using an absolute path
// (absolute path not recommended for Web applications).
clientDoc = new ReportClientDocument();
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
// Store the report document in session
session.setAttribute(reportName, clientDoc);
// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
// Create the CrystalReportViewer object
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
// set the reportsource property of the viewer
IReportSource reportSource = clientDoc.getReportSource();
crystalReportPageViewer.setReportSource(reportSource);
// set viewer attributes
crystalReportPageViewer.setOwnPage(true);
crystalReportPageViewer.setOwnForm(true);
// Apply the viewer preference attributes
// Process the report
crystalReportPageViewer.processHttpRequest(request, response, application, null);
// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
} catch (ReportSDKExceptionBase e) {
out.println(e);
%>
Thanks
ArnoldAccording to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using.
Maybe you are looking for
-
I have a Windows Vista Full Installer disc and a Windows 7 Upgrade Disc. I am currently running a Mid-2012 MacBook Pro 13" with Mountain Lion, Boot Camp Version 5. Can I install Windows Vista through Boot Camp, then upgrade to Windows 7 or Windows 8
-
Home sharing does not work in iTunes 9??
I have spent hours going through this and conclude there must be something up with home sharing in the latest iTunes - I had no problem with it previously. I have everything checked that should be checked, my iMac and MacBook are on the same local wi
-
Help! need "How To" for a feature of iBooks on iPad using iTunes
On the bottom of the iBooks main screen there is "Bookshelf", "Titles", "Authors", "Categories" buttons. Pressing any one will sort books by that tab. In iTunes, the same Column headers can come up when you select them under "View Options". So far, s
-
Sending a binary attachment via email, looking for a more clean way
Hi experts. I finally managed to send a binary attachment via email. Why "finally"? Never done before! Also I got to manage the "not standard" .SAP file extension, because the attachment is a transaction link. So let me explain how i did it: take SO_
-
Dropped Frames in the Xsan environment
Hello Everyone, I have just setup a SAN network and have been experiencing dropped frames when capturing HD Pro Res 422 on my two client computer at the same time. I have been successful capturing on one computer at a time and playing the same captur