Standalone JRC - RAS serverNotFound
Hi,
I'm trying to setup an application using JRC in stanalone mode. Evreything seems ok but when I run my program I get the following error:
com.crystaldecisions12.sdk.occa.report.lib.ReportSDKServerException: Aucun nom de serveur n'est précisé.---- Error code:-2147217390 Error code name:serverNotFound
I think I'm missing something with libraries I use but I can't figure out what the problem is.
I took all the libs out of the plugin of Crystal reports for eclipse 2008
Here is the list :
com.azalea.ufl.barcode.1.0.jar
commons-collections-3.1.jar
commons-configuration-1.2.jar
commons-lang-2.1.jar
commons-logging.jar
CrystalCommon2.jar
CrystalReportsRuntime.jar
cvom.jar
jai_imageio.jar
JDBInterface.jar
keycodeDecoder.jar
log4j.jar
logging.jar
pfjgraphics.jar
xpp3.jar
Thanks for help.
I need to write a java class that prints out a report ( directly to printer or/and p to a pdf file) with greek characters .
This class will be called from a swing program. For doing this I want to use JRC in standalone mode ( no RAS).
I get the following exception when openning the report:
com.crystaldecisions12.sdk.occa.report.lib.ReportSDKServerException: Aucun nom de serveur n'est précisé.---- Error code:-2147217390 Error code name:serverNotFound at com.crystaldecisions12.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
at com.crystaldecisions12.sdk.occa.report.application.ReportAppSession.if(Unknown Source)
at com.crystaldecisions12.sdk.occa.report.application.ReportAppSession.int(Unknown Source)
at com.crystaldecisions12.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source)
at com.crystaldecisions12.sdk.occa.report.application.ClientDocument.bQ(Unknown Source)
at com.crystaldecisions12.sdk.occa.report.application.ReportClientDocument.bQ(Unknown Source)
at com.crystaldecisions12.sdk.occa.report.application.ClientDocument.open(Unknown Source)
at test.JrcV12Test.main(JrcV12Test.java:48)
here is the piece of code generating the exception
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(REPORT_NAME, 0);
My code works perfectly well with Jrc V11 but in V11 the pdf file does not embed the greek fonts ... this feature is supposed to be integrated in V12.
But In V12 I get the previously explained error.
Similar Messages
-
Is it OK to open a CR Report with JRC/Gemini which is modified by RAS SDK?
Dear all
Is it OK to open a CR Report with JRC/Gemini which is modified by RAS SDK? Especially after I use RAS SDK to change report database location.
I test it OK, but my Customer need to confirm this.
Thanks a lot.
DavidRAS SDK - meaning RAS server?
There's intrinsic limitations for Crystal Reports Java (JRC for CR4E Version 2), such as database connectivity (only Java-based ones) when compared to RAS server.
But CRJ does support Crystal Reports 2008 reports within those limitations.
By the way, the new CR4E Version 2 Crystal Reports Java SDK is essentially the in-process RAS SDK - so you can make modifications using that. Note that JRC SDK (version 11.8 and below) are deprecated with CR4E Version 2), then new way si the the Crystal Reports Java SDK.
Sincerely,
Ted Ueda -
How to run a standalone java program with JRC to display/run a report
Hi All,
I am new to this forum.
I am trying to run a java program developed using JRC to run a report created using Crystal Report XI. I stucked because not knowing how to run that java program.
Can anyone help me? or
can give a simple java code to do the same.
Thanks in advance.
Saravanakumar.Hi Saravana
For the steps to run a standalone application java program with JRC to display/run a report ,please refer the following link.
http://support.businessobjects.com/communityCS/TechnicalPapers/cr_xi_r2_jrc_deployment.pdf.asp
You can get the sample code for standalone/desktop applications from the following link.
http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_desktop_samples.zip.asp
Please do revert in case of any queries.
Thanks
Soni -
If we are migrating from JRC to CR Java SDK, do we need RAS or any server
Current situation
e already have lots of clients running our product. We are using JRC to show the reports. Reports are designed in Crystal Reports Designer and hosted in the J2EE application servers. No modification/updating of these reports are needed from the client side. No need to create either full or part of the reports on the fly.
Only thing we do on the report other than just calling the viewerSDK to view, is: we read the parameters from the (designed/hosted) report to do parameter prompting in our own custom JSP. We went to create our own JSP to prompt for report parameters, because, using JRC SDK, for some reason we were unable to get dynamic (drop-down) parameter showing the list of values. These dynamic parameters are list of values, user choose one. So these parameters are linked to a command with simple SQL like (select col1, col2 from table1).
Current API ???
I think we have this free JRC SDK. We have a directory called crystalreportviewers115 in our product deployment plus some JARS like (CrystalReportEngine.jar, CrystalCommon.jar, CrystalCharting.jar, CrystalExporters.jar, CrystalExportingBase.jar, CrystalDatabaseConnectors.jar, CrystalFormulas.jar, CrystalQueryEngine.jar, CrystalReportingCommon.jar, rasapp.jar, rascore.jar, ReportViewer.jar, etc) in our appserver j2ee classpath.
Now there are two choices:
1. Let crystal report viewer handle itself the parameter prompting; Then, I do not know if it is possible with this free JRC SDK or anything else that is open source. If it is possible with some upgrading can you please let me know some tips to goahead.
2. Finding a way to read the parameter details like the SQL command, etc, so that we can show it in our JSP. I do not know if we still need to upgrade to a different version of SDK.
I tried looking for a different or newer SDKs... It is confusing with things CR for Eclipse, CR Java SDK, etc. Do not know which direction to go!!!
Can someone guide me please.CR Java SDK consists of JRC + Veiwers Java SDK.
CR Eclipse 2.0 is latest IDE in which CR 2008 features are integrated.
There are different set of JRCs for different versions of Crystal Reports. But for CR 2008 there is no separate JRC has been launched yet, instead CR4E 2.0 Java SDK has been launched which is free.
For more details about CR4E 2.0 please check out this link
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f635e1-d0c4-2b10-559d-802a95c0d456
Thanks,
Tej -
Access metadata information of a report using JRC only (not using RAS)
Hi all
Please let me know if there is a way to retrieve information such as
all the database fields on that report (also their datatype- something similar to export report definition)
parameter values
subreports
Thanks in advance
GaneshHi Abdul,
From the document, we know that CONSTRAINED flag is used to reduce the risk of injection attacks via the specified string. If a string is provided that is not directly resolvable to qualified
or unqualified member names, the following error appears: "The restrictions imposed by the CONSTRAINED flag in the STRTOSET function were violated."
So you need to make sure the members are passed properly to the STRTOSET function. For more details, please see the following links:
http://ch1n2.wordpress.com/2010/02/21/the-restrictions-imposed-by-the-constrained-flag-in-the-strtoset-function-were-violated/
http://www.bp-msbi.com/2010/04/passing-unconstrained-set-and-member-parameters-between-reports-in-reporting-services/
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
J2EE, RAS, JRC, and everything to do with Crystal Report XI
Hello,
We are actually trying to make the JAR files provided with Crystal Reports XI Developper Edition.
The goal is to be able to generate a .rpt file based on some RAW data that we will collect from our iSeries Server, therefore giving the .rpt equivalent of the text-only report created with our application on i5/OS.
For the moment we don't care about interfacing the data from the text-only proto-report on the iSeries, we just care about modelling the instance of an .rpt file in Java.
The trouble is that we manage to create the object with ReportClientDocument newDoc = new ReportClientDocument(), but then the newDoc instance of this object is not accessible (the method .isOpen() returns false).
We also tried to open an existing .rpt file with the same methods to no success.
If anyone has any idea, or lead that could allow us to work our way through this wretched APIs, I would be very grateful.I'm not referring to Servlet threading issues.
I'll clarify.
You have two threads, both entering ReportClientDocument.open(...) method.
Thread 4 is waiting to acquire 'com.crystaldecisions.reports.queryengine.av@15214b9'
Thread 0 is waiting to acquire ''com.crystaldecisions.reports.queryengine.av@12e0415'
So I'm thinking ??? are they the same objects?
My specific question concerning the ReportClientDocument is that both are calling open - i.e., trying to open a new report. You wouldn't be trying to open different reports using the same ReportClientDocument - so was wondering if you've cached the RCD and trying to open two different reports at the same time on the same instance via different threads.
You'd normally tie a ReportClientDocument instance to a HTTP Session, to ensure each user gets their own copy.
Sincerely,
Ted Ueda -
JRC Export to Text like Crystal Report Designer Export
We need to Export report to Text like Crystal Report Designer Export using JRC. Is this possible? I see export ReportExportFormat CSV, PDF and RTF only. These exports are working, But I need plain text that looks like Text export of Crystal Reports Designer. I see this working in RAS 2008. What I can do to get this with JRC. I am using Crystal Reports 2008 to design reports.
Thanks for any help.
Regards
Raveendra
ClarificationThank you Jitin.
What could be solution to this problem?
If still I want to go with JRC, Can I write some Java code to perform this export?
I see TextExportFormatOptions and its not working.
If I want to export automatically to text format, what other choices are there?
Basically I need to execute report and generate text file automatically. Text file should look like Crystal Report Designer Exported Text file.
Thank you for your time.
Regards,
Raveendra -
Unable to modify Report using JRC alone
Hi
I am trying to modify the report generated thru Crystal reports 2008 programmatically using JRC.
I dont see any API in com.crystaldecisions.reports.sdk.DataDefController to modify filters,groups,parameters,sort objects and summaries.
I could find Controller API to modify the above in com.crystaldecisions.sdk.occa.report.application package part of RAS SDK which requires RAS to be installed.
WIll it be possible to modify report using JRC alone?
because when i use com.crystaldecisions.sdk.occa.report.application.ReportClientDocument class to open a report, it thorws
ReportSDKServerException: There is no server specified exception.
and i am not sure what need to set for ReportClientDocument.setReportAppServer()
Pls help me .Hi,
Thanks for your help.
I am getting the below exception when I am trying to open a report programmatically using com.crystaldecisions.reports.sdk.ReportClientDocument.
oReportClientDocument.open(reportName, 0);
I am not sure how to resolve this issue.
I have even created a new rpt file. I am getting the same exception/
I could open this report directly thru Crystal Reports.
12/16/10 16:19:57:376 IST] 10c3f2a6 WebGroup E SRVE0026E: [Servlet Error]-[The document is being opened.]: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: The document is being opened.---- Error code:-2147215349 Error code name:docNotReady
Error code:-2147215349 Error code name:docNotReady
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
at com.crystaldecisions.client.helper.ObjectState.a(Unknown Source)
at com.crystaldecisions.client.helper.ObjectState.if(Unknown Source)
at com.crystaldecisions.client.helper.ObjectState.stopping(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.close(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.close(Unknown Source)
at com.crystaldecisions.reports.sdk.ReportClientDocument.close(Unknown Source)
at org.apache.jsp._CrystalReportViewer._jspService(_CrystalReportViewer.java:389)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:662)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(
Pls help me.
Edited by: D.Sangeetha on Dec 16, 2010 12:33 PM -
Subreport linking problem after upgrading to JRC 2.0
Here's a little background of my environment before I get to the problem. We have a suite of reports that were developed with CR4E ~v1.04 in Eclipse 3.3.1. I only used the plugin for setting up the pojo data sources and then did the report development in the standalone Crystal Reports Designer XI, and would then import the report back into Eclipse.
This week I installed the new 2.0 runtime jars and also update the eclipse plugin to version 1.07(we aren't in Eclipse 3.4 yet). We have a few reports with multiple subreports for things such as agent totals, weekly totals etc. A report layout might look like this.
Agent 1
Day1 info
Day2 info
Day3 info
Agent 1 Total (this would be a subreport)
Agent 2
Day1 info
Day2 info
Day3 info
Agent 2 Total (this would be a subreport)
After the upgrade, when a report is generated, the subreports only work the first time they appear in the report. So in the above example, 'Agent 1 Total' would be normal, but 'Agent 2 Total' would have no data. Any non data related formatting will show up, so the subreport is there, it's just not able to get the right data from the subreport links. I have verified the data is there both by debugging the services(which haven't changed) and removing the subreport links, thus having all the data show up for each subreport. The fields that are used to link from the main report to the subreport have the correct value at the time the subreport is used. I have tried both regular pojo fields and formulas fields to link the subreports, and the problem happens either way. Please advise.
Thanks,
CameronSimilar problem from old version to new version(there isn't change in the changeDataSource method..): same report with 1 subreport in old version work well but with new version there is that error:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: InternalFormatterException---- Error code:-2147217394 Error code name:missingParameterValueError
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at report.CRJ12.main
i've use log4j to have better information about the error (that is the first part of the log)
ERROR [main] (?:?) - Failed to load the resource 'InternalFormatterException' from the bundle java.util.PropertyResourceBundle@1cbf6bb.
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key InternalFormatterException
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getString(Unknown Source)
at com.crystaldecisions.reports.common.CrystalResources.loadString(Unknown Source)
at com.crystaldecisions.reports.common.CrystalResources.loadMessage(Unknown Source)
at com.crystaldecisions.reports.common.CrystalResourcesFactory.getLocalizedMessage(Unknown Source)
at com.crystaldecisions.reports.common.CrystalException.getLocalizedMessage(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at report.CRJ12.main(CRJ12.java:442)
Edited by: Andrea Bonf on Feb 13, 2009 10:14 AM -
CR10 Dev JRC ReportSDKException Report location is not specified in the configuration file error
I'm trying to embed a simple report into a j2ee application running under BEA WebLogic(without
workshop)
using the standalone Java Reporting Component (JRC), but I'm getting the exception
shown below (along with my config and source).
I'm just wondering at the cause of the exception, because I can successfully deploy
this code to jboss.
I've tried moving the CrystalReportEngine-config.xml file everywhere, from the
/WEB-INF/classes/ folder
to the /WEB-INF/ folder to the /WEB-INF/lib/ folder.
I consulted the product documentation on the JRC and its tutorials but it has
me stumped.
I went through the BEA WebLogic Workshop tutorial, which worked for some reason,
but I'm looking to do all the coding manually without any of BEA's controls and
what not.
Any information would be GREATELY APPRECIATED!!!
Thanks,
-Colin
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Report location is
not specified in the configuration file---- Error code:-2147
215356 Error code name:fileNotOpened
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown
Source)
at com.crystaldecisions.report.web.viewer.ReportAgentBase.case(Unknown
Source)
at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(Unknown
Source)
at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(Unknown
Source)
at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown
Source)
at jsp_servlet.__viewreport._jspService(__viewreport.java:197)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
My EAR file structure is as follows:
/crystal/ (context)
/reports/qtrade_sp_listing.rpt
/crystalreportviewers10/ -- bunch of crystal viewing stuff
/WEB-INF/classes/CrystalReportEngine-config.xml
/WEB-INF/lib/ -- bunch of crystal jar files
My CrystalReportEngine-config.xml is as follows
<?xml version="1.0" encoding="utf-8"?>
<CrystalReportEngine-configuration>
<reportlocation>../..</reportlocation>
<timeout>10</timeout>
<keycode>A2960-01C00FA-U700063</keycode>
</CrystalReportEngine-configuration>
My relevant Web.xml looks like:
<web-app>
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>/crystal/crystalreportviewers10/</param-value>
</context-param>
<taglib>
<taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
<taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
</taglib>
</web-app>
My JSP Page Source:
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer"%>
<html>
<head>
<title>Web Application Page</title>
</head>
<body>
<crviewer:viewer
viewerName="SPListingReport"
reportSourceVar="_SPListingReport"
displayGroupTree="false"
displayToolbarToggleTreeButton="false"
reportSourceType="reportingComponent">
<crviewer:report reportName="reports/qtrade_sp_listing.rpt"></crviewer:report>
</crviewer:viewer>
</body>
</html>I'm trying to embed a simple report into a j2ee application running under BEA WebLogic(without
workshop)
using the standalone Java Reporting Component (JRC), but I'm getting the exception
shown below (along with my config and source).
I'm just wondering at the cause of the exception, because I can successfully deploy
this code to jboss.
I've tried moving the CrystalReportEngine-config.xml file everywhere, from the
/WEB-INF/classes/ folder
to the /WEB-INF/ folder to the /WEB-INF/lib/ folder.
I consulted the product documentation on the JRC and its tutorials but it has
me stumped.
I went through the BEA WebLogic Workshop tutorial, which worked for some reason,
but I'm looking to do all the coding manually without any of BEA's controls and
what not.
Any information would be GREATELY APPRECIATED!!!
Thanks,
-Colin
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Report location is
not specified in the configuration file---- Error code:-2147
215356 Error code name:fileNotOpened
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown
Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown
Source)
at com.crystaldecisions.report.web.viewer.ReportAgentBase.case(Unknown
Source)
at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(Unknown
Source)
at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(Unknown
Source)
at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown
Source)
at jsp_servlet.__viewreport._jspService(__viewreport.java:197)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
My EAR file structure is as follows:
/crystal/ (context)
/reports/qtrade_sp_listing.rpt
/crystalreportviewers10/ -- bunch of crystal viewing stuff
/WEB-INF/classes/CrystalReportEngine-config.xml
/WEB-INF/lib/ -- bunch of crystal jar files
My CrystalReportEngine-config.xml is as follows
<?xml version="1.0" encoding="utf-8"?>
<CrystalReportEngine-configuration>
<reportlocation>../..</reportlocation>
<timeout>10</timeout>
<keycode>A2960-01C00FA-U700063</keycode>
</CrystalReportEngine-configuration>
My relevant Web.xml looks like:
<web-app>
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>/crystal/crystalreportviewers10/</param-value>
</context-param>
<taglib>
<taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
<taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
</taglib>
</web-app>
My JSP Page Source:
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer"%>
<html>
<head>
<title>Web Application Page</title>
</head>
<body>
<crviewer:viewer
viewerName="SPListingReport"
reportSourceVar="_SPListingReport"
displayGroupTree="false"
displayToolbarToggleTreeButton="false"
reportSourceType="reportingComponent">
<crviewer:report reportName="reports/qtrade_sp_listing.rpt"></crviewer:report>
</crviewer:viewer>
</body>
</html> -
Crystal Report JRC and JNDI problem
I need to convert one of our internal web application from using Crystal Report Server 10 RAS to using Crystal Report XI Java Component (JRC). I found several examples from SAP/BusinessObjects but am stuck with a database connectivity problem.
The basic enviornment info:
JBoss 4.0.3 SP1
Crystal Report JRC XI
Windows XP/Server 2003
JDK 1.5.x
MS SQL Server 2005
The error I am getting is "Error finding JNDI name (xxx)", although the application is already using the same JNDI and was able to display data on the web.
I added debug code:
Context initialContext = null;
try {
initialContext = new InitialContext();
DataSource ds = (DataSource) initialContext.lookup("java:MYAPP");
String t = ds.toString();
log.debug(t);
} catch (NamingException e) {
log.error(e);
I was able to get the data source successfully. The actual report file uses JDBC with JNDI named as "MYAPP". When I call the viewer, it gives
Error finding JNDI name (MYAPP)
message.
Any comment or help would be appreciated.
Thanks.How are you setting your connection info?
This is what we do:
IConnectionInfo connectionInfo = new ConnectionInfo();
PropertyBag propertyBag = new PropertyBag();
propertyBag.put("JNDI Datasource Name", reportJndiName);
propertyBag.put("Database DLL", DATABASE_DLL); // required!!! (but we don't actually provide a DLL, or even run in windows)
connectionInfo.setAttributes(propertyBag);
connectionInfo.setKind(ConnectionInfoKind.SQL);
ConnectionInfos connectionInfos = databaseController.getConnectionInfos(null);
IConnectionInfo oldConnectionInfo = connectionInfos.getConnectionInfo(0);
databaseController.replaceConnection(oldConnectionInfo, connectionInfo, null, DBOptions._useDefault ); -
How to configure multiple RAS servers?
Hi
'Crystal Reports Server Embedded XI R2 - Sizing and Configuration Guide'
It mentions that we can get more license and add the servers in ClientSDKOptions.xml.
<ServerInfos version="2" xsi:type="CrystalReports.ServerInfos" id="1">
<ServerInfo version="2" xsi:type="CrystalReports.ServerInfo" id="2">
<Server>SERVER1:1566</Server>
<Adapter>TCPIP</Adapter>
</ServerInfo>
</ServerInfos>
<ServerInfos version="2" xsi:type="CrystalReports.ServerInfos" id="1">
<ServerInfo version="2" xsi:type="CrystalReports.ServerInfo" id="2">
<Server>SERVER2:1566</Server>
<Adapter>TCPIP</Adapter>
</ServerInfo>
</ServerInfos>
I tried this and added ClientSDKOptions.xml file in the web application lib directory
Added that to PATH
Our application uses (Crystal-2008 / rasapp.jar /rascore.jar)
com.crystaldecisions.sdk.occa.report.application.ReportClientDocument
When i commented out rcd.setReportAppServer(sn); it is not picking up from the XML file.
I am getting the below error
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.for(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
at com.crd.report.crystal.CrystalFile.makeRcd(CrystalFile.java:65)
at com.crd.report.crystal.CrystalReportUtil.makeRcd(CrystalReportUtil.java:892)
Please help me how to set up multiple RAS servers.
Thanks
SumathiYou are running an internal DNS server presumably but don't have these hostnames (A-NAME or C-NAME records) set on external DNS servers.
If you run a whois on your domain you can find our who hosts the DNS for the domain if you don't already know. Often DNS hosting companies will have web based tools for you to edit the DNS entries yourself or alternatively you may need to email them and ask them to create the records.
It sounds like you would like to point the addresses ubuntu.domain.com and win.domain.com to the IP address 92.62.26.10 as well. To do this you will have to make sure the services running on each box use a different port to one another. (I.e. You cannot have something running on port 80 on both servers).
Depending on your router also you may only be able to do basic forwarding (I.e. Port 80 forwards to Mac.domain.com; port 443 forwards to ubuntu.domain.com; port 25 forwards to win.domain.com).
If you need more flexibility you may need to get more external IP addresses. -
How to hide field dynamically in a report while using JRC
Post Author: prateeti
CA Forum: JAVA
How can I hide fields in a report dynamically?Say my report now contains 3 fields(columns). Some users want to see the 1st and 3rd column and the 3rd column must be adjusted accordingly so that it appears where the2nd column previously was.Is there any way of doing such thing using API's from JRC.I am not using RAS.
Thanks.Post Author: something_stupid
CA Forum: JAVA
Hi,
you could to this while designing your report in CrystalReports. Pass the user's choice as parameters to your report on runtime. This parameter is evaluated and changes visibility and position of columns conditionally. Actually haven't done this with visibilty and position but with strings to display conditionally.
good luck! -
JRC - usage in JAVA Application
Hi,
I'am planning to use Crystal's JRC api in my standalone Java Application. All the samples in Business Objects site point me to JSPs,Servlets or EJBs. Could anyone point me to sample stand alone Java Applications that uses JRC API
regards
KrishnaHello,
I have never used this stuff before so I don't knwo if what you want to do is even possible but maybe something along these lines might help get you started:
import com.crystaldecisions.report.web.viewer.CrystalReportViewer;
import com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory;
import com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2;
import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
import java.io.*;
public class JRCTest {
public static void main() {
String path = "test.rpt";
IReportSourceFactory2 rsf = new JPEReportSourceFactory();
IReportSource rptSource = (IReportSource)rsf.createReportSource(path, request.getLocale());
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setReportSource(rptSource);
//Is there another method you can use on the viewer class that does not rely on HttpRequest
viewer.processHttpRequest(request, response,getServletConfig().getServletContext(), out);
If you need to use JNDI to locate datasources etc then you need to setup your initial context. Also as commented check the viewer for other output methods.
Hope this helps -
What is RAS and how to use it?
Hi All,
In my apllication, i am displaying the report using JRC.
But it is too slow.
I heard that using RAS we can consume the time.
But i dont know anything about RAS.
Does it need any Jar?
does it need any report server?
and so on....
Can any help me to achieve the task.
Thanks in advance,
Saravanakumar.RAS or Report Application Server offers services to modify report at runtime. To use it you need CR server or Enterprise level product. If you want to just view the report in an optimized way then you should rather use Page Server. To use Page server you again need Enterpriseserver level product and report in managed environment.
JRC can cause performance bottleneck but there are several other factors that influence report performance such as DB type, how complex ig the report is, how is grouping performed at server side or at Crystal etc. Also, if report takes longer to run the Designer it would take at least that much time to run in JRC application.
Look at the following link for Developer DocumentationAPI specification for RAS and Enterprise if you want to explore RAS option further.
https://www.sdn.sap.com/irj/boc/businessobjects-sdklibrary
Thanks
Aasavari
Maybe you are looking for
-
I am unable to update the computer clock. Tried Sys Preferences--just get the spinning basketball.?
-
Hi, I have selected the Business repository from the Tcode Solar01c, and i can see the list of configuration under Business Scenario, when i am trying to execute any Tcode,(My understanding is that this Tcode must execute in Development system) it gi
-
I went through the process of installing the development tools package from the Install CD last night, but don't really see anything different in my programs list. Should something extra have been installed there, or did this just install the gcc, gd
-
Aironet and Dell Latitude problems
We have 3 access points, 2 1121s and a 350. All three are configured identically, using IOS and with 2 user vlans, one configured with WPA/WPA2 and LEAP, and the other with 128-bit WEP. Both VLANs are also doing MAC authentication to an ACS 3.3 serve
-
Pictures disappear in Show Photos Settings
Student can successfully set Ken Burns, adjust time, but when he goes back to edit Ken Burns, the screen is black. We can play the movie, and the pictures play successfully, but obviously, can't edit. Threw away the pictures and started again - same