Crystal Reports "Report Application Server"

Does anyone have any experience with Crystal Reports' Report Application Server (RAS)?
The provided documentation is very thin and support are taking an age to respond.
I want to use a Bean as a data source for a report. The blurb says you can do this, but the only documented way I can find is for the bean to return a ResultSet, completely missing the point of using a bean or EJB in the first place.
Now, Seagate's sales blurb states that Beans and EJBs can be used as data sources, but if the only way to do this is to return a common or garden ResultSet, what's the point of the bean???
So, has anyone sucessfully used a bean or EJB as a data source for report generation under RAS, or merely CR in general, without resorting to a ResultSet??

Crystal Reports YUK!! especially in Java Forum!Tell me about it!!
But, like many developers, I don't get a choice. I have to use CR, and I have to integrate it into a Tomcat (4.1.24) based app. There is a Java API for RAS, but it is a pile of dung. Can you imagine publishing an API with public methods with 'do not use, for internal use only' plastered all over them!!!
But still, back to the original question, I have to find a way of doing this, but Seagate's javadocs are a mess, as are the howto docs. All of the examples, as you might expect, are childishly simple and don't give any insight into the large and hideous API :(
Here is an example of a CR howto.....
There appear to be two ways of creating a data source that isn't an existing report or a database query. This
Runtime data sources
One of the strengths of RAS over the Crystal Reports application, is that the RAS
can use data generated programatically at runtime. With a runtime data source,
you can take data from any source�such as a database, a data stream, or a flat
file�manipulate it with the programming language of your choice, and display it
with RAS.
To use a runtime data source
1 Put your manipulated data in a rowset form that can be processed by the RAS.
Consult the Rowset object and interface in the SDK JavaDocs, for details on
creating rowsets.
2 Create and fill the Dataset object with the rowset data.
3 Create a RowsetController object.
4 Add or set the data source using the RowsetController�s AddDataSource or
SetDataSource methods respectively.
The runtime data source is now available for use.
Note: If you create a report based on a data set, the data that is used is not saved
with the report. To populate the report with data the next time you open it, you
must either re-apply the data source to see current data, or access a saved version
of the data source for preview.
All well and good, but RowsetController doesn't have an AddDataSource or SetDataSource method!!!!
and this......
JavaBean custom data sources
You can use a JavaBean (or a Java class that does not extend the bean type) in order
to specify a custom data source. In order to do this, you will need to:
� Creating a Java class that specifies a custom data source
� Referencing a java class to provide data for a report
Creating a Java class that specifies a custom data source
To use a JavaBean (or a Java class that does not extend the bean type) in order to
specify a custom data source, you will need to create a class that serves as a Java
Beans Connectivity data source for creating Crystal Reports.
This class will need to conforms to the JavaBean standard by defining private
properties that are accessible only through get and set methods. In this way the
Crystal Reports designer can introspect the class as a Bean. The JavaBean
connectivity classes require the following.
� The constructor must have zero parameters.
� Methods that are used as "tables" must have a return type of ResultSet.
� Statement objects must be created using the
ResultSet.TYPE_SCROLL_SENSITIVE and ResultSet.CONCUR_READ_ONLY
arguments.
Note: Methods returning ResultSet can take arguments, these are treated as
Stored Procedure parameters by Crystal Reports.
Now, what the hell is the point of going to the trouble of abstracting your business data into a bean or EJB, if that bean has to return a ResultSet for Crystal Reports to use??!!

Similar Messages

  • Could not start the Crystal Report Application Server service on local computer

    Post Author: [email protected]
    CA Forum: Deployment
    Hi
    I have a following problem.
    I have installed Crystal report application server(RAS)(CE embeded 10) on Windows server 2003 enterprise x64 edition.
    When i start it, i see an error:
    Could not start the Crystal Report Application Server service on local computerError 1067: the process terminated unexpectedly
    Sometimes, i can start it but it stops a few minutes later.
    I have disabled DEP (data execution prevention).
    Log:
    Faulting application crystalras.exe, version 10.0.0.533, faulting module unknown, version 0.0.0.0, fault address 0x00000000.
    Please help
    Thanks for your help

    This error occurs after an initial install, when the Oracle suite is installed logged in as the user(who has admin rights on the machine). If this is the case,
    1.Go to Services (Admin Tools > Services)
    2.Double click the Oracle services( BI Server or Presentation or TNS Listener).
    3.Go to Log On tab
    4.If local system account is checked , un-check that option. Check "This Account" option
    5.Give the user information for that machine(e.g domain\username)
    6.Specify password associated with the user ( the username/pwd that is used to login to the machine)
    7.Confirm pwd and click Apply.
    8.re-start the service.
    This is what i did , and it worked.
    good luck and hopefully oracle addresses these issues , they become frustrating to use the product.
    Thanks,
    Ram

  • Using two version of Crystal Report Application Server simultaneously

    We are currently using Crystal Report Server XI Release 1 in a production environment, and we would like to test Crystal Report Server XI Release 2 in a test environment, on the same network.
    Is there a way to be using those two versions simultaneously on the same network, using the same license key, for test purposes ?
    If our tests are conclusive, we will upgrade our production environment to Release 2.
    Thank you
    Anthony Arnaud

    As long as they are not on the same computer this is a rather comon configuration as best practices dictate that customers should maintain multiple environments (DEV/UAT/PROD) for example.
    If you are trying to install both on the same server it's not supported with those 2 versions and is known to cause issues where neither will work (different story if using unix and different port numbers).
    Regards,
    Tim

  • Problems starting Crystal Reports Page Server and Report Application Server

    Hi,
    We have migrated to a new server and I have re-installed our Crystal Reports Server XI R1.
    It is being installed on a Windows 2003 SBS Premium Server with MSSQL 2005 Workstation Edition
    I have been told that I need to start the following Crystal services after installation.
    1) Crystal Reports Page Server
    2) Report Application Server
    These services simply wont start
    When I try to start Crystal Reports Page Server, I get a Visual Studio Just-In-Time Debugger window that says...
    An unhandled Win32 exception occured in pageserver.exe [14892], subsequently, another window pops up [svrmgr] that says
    "The service did not respond to the start or control request in a timely fashion"
    Also, when I try to start the Report Application Server, I get another VS JIT debugger window that says
    An unhandled win32 exception occurred in crystalras.exe [12748]
    I also get the same SvcMgr Window that says..."The service did not respond to the start or control request in a timely fashion"
    Thanks all
    Paul

    Hello Paul,
    I recommend to post this question to [the dedicated BusinessObjects Enterprise Administration forum|BI Platform;.
    That forum is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Thanks
    Falk

  • Crystal Reports error - The Report Application Server failed

    Hi,
    I am getting the following error on XP Professional system. These reports were built earlier by one of my collegue and am trying to use the app but i stuck up getting the below error. The report gets failed
    repPath=Server.MapPath ("./Reports/Umbrellas.rpt");
    crReportDocument.Load(repPath); //Fails here
    crReportDocument=SetLogonForReport(crReportDocument);
    crReportDocument.SetParameterValue ("fromDate",DateTime.Parse (fromdt) );
    crReportDocument.SetParameterValue ("toDate", DateTime.Parse (todt) );
    I tried in design time attaching to Crystal Reports Viewer object , i get the same error. It looks like something related to Crystal Reports got corrupted in this system.
    Please find the stack trace for the error
    Stack Trace:
    [COMException (0x80004005): The Report Application Server failed]
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    [Exception: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       CrystalDecisions.ReportSource.NonHTTPCachedReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated)
       CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext)
       CrystalDecisions.Web.ReportAgent.  (Boolean  o)
       CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
       System.Web.UI.Control.PreRenderRecursiveInternal() +62
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Page.ProcessRequestMain() +1488
    Environment:
    .NET v1.1.4322
    Crystal Reports 10.0.0.533
    OS: Windows XP Professional - Ver 2002  Severice Pack 2
    I tried some of the solutions provided  by searching web,  it does not work. Please help!!!
    Appreciate your help on this.
    Edited by: KMallik2000 on Jul 15, 2009 4:39 PM

    Hi,
    I am trying to replicate the same issue on new desktop which has crystal reports 9.1 & 10 installed. I still see crystal reports 9.1 controls when i open VS.net. when i compare both desktop installed softwares, i found that the other desktop has "Crystal Reports 10 .NET runtime installed" which is not there on the new desktop. please advise whether i need to install this software to get ver 10 components installed? Appreciate your help on this. can you also advise the software download location for 10 .net run time installation?
    In other words, though crystal reports 10 got installed on this desktop but it is not getting referenced in VS.NET. I am seeing only 9.1 version assemblies are being used. hence my solution is not getting compiled in this desktop. Please advise how to get the version 10 assemblies referenced in the solution
    Edited by: KMallik2000 on Jul 20, 2009 4:46 PM

  • Crystal Reports 2013 Failed to find an Available Report Application Server.

    Hi Experts,
    I am unable to Publish Crystal Reports 2013 to the BI 4.1 SP2 Enterprise.
    I have installed SAP CR 2013 on my Laptop and also on our Citrix machine, from both systems I am getting the following error when try to publish:
    Failed to find an Available Report Application Server.
    All the ports and firewall are open, when doing some trace with Wireshark, its assigning some random ports starting with 64960.
    On the same machine, i have installed Crystal Reports 2008, I could publish reports to Enterprise.
    Could you please let me know what might be the issue.
    Is Crystal Reports 2013 need any specific port to be assigned?
    Thanks,
    Kris

    Hello Experts,
    In addition to assiging the ports for below servers,
         Crystal 2013 Report Application Server
         Crystal Processing Server
         Input File Repository Server
         Outout File Repository Server
    I have configured the following setting also:  Add Service Account that the
    CMS runs under to the server's local admin group.
    Still I am getitng the following error when trying  to save the report to Enterprise:
    "  Failed to find an Available Report Application Server  "
    Please advise .
    Thanks,
    Kris

  • Problem when deploying Crystal Report application on weblogic 10.3

    I created a Crystal Report application, using Eclipse ,
    but when i tried to run the correspondant EAR on Weblogic 10.3
    i encountered this exception , i guess it is a missing JAR but i didn't know which one :
    Error 500--Internal Server Error
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not initialize class org.apache.commons.configuration.ConfigurationUtils---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:54)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.(SourceFile:703)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:662)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:632)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.if(SourceFile:504)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(SourceFile:669)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(SourceFile:77)
         at com.businessobjects.report.web.b.a.ac(SourceFile:681)
         at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(SourceFile:182)
         at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(SourceFile:100)
         at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(SourceFile:76)
         at jsp_servlet.__crystalreport1_45_viewer._jsp__tag0(__crystalreport1_45_viewer.java:129)
         at jsp_servlet.__crystalreport1_45_viewer._jspService(__crystalreport1_45_viewer.java:75)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.configuration.ConfigurationUtils
         at org.apache.commons.configuration.AbstractFileConfiguration.setURL(AbstractFileConfiguration.java:642)
         at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.setURL(AbstractHierarchicalFileConfiguration.java:222)
         at org.apache.commons.configuration.XMLConfiguration.(XMLConfiguration.java:171)
         at com.crystaldecisions.reports.common.engine.config.apache.CrystalConfigurationImpl.pushXmlConfiguration(Unknown Source)
         at com.crystaldecisions.reports.common.engine.config.MultiThreadedConfig.pushXmlConfiguration(Unknown Source)
         at com.crystaldecisions.reports.common.engine.Engine.configure(Unknown Source)
         at com.crystaldecisions.reports.common.engine.Engine.getConfigurationManager(Unknown Source)
         at com.businessobjects.reports.sdk.a.a(SourceFile:68)
         at com.businessobjects.reports.sdk.a.do(SourceFile:106)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.n(SourceFile:2687)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.i(SourceFile:2807)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.connect(SourceFile:296)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.(SourceFile:216)
         at com.businessobjects.sdk.erom.jrc.a.(SourceFile:43)
         at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:46)
         ... 27 more
    ***************************************************************

    Hi ,
    I succesfully added the jar to the classpath but i got the same error ( the first one),
    i wonder if it is a problem due to the connection with the remote database because of those 3 lines :
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.configuration.ConfigurationUtils
         at org.apache.commons.configuration.AbstractFileConfiguration.setURL(AbstractFileConfiguration.java:642)
         at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.setURL(AbstractHierarchicalFileConfiguration.java:222)
         at org.apache.commons.configuration.XMLConfiguration.(XMLConfiguration.java:171)
    here is the full log :
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [weblogic.servlet.internal.WebAppServletContext@1aee513 - appName: 'FinalEAREssai', name: 'EssaiEarCR', context-path: '/EssaiEarCR', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@1302951[ GET /EssaiEarCR/CrystalReport1-viewer.jsp HTTP/1.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: fr Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: ADMINCONSOLESESSION=MG10Kq5JT9LkDTXqKJMGRJQBJbKZ1ryfT4g5TJGGpltbST3Gjphq!40961007; JSESSIONID=Q2x0Kq6Lv5QT082psRwrmRpfNfnqPDRdF8tsMg9Czb5vQTPh9ZKH!40961007 ]] Root cause of ServletException. com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not initialize class org.apache.commons.configuration.ConfigurationUtils---- Error code:-2147467259 Error code name:failed at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:54) at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.<init>(SourceFile:703) at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:662) at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:632) at com.crystaldecisions.sdk.occa.report.application.ClientDocument.if(SourceFile:504) at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(SourceFile:669) at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(SourceFile:77) at com.businessobjects.report.web.b.a.ac(SourceFile:681) at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(SourceFile:182) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(SourceFile:100) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(SourceFile:76) at jsp_servlet.__crystalreport1_45_viewer._jsp__tag0(__crystalreport1_45_viewer.java:129) at jsp_servlet.__crystalreport1_45_viewer._jspService(__crystalreport1_45_viewer.java:75) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.configuration.ConfigurationUtils at org.apache.commons.configuration.AbstractFileConfiguration.setURL(AbstractFileConfiguration.java:642) at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.setURL(AbstractHierarchicalFileConfiguration.java:222) at org.apache.commons.configuration.XMLConfiguration.<init>(XMLConfiguration.java:171) at com.crystaldecisions.reports.common.engine.config.apache.CrystalConfigurationImpl.pushXmlConfiguration(Unknown Source) at com.crystaldecisions.reports.common.engine.config.MultiThreadedConfig.pushXmlConfiguration(Unknown Source) at com.crystaldecisions.reports.common.engine.Engine.configure(Unknown Source) at com.crystaldecisions.reports.common.engine.Engine.getConfigurationManager(Unknown Source) at com.businessobjects.reports.sdk.a.a(SourceFile:68) at com.businessobjects.reports.sdk.a.do(SourceFile:106) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.n(SourceFile:2687) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.i(SourceFile:2807) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.connect(SourceFile:296) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:216) at com.businessobjects.sdk.erom.jrc.a.<init>(SourceFile:43) at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:46) at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.<init>(SourceFile:703) at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:662) at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:632) at com.crystaldecisions.sdk.occa.report.application.ClientDocument.if(SourceFile:504) at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(SourceFile:669) at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(SourceFile:77) at com.businessobjects.report.web.b.a.ac(SourceFile:681) at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(SourceFile:182) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(SourceFile:100) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(SourceFile:76) at jsp_servlet.__crystalreport1_45_viewer._jsp__tag0(__crystalreport1_45_viewer.java:129) at jsp_servlet.__crystalreport1_45_viewer._jspService(__crystalreport1_45_viewer.java:75) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    thanks Vijay for you help

  • Load Report Failed - Report Application Server Failed error at runtime

    Hello, I'm pretty new to Crystal Reports so please bear with me.
    I just installed CR 2008 on my development box, which is running VS2005 .NET 2.0.  I changed over all of my assembly references in my web.config to the new version:
    <add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral,
    PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    Also the webpage that is displaying the ReportViewer object has this reference as well:
    <%@ Register Assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    Now, in my code behind I am simply trying to open a pre-built crystal report that came in the sample pack
    When I try and do this in our already built website I get an error:
    "Load report failed"
    With the inner exception saying:
    "The Report Application Server failed"
    This same piece of code works perfectly if I build a new website, however when I try and impliment this into our existing code base I get the error shown above.  Also the samples I've used all use .NET 3.5 and the website is in 2.0.  I'm not sure if that is a factor or not but that is also another piece of information that could be useful.
    Any help on this matter would be greatly appreciated.  Thank you for you're time.
    Chris McMahan
    Edited by: Arithal on Aug 4, 2009 8:36 PM

    And finally the stack trace.  Sorry for the length of these posts.
    [COMException (0x800001f5): The Report Application Server failed]
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +126
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +575
    [CrystalReportsException: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +646
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1374
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +169
       Report_Viewer_Crystal_CrystalView.ConfigureCrystalReports() in c:\Inetpub\wwwroot\Report Viewer\Crystal\CrystalView.aspx.cs:49
       Report_Viewer_Crystal_CrystalView.Page_Init(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Report Viewer\Crystal\CrystalView.aspx.cs:33
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
       System.Web.UI.Control.OnInit(EventArgs e) +99
       System.Web.UI.Page.OnInit(EventArgs e) +9
       System.Web.UI.Control.InitRecursive(Control namingContainer) +321
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834

  • Getting "The Report Application Server failed" when trying to view a report

    I'm getting an error pop up:
    Crystal Report Windows Forms Viewer
    The Report Application Server failed
    OK  
    When trying to display a report using the Crystal Reports viewer (as shipped with VS2008)
    The stack trace implies it's having problems rendering the first page of the report:
         System.Windows.Forms.dll!System.Windows.Forms.MessageBox.ShowCore(System.Windows.Forms.IWin32Window owner = null, string text, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Windows.Forms.MessageBoxDefaultButton defaultButton, System.Windows.Forms.MessageBoxOptions options, bool showHelp) + 0x220 bytes     
         System.Windows.Forms.dll!System.Windows.Forms.MessageBox.Show(string text, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon) + 0x18 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.MainReportDocument.GetPage(CrystalDecisions.Shared.PageRequestContext context = {CrystalDecisions.Shared.PageRequestContext}) + 0x6a9 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.ReportDocumentBase.GetPage(int pageN = 1) + 0x1a3 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.DocumentControl.ShowNthPage(int PageNumber = 1) + 0x79 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.DocumentControl.ShowFirstPage() + 0x48 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.PageView.ShowFirstPageEx() + 0x1ec bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowReport() + 0xea bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.CrystalReportViewer.OnPaint(System.Windows.Forms.PaintEventArgs evtArgs = {ClipRectangle = {System.Drawing.Rectangle}}) + 0x182 bytes     
         System.Windows.Forms.dll!System.Windows.Forms.Control.PaintTransparentBackground(System.Windows.Forms.PaintEventArgs e, System.Drawing.Rectangle rectangle, System.Drawing.Region transparentRegion = {System.Drawing.Region}) + 0x16c bytes     
    Any ideas how to fix this?

    There is a good process for getting bugs fixed. However, you will have to provide a reliable way of reproducing the issue. E.g.; I can not go to R&D and ask that they fix a bug with a report that sometimes works and sometimes does not work.
    I suspect the best way to approach this, will be to actually see the report and try to determine what part of the report may be the issue. To be able to share the report, you will have to create a phone case here:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    and discuss this at length with a support engineer.
    Ludek

  • Custom tool error for COMexception: The report application server failed.

    hi there,
    i am using crystal reports for the last one year onwards, i don't get any errors till know. Yesterday when i modified some information in 40 reports. out of these reports 34 reports are successfully build, but for the remaining six reports the code is not generating.
    Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The Report Application Server failed
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath, String resourceNamespace)
       at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"
    i am not understanding why it is getting for me, Please help me

    Hello,
    Whoever wrote the CustomCodeGenerator will have to help you with this one. We know nothing about the underlying code they are using and therefore can't determine the cause.
    Appears the error is it can't even load the report so there is something wrong with the workings. Open the report again in CR Designer and Verify Database and then check the changes you did. Something is not right or the DB driver their application is using does not match with what you are using.
    Don

  • 500 - Internal server error hosting Crystal Reports XI Server on IIS 7

    Hi. I have just moved a to IIS 7 running in 32 bit mode and despite a few stumbling blocks along the way, it is now up and running. The Crystal report documents output as .pdf format in their own frame with no problems but when I try and output the same reports in html 4.0 format, I get the following error: CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Invalid export options. Has anyone got any ideas what might be causing this? Any help would be appreciated.
    Edited by: foxdeveloper2000 on Dec 10, 2009 6:17 P M

    Hi Ludek, I tried the Process Monitor and it doesn't throw up anything obvious as is causing this, neither do the logs. I tried installing Crysyal X1 designer on the server and when I try html preview I get the following message:
    HTML Preview Configuration Required
    HTML Preview will be enabled when:
    You are logged on to Business Objects Enterprise. You can log on  using the Repository Explorer
    You have entered location of a Report Application Server. You can enter the Report Application Server Location on the Files->Options Dialog, Smart tag and html Preview tab.
    Please can someone explain what this means and how I do can get my reports to output in html format.
    Many thanks in advance

  • Getting error: Report Application Server failed

    I started posting my problem in thread below and have been advised to continue in this forum
    Reference thread: The Report Application Server failed
    My problem occurs in a asp application (vb 2005) and also when I run the Crystal Report stand alone (xi rel 2).
    The asp application does not render any other messages than "report Application Server Failed" but running the CR stand alone I get  "error formatting cross tab object". Whenver I get this message and if I switch page setting (either from landscape to portrait or portrait to landscope) it work for the report in question.
    I have now advanced a little further in trying to solve the issue or at least find what is wrong. I have created a .net windows application where I export the CR to disk
    Dim DiskOpts As CrystalDecisions.Shared.DiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions
    myCrystalReport1.ExportOptions.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
    myCrystalReport1.ExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
    DiskOpts.DiskFileName = ReportPath & ReportName
    myCrystalReport1.ExportOptions.DestinationOptions = DiskOpts
    myCrystalReport1.Export()
    I get the same problems, some reports will not let me export and I am getting error:
    CrystalDecisions.CrystalReports.Engine.InternalException: The Report Application Server failed ---> System.Runtime.InteropServices.COMException (0x800003E5): The Report Application Server failed
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
    My default page set up is landscape and  if I now reverse the page set up like: myCrystalReport1.PrintOptions.PaperOrientation = PaperOrientation.Portrait it will let me export.
    My windows application exports hundreds of reports in a single run and by toggling between landscape and portrait I manage to get it working when I get an export error (like above).
    Was hoping that anyone couldm point me in a good direction, I've been fighting this problems for many days now and I do not have a solution as to why this is happening. Thank you.

    Hi, 
    The cross-tab reports that are causing this error, do they have any formatting formulas on any of the objects? 
    Are your using any running totals or setting the Evaluation Time using WhilePrintingRecords? 
    I've run into this problem with crosstabs when I created a Display String formula using Running Totals. 
    The report cannot render the report because the running total is conflicting with the results of the crosstab. 
    When you right-click an object and go to Format Field.  In the Common tab if the Display String has a formula set, remove or comment it out.  Do this for all the objects and try running the report again. 
    Good luck,
    Brian

  • An Enterprise Report Application Server was not found after Deployment

    Post Author: dgindy
    CA Forum: General
    Thanks:
      So I upgrade our internal reports server to Enterprise XI, and adjusted out .Net web application to make.  However, I still get the error listed above.  We have a report application server running and can not find any document online about this problem.  Any ideas?
    Thanks
    D

    Hi Fade,
    Ah, the SDK for CR for VS is not what you want. What you need to do is log into Service Market Place and go to the appropriate download section. The SDK is NOT installed as in previous versions with Crystal Reports Designer, it's a separate download now.
    I assume you are also using CRSE 2013 then so you get the SDK from SMP:
    Then in the list you'll see .NET installer for SP 1 or SP 2, you must use the same patch level as the Server:
    If you don't see this option then please contact your account manager to give you access to SMP and the download section.
    If you are not set up you will not be able to see the above.
    Thanks
    Don

  • Report Application Server won't start. CCM always says Starting....

    I am complete newbie to doing admin for Crystal Servers, forgive the question:
    (Win Server 2003 r 2 / CR XI)
    Report Application Server won't start which is preventing other servers from starting in CCM.
    Reboot machine several times and still having the issue.
    Get an error msg in Windows before login window appears stating that the crystalras.exe application requested a runtime to terminiate in an unusual way (.Net error).
    I get the following error msg in my event viewer.
    From Event Viewer:
    Event Type: Error
    Event Source: BusinessObjects_crystalras
    Event Category: Startup
    Event ID: 33000
    Date: 7/27/2010
    Time: 4:24:34 PM
    User: N/A
    Computer: CRYSTAL
    Description:
    Failed to start the Report Application Server.
    From Logging:
    Timestamp ProcessID ThreadID Message
    Tue Jul 27 20:24:34 2010 2496 3176 assert failure: (.\sso_wrapper.cpp:94). (SFileSys::exists(ssPath) && SFileSys::isDir(ssPath) : Platform binaries directory not valid.).
    We installed some Windows Server Updates about 3 months ago (at the time, over 70 Windows updates were installed) but, this problem hasn't shown up until 2 or 3 weeks ago. I think a .Net Service Pack might have been part of the updates at that time. When we did the updates, Windows was shutdown and updates installed per the preferred option of Windows. But now when rebooting since that time, the server continually reccomends the install updates and shutdown option. Do we need to rollback the server to date prior those updates if possible?
    I have also uninstalled .Net Framework back to 2.0. Is 1.0 or 1.1 the max that will work with XI?
    Should I also try to uninstall all other Windows updates?
    Thanks in advance for any help, Ed

    Post this query to the [Business Objects Enterprise Administration|BI Platform; forum.

  • What causes The Report Application Server failed exception?

    My environment:
    Windows Server 2008 R2  8 cores 6 gig of ram.
    A Windows Service running:
    Oracle 11g
    Oracle 11.2 64 bit client
    C# 4.0 Framwork
    Crystal Reports Visual Studio 2010 13.0.2000
    This window service needs to create 1100 pdf documents generated by crystal reports per hour for a minimum of 8 hours straight.
    These pdf files are written on the local file system.
    The Windows Service runs 3 threads per core.  Each thread can run up to 5 individual CR .rpt files in a sequential order.
    After 4000 pdf documents created, I get the following errors.
    1) The Report Application Server failed
    2) Server is out of memory.
    3)  Not enough memory for operation.
    4) Invalid report file path.
    Using Windows Task Manager Resource Monitor I noticed the following:
    After running 3000 pdf report requests, I stopped the processing pdf reports and noticed hundreds of
    \BaseNamedObjects\CrystalReportXalanInitizeMutex(Pid of my process)
    Why are they there after a close and dispose of the ReportDocument object?
    I ran Reggate ANTS Memory Profiler 7.2 to check for memory leaks in my code and my code that I have control over is clean.
    Why am I getting the exceptions above?
    My code calls ExportReportToSream.  After persisting the stream to disk, I call Close and Dispose on the stream.
    My Code
    ==========================================================================================        public MemoryStream ExportReportToStream(String reportName, LogOnInfo logOnInfo, string reportParams, CrystalExportFormatType formatType)
                ReportDocument reportDoc = new ReportDocument();
                if (!System.IO.File.Exists(reportName))
                    throw new InvalidArgumentException("reportName '" + reportName + "' does not exist", EngineExceptionErrorID.InvalidArgument);
                try
                    lock (lockThis)
                        reportDoc.Load(reportName, OpenReportMethod.OpenReportByTempCopy);
                    ApplyLogOnInfo(reportDoc, logOnInfo);
                    //apply params if any
                    if (!String.IsNullOrEmpty(reportParams))
                        ApplyStringParams(reportDoc, reportParams);
                    return (MemoryStream)reportDoc.ExportToStream((ExportFormatType)formatType);
                //we need to use the try catch, finally so the report can be disposed properly
                catch (Exception)
                    throw;
                finally
                    DistroyReportDocument(reportDoc);
                    reportDoc = null;
            private void ApplyStringParams(ReportDocument reportDoc, string reportParams)
                if (reportDoc == null)
                    return;
                if (String.IsNullOrEmpty(reportParams))
                    return;
                string[] paramsArray = reportParams.Split('|');
                string[] subParamsArray = null;
                //apply report params
                ParameterValueKind type;
                string paramValue = string.Empty;
                ParameterField paramField = null;
                ParameterDiscreteValue discreteValue;
                int x = 0;
                int paramCount = 0;
                for (x = 0; x < reportDoc.ParameterFields.Count; x++)
                    // The ParameterFields object contains all parameters including the subreports.
                    // Subreport params have the name of the subreport.
                    if (reportDoc.Name.Trim().ToUpper() == reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
                        paramCount++;
    Edited by: Ludek Uher on Dec 15, 2011 7:57 AM
    Edited by: Ludek Uher on Dec 15, 2011 7:58 AM

    if (paramsArray.Length < paramCount)
                    throw new InvalidArgumentException("invalid number of arguments passed to report '" + reportDoc.Name + "' expected " + reportDoc.ParameterFields.Count + " received " + paramsArray.Length, EngineExceptionErrorID.InvalidArgument);
                for (x = 0; x < reportDoc.ParameterFields.Count; x++)
                    if (reportDoc.Name.Trim().ToUpper() != reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
                        continue;
                    paramValue = paramsArray[x];
                    paramField = reportDoc.ParameterFields[x];
                    type = paramField.ParameterValueType;
                    if (paramField.EnableAllowMultipleValue && paramValue.IndexOf(',') > -1)
                        subParamsArray = paramValue.Split(',');
                        ParameterValues currentParameterValues = new ParameterValues();
                        foreach (string subParamValue in subParamsArray)
                            discreteValue = new ParameterDiscreteValue();
                            discreteValue.Value = subParamValue;
                            currentParameterValues.Add(discreteValue);
                        paramField.CurrentValues = currentParameterValues;
                    else
                        discreteValue = new ParameterDiscreteValue();
                        discreteValue.Value = paramValue;
                        paramField.CurrentValues.Add(discreteValue);
            private bool ApplyLogOnInfo(ReportDocument document, LogOnInfo logOnInfo)
                TableLogOnInfo info = null;
                // Define credentials
                info = new TableLogOnInfo();
                info.ConnectionInfo.AllowCustomConnection = true;
                info.ConnectionInfo.ServerName = logOnInfo.ServerName;
                info.ConnectionInfo.DatabaseName = logOnInfo.DatabaseName;
                // Set the userid/password for the report if we are not using integrated security
                if (logOnInfo.IntegratedSecurity)
                    info.ConnectionInfo.IntegratedSecurity = true;
                else
                    info.ConnectionInfo.Password = logOnInfo.Password;
                    info.ConnectionInfo.UserID = logOnInfo.UserID;
      // Main connection?
                document.SetDatabaseLogon(info.ConnectionInfo.UserID,
                                            info.ConnectionInfo.Password,
                                            info.ConnectionInfo.ServerName,
                                            info.ConnectionInfo.DatabaseName,
                                            true);
                // Other connections?
                foreach (CrystalDecisions.Shared.IConnectionInfo connection in document.DataSourceConnections)
                    connection.SetConnection(logOnInfo.ServerName, logOnInfo.DatabaseName, logOnInfo.IntegratedSecurity);
                    connection.SetLogon(logOnInfo.UserID, logOnInfo.Password);
                    connection.LogonProperties.Set("Data Source", logOnInfo.ServerName);
                    connection.LogonProperties.Set("Initial Catalog", logOnInfo.DatabaseName);
                // Only do this to the main report (can't do it to sub reports)
                if (!document.IsSubreport)
                    // Apply to subreports
                    foreach (ReportDocument rd in document.Subreports)
                        ApplyLogOnInfo(rd, logOnInfo);
                // Apply to tables
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in document.Database.Tables)
                    TableLogOnInfo tableLogOnInfo = table.LogOnInfo;
                    tableLogOnInfo.ConnectionInfo = info.ConnectionInfo;
                    table.ApplyLogOnInfo(tableLogOnInfo);
                    if (!table.TestConnectivity())
                        string strMsg = "ApplyLoginInfo failed to apply log in info for table " + table.Name + ",  Crystal Report: " + document.FileName + " DB: " + logOnInfo.DatabaseName + " UserID: " + logOnInfo.UserID;
                        throw new InvalidOperationException(strMsg);
                //verify logon info
                document.VerifyDatabase();
                return true;
            private void DistroyReportDocument(ReportDocument document)
                if (document == null)
                    return;
                 document.Close();
    Edited by: Ludek Uher on Dec 15, 2011 7:59 AM

Maybe you are looking for