Print Page | Close Window

Crystal Interactive Viewer processHttpRequet Error

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2022
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=15264
Printed Date: 22 Apr 2025 at 12:55am


Topic: Crystal Interactive Viewer processHttpRequet Error
Posted By: SBMH
Subject: Crystal Interactive Viewer processHttpRequet Error
Date Posted: 30 Dec 2011 at 10:54am
Dear all,

I need kind help regarding the integration of crystal interactive viewer with web application using servlet using weblogic 10.3

I am facing an error  when i run the following:

CODE:
--------
 CrystalReportInteractiveViewer viewer = new CrystalReportInteractiveViewer();

viewer.setOwnPage(true);

viewer.setReportSource(clientDoc.getReportSource());

viewer.processHttpRequest(request, response,
                              getServletConfig().getServletContext(), null);

the error is generated while processHttpRequest processing


ERROR:
--------

java.lang.IllegalStateException: strict servlet API: cannot call getWriter() aft
er getOutputStream()
        at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletRespon
seImpl.java:307)
        at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
        at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
        at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unkn
own Source)
        at webmodule.CrystalReportViewerServlet.viewCrystalReportHandler(Crystal
ReportViewerServlet.java:82)


help me as i am struck with this problem.


thanks,
Sbmh





Replies:
Posted By: SBMH
Date Posted: 03 Jan 2012 at 6:52pm
Hi,
I am unable to figureout the problem, but i have choosen the alternative way by writing custom control for export option. instead of using crystal interactive veiwer Toolbar. In this way i have resolved the problem....
 
But in my mind the question is still about the problem.
 
Thanks
 
Sbmh



Print Page | Close Window