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
Similar Messages
-
PrinterException when multiple threads try to print report using JRC
Iam using Crystal Report's JRC for printing reports, it works fine.
But the problem araises when i use multiple threads.
I used the following:
reportClientDocument.getPrinterOutputController().printReport(.....); to print.
I get the following exception
Caused by: java.awt.print.PrinterException: No printer named "\\ch03\printer05" could be found.
Without multiple thread it works fine.
I have been scratching my head for days on this problem, any help is very much appreciated..If an API doesn't specifically say that it is thread safe then it isn't likely to be thread safe and the only way to approach it is to assume that it isn't.
-
How to pass BigDecimal as currecny to Crystal Reports using JRC 11
Im using JRC to load and view crystal reports.ie loading crystal reports that are created (not by me) using Crystal Reports v 10. My work is just load those rpt files using JRC thick client.
rpt files are bound to .mdb (MS Access) database and DB is password protected. One of the table in database has currency data type. I'm creating a POJO class to implement the table structure. To match with Currency type, Im using BigDecimal type in my pojo class. when i open the .rpt file in crystal report designer, it shows with default currency symbol (i.e $ and £) But the when i load the same report via JRC, It doesnot show the symbol at all.
When I change this to String and pass symbol, it is coming up properly. But in some places, the reports use sum function of 2 curency fields. So in this case, string cannot be used.
Any help would be appreciated.
Thanks.Sorry. I did not get your point directly.
So I'd recommend not directly relying on internal handling of BigDecimal. You can still report off the value.
So you are telling me not to use BigDecimal? If not what should I use? Please be bit more explanative.
Thanks. -
Currency symbol not shown when loaded report using JRC
I'm trying to show the currency symbol in the report file. the .rpt files is already designed with MS Access table but now im reusing the report and populating pojo classes to map with tables. the report that is bound with MS Access table shows currency symbol in currency fields. but when I load report with JRC, it is not showing. I tried to change Fieldformat also programattically as below.
ReportObjectController reportObjectController = report.getReportDefController().getReportObjectController();
ReportObjects reportObjects = reportObjectController.getReportObjectsByKind(ReportObjectKind.field);
if (reportObjects != null && !reportObjects.isEmpty())
for (int i = 0; i < reportObjects.size(); i++)
IReportObject reportObject = reportObjects.getReportObject(i);
if (reportObject instanceof IFieldObject)
IFieldObject fieldObject = (IFieldObject) reportObject;
IFieldFormat ifFormat = fieldObject.getFieldFormat();
ifFormatObject = (IFieldFormat) ifFormat.clone(true);
break;
for (int count = 0; count < tables.size(); count++)
// Set data source for each table
setDataSourceForEachTable(tables.getTable(count).getAlias());
reportObjectController = report.getReportDefController().getReportObjectController();
reportObjects = reportObjectController.getReportObjectsByKind(ReportObjectKind.field);
if (reportObjects != null && !reportObjects.isEmpty())
for (int i = 0; i < reportObjects.size(); i++)
IReportObject reportObject = reportObjects.getReportObject(i);
if (reportObject instanceof IFieldObject)
IFieldObject fieldObject = (IFieldObject) reportObject;
if (fieldObject.getFieldFormat().getNumericFormat() != null)
fieldObject.setFieldFormat(ifFormatObject);
//fieldObject.setFieldValueType(FieldValueType.currencyField);
break;Above code just get one of the currency field and clones the format. And after setting the pojo datasource, I'm again setting the cloned format to that particular field. But still Im not getting currency symbol in the reports that are loaded via JRC. even I set locale before opening the report. but that also not helping.
report.setLocale(Locale.UK);
report.open(reportName, 0);
Please guide me, If I'm wrong in this. -
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 -
Unable to modify password using security question in LPM.
We have one identity server. We have setup a Lost password management application. There is a webpass and a webgate configured for the LPM application. The communication mode is simple. The forgot password functionality is not working for the LPM application.
Steps to recreate the issue
- In the login form, user click on "I forgot my password' link
- User enter the "User ID" and then click submit
- It redirect user to a challenge question page, user provide answer to the question and click submit
- The next page confirm the user had successfully answer the secret question. And prompt user to enter new password and retype password, then click Save
- When click on save it shows "Cannot modify password". The screen refreshes. The new password is not saved.
Identity Server & Webpass version - 10.1.4.2 BP08
Thanks.Hello,
We built a POC environment with an OID instance on an Oracle 11g database, one virtual machine with WebPass Identity Server and Policy Manager 10.1.4.2 BP07 and another virtual machine with the Access Server and a WebGate.
(plateform is RHEL4 32bits)
We have the same issue on the lost password scenario. We are bind to the LDAP in open mode with "orcladmin" user that can change user password as we can do it through WebPass UI.
When testing the Lost Password scenario after replying to secret question and trying to change the password we have the error: "Cannot modify password"
Looking at "identity/oblilx/logs/oblog.log" shows: ERROR 0x00000901 lost_pwd_mgmt.cpp:264 "Cannot modify password" loginName^xxxxx
If we change the user password with orcladmin user in WebPass UI (password policiy is set to "change on reset") the user after logs in with the new password is prompted to change it and in this scenario it works perfectly...
We have the same behavior in 10.1.4.0.1, 10.1.4.2.0, 10.1.4.2 BP7 and BP8
Well we are stuck on this issue,
Any suggestion is welcomed,
Best regards,
Edited by: Laurent_ch1258 on 22 mai 2009 01:03 -
Unable to load database connector - using JRC w/report connecting to Oracle
A simple Java program was created to test a Crystal Report using JRC. The Java program is a thick-client Swing desktop application (modified from an example of crxi_r2_migrating_rdc_to_jrc.pdf). The program failed to execute the report with the following error:
Unable to load database connector u2018com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'
It might be something simple to correct the problem, but I am not able to find related answers in the documentation and from the forum.
CR version is XI R2. The Java program was compiled and run using jdk1.4.2_13. Oracle is 10.2.
Do I have to use JDBC? or the CR Oracle driver will do? What needs to be setup? If I use JDBC, what do I need to setup (I tried to following the links in the forums or other documentation, but most of the links to http://support.businessobjects.com/.... are broken - i.e. re-route to the SAP support page but not directly linked to the articles)
When the report JRCTestReport.rpt was saved with the option "Save Data With Report", it works fine. So the problem is only with Oracle database driver, the other jars are fine.
In the report JRCTestReport.rpt the database properties are:
DatabaseDLL crdb_oralce.dll
Password
Server myTestDB
Trusted_Connection False
User ID MyUser
The crdb_oracle.dll is located at:
C:\Program Files\Business Objects\Common\3.5\bin
Files are stored in the following tree structure:
<Testing Folder>
JRCTest.java
JRCTest.class
WEB-INF
lib
All required JRC jars and CRConfig.xml
Reports
JRCTestReport.rpt
Java source code JRCTest.java
import java.awt.*;
import javax.swing.*;
import java.io.*;
import com.crystaldecisions.ReportViewer.*;
// Use this for talking to JRC in-process
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.reportsource.*;
public class JRCTest
private static void createAndShowGUI()
try
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(false);
//Create and set up the window.
JFrame frame = new JFrame("JRCTest");
frame.setTitle("JRCTest");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ReportViewerBean viewer = new ReportViewerBean();
System.out.println("ReportViewerBean.init");
viewer.init(new String[0], null, null, null);
System.out.println("new ReportClientDocument");
ReportClientDocument rpt = new ReportClientDocument();
try
System.out.println("Openning Report...");
rpt.open("JRCTestReport.rpt", 0);
catch (Exception ex)
System.out.println("Failed to open report");
System.out.println(ex.toString());
return;
try
System.out.println("logon...");
rpt.getDatabaseController().logon("myUser", "myPass");
catch (Exception ex)
System.out.println("Failed to logon");
System.out.println(ex.toString());
return;
System.out.println("ReportClientDocument.getReportSource");
IReportSource rptSource = rpt.getReportSource();
viewer.setReportSource(rptSource);
System.out.println("viewer.setReportSource");
frame.getContentPane().add
(viewer, BorderLayout.CENTER);
frame.setSize(700, 500);
frame.setVisible(true);
viewer.start();
catch (Exception exception)
System.out.println(exception.toString());
public static void main(String[] args)
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
createAndShowGUI();
Execution result:
C:\tmp\CrystalJavaTest>java -classpath .;./WEB-INF/lib;./WEB-INF/lib/ReportViewe
r.jar;./WEB-INF/lib/jrcerom.jar;./WEB-INF/lib/jrcadapter.jar;./WEB-INF/lib/Concu
rrent.jar;./WEB-INF/lib/CrystalCharting.jar;./WEB-INF/lib/CrystalCommon.jar;./WE
B-INF/lib/CrystalContentModels.jar;./WEB-INF/lib/CrystalExporters.jar;./WEB-INF/
lib/CrystalExportingBase.jar;./WEB-INF/lib/CrystalFormulas.jar;./WEB-INF/lib/Cry
stalQueryEngine.jar;./WEB-INF/lib/CrystalReportEngine.jar;./WEB-INF/lib/CrystalR
eportingCommon.jar;./WEB-INF/lib/icu4j.jar;./WEB-INF/lib/keycodeDecoder.jar;./WE
B-INF/lib/log4j.jar;./WEB-INF/lib/MetafileRenderer.jar;./WEB-INF/lib/rasapp.jar;
./WEB-INF/lib/rascore.jar;./WEB-INF/lib/rpoifs.jar;./WEB-INF/lib/Serialization.j
ar;./WEB-INF/lib/URIUtil.jar;./WEB-INF/lib/xercesImpl.jar;./WEB-INF/lib/xml-apis
.jar JRCTest
Starting
Crystal Report Viewer 2.1.21.2
java.vendor = Sun Microsystems Inc.
java.version = 1.4.2_13
os.name = Windows XP
os.version = 5.1
os.arch = x86
ReportViewerBean.init
new ReportClientDocument
Openning Report...
logon...
ReportClientDocument.getReportSource
viewer.setReportSource
ERROR - JRCAgent1 detected an exception: Unable to load database connector 'com.
crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwRepo
rtSDKException(Unknown Source)
at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
at com.businessobjects.reports.sdk.b.i.a(Unknown Source)
at com.businessobjects.reports.sdk.b.i.byte(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unkno
wn Source)
at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unkno
wn Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage
(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource
.getPage(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReport
Source.getPage(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.rs.b.if(Unknown Source
at com.businessobjects.crystalreports.viewer.core.av.a(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.av.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Unable to load database connector 'com.crystaldecisions.reports.queryengine.driv
erImpl.DriverLoader'.After I switched the report to use JDBC, I am still getting the same error.
Machine has multiple jdk, oracle 10g, Oracle11g client installed though. So I need to set my path to use the jdk from Crystal Report and Oracle 10g.
The program was compiled and ran with the following path and CLASSPATH:
set path="C:\Program Files\Business Objects\j2sdk1.4.2_08\bin";"C:\Program Files\Business Objects\j2sdk1.4.2_08\jre\bin";"C:\Program Files\Business Objects\j2sdk1.4.2_08\jre\bin\client";c:\oracle\ora102\bin
set CLASSPATH=.;./WEB-INF/lib;./WEB-INF/lib/ReportViewer.jar;./WEB-INF/lib/jrcerom.jar;./WEB-INF/lib/jrcadapter.jar;./WEB-INF/lib/Concurrent.jar;./WEB-INF/lib/CrystalCharting.jar;./WEB-INF/lib/CrystalCommon.jar;./WEB-INF/lib/CrystalContentModels.jar;./WEB-INF/lib/CrystalExporters.jar;./WEB-INF/lib/CrystalExportingBase.jar;./WEB-INF/lib/CrystalFormulas.jar;./WEB-INF/lib/CrystalQueryEngine.jar;./WEB-INF/lib/CrystalReportEngine.jar;./WEB-INF/lib/CrystalReportingCommon.jar;./WEB-INF/lib/icu4j.jar;./WEB-INF/lib/keycodeDecoder.jar;./WEB-INF/lib/log4j.jar;./WEB-INF/lib/MetafileRenderer.jar;./WEB-INF/lib/rasapp.jar;./WEB-INF/lib/rascore.jar;./WEB-INF/lib/rpoifs.jar;./WEB-INF/lib/Serialization.jar;./WEB-INF/lib/URIUtil.jar;./WEB-INF/lib/xercesImpl.jar;./WEB-INF/lib/xml-apis.jar;C:/oracle/ora102/jdbc/lib/ojdbc14.jar
I modified my java testing program to display more info:
Modified program:
import java.awt.*;
import javax.swing.*;
import java.io.*;
import com.crystaldecisions.ReportViewer.*;
// Use this for talking to JRC in-process
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.reportsource.*;
import com.crystaldecisions.sdk.occa.report.exportoptions.*;
import com.crystaldecisions.sdk.occa.report.data.*;
import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;
import com.crystaldecisions.sdk.occa.report.lib.IStrings;
public class JRCTest2
private static void createAndShowGUI()
try
System.out.println("Starting");
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(false);
//Create and set up the window.
JFrame frame = new JFrame("JRCTest2");
frame.setTitle("Testing 1, 2, 3");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
System.out.println("new ReportViewerBean");
ReportViewerBean viewer = new ReportViewerBean();
System.out.println("ReportViewerBean.init");
viewer.init(new String[0], null, null, null);
System.out.println("new ReportClientDocument");
ReportClientDocument rpt = new ReportClientDocument();
try
System.out.println("Openning Report...");
rpt.open("JRCTestReport.rpt", 0);
catch (Exception ex)
System.out.println("Failed to open report");
System.out.println(ex.toString());
return;
try
// try logon here to see if any exceptions
rpt.getDatabaseController().logon("myUser", "myPass");
catch (Exception ex)
System.out.println("Failed to logon");
System.out.println(ex.toString());
return;
IDatabase idb = rpt.getDatabaseController().getDatabase();
Tables dtb = idb.getTables();
IConnectionInfo conInfo = dtb.getTable(0).getConnectionInfo();
PropertyBag attrs = conInfo.getAttributes();
conInfo.setPassword("myPass");
conInfo.setUserName("myUser");
IStrings s = attrs.getPropertyIDs();
for (int i=0; i < s.size(); i++)
System.out.println(s.getString(i));
System.out.println(attrs.getStringValue(s.getString(i)));
System.out.println(" ");
conInfo.setAttributes(attrs);
attrs = conInfo.getAttributes();
s = attrs.getPropertyIDs();
// Print property again after setting attributes
for (int i=0; i < s.size(); i++)
System.out.println(s.getString(i));
System.out.println(attrs.getStringValue(s.getString(i)));
System.out.println(" ");
System.out.println("ReportClientDocument.getReportSource");
IReportSource rptSource = rpt.getReportSource();
viewer.setReportSource(rptSource);
frame.getContentPane().add
(viewer, BorderLayout.CENTER);
frame.setSize(700, 500);
frame.setVisible(true);
viewer.start();
catch (Exception exception)
System.out.println(exception.toString());
public static void main(String[] args)
System.out.println("main");
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
createAndShowGUI();
Running result:
C:\tmp\CrystalJavaTest>java JRCTest2
main
Starting
new ReportViewerBean
Crystal Report Viewer 2.1.21.2
java.vendor = Sun Microsystems Inc.
java.version = 1.4.2_13
os.name = Windows XP
os.version = 5.1
os.arch = x86
ReportViewerBean.init
new ReportClientDocument
Openning Report...
Trusted_Connection
false
Server Name
dbHost
Connection String
Use JDBC=b(true);Connection URL=s(jdbc:oracle:thin:@dbHost:1521:myDB);Database Class Name=s(oracle.jdbc.OracleDriver);Server=s(dbHost);User ID=s(myUser);Password=;Trusted_Connection=b(false);JDBC Connection String=s(!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB)
Server Type
JDBC (JNDI)
Database Class Name
oracle.jdbc.OracleDriver
Use JDBC
true
URI
!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB
Database DLL
crdb_jdbc.dll
Trusted_Connection
false
Server Name
dbHost
Connection String
Use JDBC=b(true);Connection URL=s(jdbc:oracle:thin:@dbHost:1521:myDB);Database Class Name=s(oracle.jdbc.OracleDriver);Server=s(dbHost);User ID=s(myUser);Password=;Trusted_Connection=b(false);JDBC Connection String=s(!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB)
Server Type
JDBC (JNDI)
Database Class Name
oracle.jdbc.OracleDriver
Use JDBC
true
URI
!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB
Database DLL
crdb_jdbc.dll
ReportClientDocument.getReportSource
ERROR - JRCAgent1 detected an exception: Unable to load database connector 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
at com.businessobjects.reports.sdk.b.i.a(Unknown Source)
at com.businessobjects.reports.sdk.b.i.byte(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPage(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.rs.b.if(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.av.a(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.av.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Unable to load database connector 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
Also got similar error when the path and classpath was switched to Oracle 11g.
Is there a way to tell which file that it failed to load?
Thanks
Kin -
Unable to open reports with Web intelligence
Hi there,
We are unable to open reports using Webi Intelligence. Error of "Session is closed(Error: INF)" apears.
I have restarted the SIA and Apache services with no luck.
Version : Business Objects XI3, Edge Series professional
Kind regards,Try changing the idle connection timeout on your Web Intelligence Processing Server to 60 minutes (from the CMC).
If this doesn't work, please add a trace to the Web Intelligence Processing Server (add a -trace to the command line parameters of the server). and post the log for the relevant time period. -
Viewing a report using integrated security for connection to database
PLEASE HELP!!
I am able to connect to an SQL Server 2008 database from the Crystal Reports Designer using integrated security and can succesfully load the database to create my report with. I provide the following parameters at connection;
Connection string = jdbc:sqlserver://<hostname>:1433;databaseName=<dbname>;integratedSecurity=true
Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
HOWEVER, I do not know/cannot find how to then access the report using JRC in a JSP Web Viewer for Crystal Reports.
Any ideas experts??
Regards
Nick HirstI'm having this same issue, but from the desktop app side. Did you ever find a solution?
-
Unable to upload the updated/modified Report template (rtf file) in siebel
Hi,
I am unable to upload the updated/modified Report template (rtf file) if already exists in the local database.
Initially I have uploaded a rtf template, generated xliff, registered it and can view the report from the registered view. Later I have made few changes to the rtf template, in the reports template view, I have uploaded this. When i run the report in the registered view, I am able to see the earlier version and it doesnt show me the updated changes.
I am using 8.1.1.3 siebel and BIP 10.1.3.3.1 on local.
Looking at the metalink found "How To Upload Modified RTF Template Files In The Siebel Application For BI Publisher Reporting [ID 1136418.1]" which is related to server but I am working on local database
Please find attached the template, xml file. can you please look into this and update me ASAP
Thanks,
RVHi,
Not able to find Report - Standard templates or Report - Custom templates view in Administration - BIP reports in Siebel 8.1.1.3?
We have applied 8.1.1.3 patch on 8.1.1.0
below are the steps followed
Reports are not generated after 8.1.1.3 patch installtion.
we have also followed to below steps mentioned for this issue in oracle support.
"In order to resolve this behavior it is necessary to ensure that the 8.1.1.3 FixPack has been applied to the Siebel Tools installation. This will provide an additional .zip file in the REPPATCH folder of the Siebel Tools installation. Once this has been done please then follow the configuration steps as documented :
change sysprefix to X_ before sif import and chage back to SBL_ after sif import.
1) Import the sif files from Siebel\8.1\Tools_1\REPPATCH\12-1VMBCSV.zip
2) Import the 4 SIF files in the following order:
S_XMLP_REP_TMPL_02112010.sif
SBL_XMLP_REPORT_SELECTION_FLG.sif
Report Template BC.sif
Report Template Registration Applet.sif
3)Apply the DDL for table S_XMLP_REP_TMPL and compile repository
Once the above steps have been completed the Selected Record flag will appear in the Report Template Registration views."
we still not able to generated able to generate reports even after following above steps.
Thanks
Sean -
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 -
Error while trying to export a report into PDF using JRC (Linux env)
Hi all,
I have my web app installed on a Linux environment. When trying to export a CR report into PDF using JRC
PrintOutputController controller = reportClientDoc.getPrintOutputController();
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream) controller.export(ReportExportFormat.PDF);
I got this error message:
19/02/2009 10:21:37 b INFO PdfExporter: PdfDocumentModeller.modelPage (page 1)
19/02/2009 10:21:37 b INFO PdfExporter: Modelling page
19/02/2009 10:21:37 b INFO PdfExporter: Creating document manager, text modeller and image modeller.
19/02/2009 10:21:37 b ERROR PdfExporter: Exception caught in PDFFormatter.formatPage (from PdfDocumentModeller.modelPage); aborting export
java.lang.IllegalArgumentException: Data type is not supported.
at java.awt.image.Raster.createInterleavedRaster(Raster.java:212)
at java.awt.image.Raster.createInterleavedRaster(Raster.java:178)
at java.awt.image.ComponentColorModel.createCompatibleWritableRaster(ComponentColorModel.java:2826)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:439)
at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.u.<init>(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.d(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.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.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
On my Windows environment the JRC export into PDF work perfectly. I know that there are some known issues regarding the usage of JRC on Linux environments. Could this be one of those?
Any solution (or workaround) would be highly appreciated!
Thank you!
PS Maybe this is relevant: I use a MySQL database!
Edited by: Sandila Catalin on Feb 19, 2009 10:01 AMWhat kind of image do you have in the report?
Do you have -Djava.awt.headless=true specified for the Java JVM option?
Sincerely,
Ted Ueda -
Images are not loaded while displaying report using Report Viewer with JRC!
Hi Everybody,
I created a Report designed using CR XI.
I am viewing that report from my application using JRC and crystal Report Viewer and PDF viewer.
In PDF viewer everything is fine including images display, saving etc.
But in Crystal report Viewer, I am not getting the images of the buttons such as export, next page, previous page etc. But all the funtionalities are working.
From where i can load the pictuers and how?
Can anybody help on this?
Thanks in advance,
Saravanakumar.
Edited by: Saravana kumar on Nov 17, 2008 1:23 PMHi Saravana
The issue you have posted here in the Crystal Reports Design Forum is a Developer issue. Please post this query to the BusinessObjects SDK Application Development - > Java Development Crystal Reports forum.
Regards
Girish Bhosale -
Hi Folks,
I have a problem with OBIEE EM, There in Enterprise Manager i am unable to navigate into the options like when i clik on any Tab it is not working and even i am unable to create a report using analysis.
Thanks in advancei have also tried that but no use can u give me any other way.......
-
How to generate PDF report directly instead of RPT report by using JRC ?
Hi,
Good Day !
How to generate PDF report directly instead of RPT report by using Crystal Reports XI Release 2 Java Reporting Component (JRC) in desktop (Swing thick-client) ?
My GUI program will generate a RPT report, then i can export to PDF file, this is ok, no problem.
BUT
i want it direct to generate a PDF report, not a RPT report.
The code like below (2 java files)
ClassA.java
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(XXX, 0);
ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
paramFieldController.setCurrentValue("", "XXX", DomainClass.getXXX());
new ReportViewerFrame(reportClientDoc);
// End of ClassA.java
// Begin ReportViewerFrame.java
public class ReportViewerFrame extends JFrame
//Initial window frame properties.
private final int XPOS = 80;
private final int YPOS = 60;
private final int WIDTH = 760;
private final int HEIGHT = 550;
private ReportViewerBean reportViewer = new ReportViewerBean();
private ReportClientDocument reportClientDoc = new ReportClientDocument();
public ReportViewerFrame(ReportClientDocument reportClientDoc) throws Exception
//Initialize frame properties.
this.setResizable(true);
this.setLocation(XPOS, YPOS);
this.setSize(WIDTH, HEIGHT);
this.setTitle("Crystal Report Java Viewer");
//Add GUI components to the frame including the ReportViewerBean.
addComponents();
//Add GUI listeners to the frame.
addListeners();
//Set the report that the ReportViewerBean will display.
this.reportClientDoc = reportClientDoc;
reportViewer.setReportSource(reportClientDoc.getReportSource());
reportViewer.init();
reportViewer.start();
//Display the frame.
this.setVisible(true);
How to set the export option to PDF base on existing code ?
Where can i download this package/jar ?
regardsPlease find a console app that you can extend it to a JFrame app by importing the relevant swing package:
//Crystal Java Reporting Component (JRC) imports.
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.lib.*;
import com.crystaldecisions.sdk.occa.report.exportoptions.*;
//Java imports.
import java.io.*;
public class ExportReport {
static final String REPORT_NAME = "ExportReport.rpt";
static final String EXPORT_FILE = "C:\\myExportedReport.pdf";
public static void main(String[] args) {
try {
//Open report.
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(REPORT_NAME, 0);
//NOTE: If parameters or database login credentials are required, they need to be set before.
//calling the export() method of the PrintOutputController.
//Export report and obtain an input stream that can be written to disk.
//See the Java Reporting Component Developer's Guide for more information on the supported export format enumerations
//possible with the JRC.
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
//Release report.
reportClientDoc.close();
//Use the Java I/O libraries to write the exported content to the file system.
byte byteArray[] = new byte[byteArrayInputStream.available()];
//Create a new file that will contain the exported result.
File file = new File(EXPORT_FILE);
FileOutputStream fileOutputStream = new FileOutputStream(file);
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
byteArrayOutputStream.write(byteArray, 0, x);
byteArrayOutputStream.writeTo(fileOutputStream);
//Close streams.
byteArrayInputStream.close();
byteArrayOutputStream.close();
fileOutputStream.close();
System.out.println("Successfully exported report to " + EXPORT_FILE);
catch(ReportSDKException ex) {
ex.printStackTrace();
catch(Exception ex) {
ex.printStackTrace();
As to the relevant jar(s) deployment refer to this link (Java Reporting Component Configuration):
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/JRC_SDK/jrc_java_dg_doc/doc/jrcsdk_java_dg/WorkingWithJRC2.html#1004391
Cheers
Maybe you are looking for
-
My G2 iPod that I use as an external drive to archive memory cards on the go cannot link with my new 13" Macbook Pro cause it uses a firewire 400 lead. It will not work with a USB lead. Is there a firewire 800 ipod lead or converter available? Can an
-
Problem installing and configuring Tomcat
Hi I am quite new with Java and feel like a typical dumb blonde. OK, I am using an 'ancient ' version of the Java Development Kit, which is j2sdk1.4.1_01 (for the purpose of my studies, though I know there is a newer version available). I am also usi
-
How can the IE brower display pictures in WCS?
Hi all, Anyone know that how can the IE display pictures in WCS? Even I enable all field in Security and Advanced in the properties dialog of IE6.0 in Windows 2003, the picture still cannot display in the page of WCS. And the certificate issued by WC
-
EDI-OUTBOUND(CREATING CONTRACT)
hi , i am trying to create an contract through transaction VA41 and my output type is not proposed automatically .i have made all the neccessary configurations.i have created condition records in NACE.but when i manually create the ouput type it is
-
Inactivation develop module lightroom5
Having purchased and downloaded Adobe Lightroom5(Mac) which was working very well, I registered on creative cloud to find out more about it. I then found the Develop module of Lightroom was disabled with a message PLease renew your membership to