Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all 893 articles
Browse latest View live

Cannot Extract Embedded Font in PDF Report Generated Using Crystal Reports XI

$
0
0

The issue is that sometimes the PDF reports generated by Crystal Report XI are not showing the fonts properly. Arial font is used in the Crystal report template(.rpt file) for field label and data elements. When the report is opened in Adobe Reader, it displays the message - "Cannot extract the embedded font 'AAAAAA+ArialBold'. some characters may not display or print correctly." Other PDF Readers like Foxit show blank spaces instead. I tried to change the font to Courier New, Times New Roman etc but still getting the same message.


The issue is consistent when the application is deployed in Windows server. When deployed in Unix server the issue happens very occasionally. The font files are available and installed in the UNIX box.


Please tell me why this error message is shown and also tell me how to get it fixed.History Report.png


Deploying JRC as stand alone java application.

$
0
0

Hi ,

 

I have a requirement to generate pdf/xls file from a crystal report file (.rpt) as a  standalone java application . I used the runtime libraries available in the following [url|http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp].

 

I added all the jar file into my project in eclipse and was able to generate a report from eclipse.

 

Code is similar to the one posted by Aasavari Bhave in this [thread|Calling Standalone Crystal Report(2008) from a windows Java Program;.

 

When i exported the code as a jar file and executed it from my desktop, I am getting the following exception.

 

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException---- 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.sdk.ReportClientDocument.open(SourceFile:80)

        at com.tririga.batch.PDFExporter.runCrystalReport(PDFExporter.java:59)

        at com.tririga.batch.PDFExporter.main(PDFExporter.java:24)

Caused by: java.lang.NullPointerException

        at com.crystaldecisions.reports.common.engine.Engine.a(Unknown Source)

        at com.crystaldecisions.reports.common.engine.Engine.configure(Unknown Source)

        at com.crystaldecisions.reports.common.engine.Engine.getConfigurationManager(Unknown Source)

        at com.crystaldecisions.reports.common.engine.KeycodeManager.initialize(Unknown Source)

        at com.crystaldecisions.reports.common.engine.Engine.getKeycodeManager(Unknown Source)

        at com.businessobjects.reports.sdk.JRCLicenseThrottler.int(SourceFile:177)

        at com.businessobjects.reports.sdk.JRCLicenseThrottler.<init>(SourceFile:84)

        at com.businessobjects.reports.sdk.JRCLicenseThrottler.for(SourceFile:77)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.i(SourceFile:2805)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.connect(SourceFile:298)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:218)

        at com.businessobjects.sdk.erom.jrc.a.<init>(SourceFile:43)

        at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:46)

 

The above exception occurs in the below line of code.

reportClientDoc.open(REPORT_NAME, 0);

 

Bat Script Used

 

set CRYSTALJARS=.libcom.azalea.ufl.barcode.1.0.jar;.libcommons-collections-3.1.jar;.libcommons-configuration-1.2.jar......libxpp3.jar;

set CLASSPATH=%CRYSTALJARS%;

ECHO ON

java -Xbootclasspath/p:%CLASSPATH% -jar .libCrystalBatchTest.jar

 

 

Please let me know if I am missing any deployment step or any other jar files needs to be added.

 

Thanks,

How do I read the properties of an .rpt file

$
0
0

Post Author: darwinfelix

 

CA Forum: JAVA

 

com.crystaldecisions.sdk.occa.report.document.SummaryInfo

1) We are running Crystal Enterprise XI

2) I have the SDK(s) that's shipped with the installation CD

3) I can delelete and publish reports using the API with no problem

4) My worksatation is on WinXP and XI is on Windows Server 2003

 

On my workstation, I have a .rpt file.

If I &#91;Right-click -> Properties -> Summary tab&#93; that .rpt file from

Windows Explorer, I can see who the Author was, the Last modified

date/time, Comments field, Revision number, Application name, etc.

I noticed in the API that I can modify this info using the

com.crystaldecisions.sdk.occa.report.document.SummaryInfo

java object.  Meaning, the API will allow me to obtain these

properties once I have a reference to the

com.crystaldecisions.sdk.occa.report.document.ReportDocument

java object ( by calling rptDoc.getSummaryInfo() ).

 

However, I do not know how to obtain a reference to this (ReportDocument) object.

1) I do not want to publish this .rpt file to the XI server

2) This .rpt has never been published to the XI serever

3) I prefer not to connect to the XI server

4) The .rpt file is on my Workstation (local hard-drive)

5) The SDK(s) are on my Workstation (local hard-drive)

6) I do not have any servers/services running on my Workstation

7) I want to use Java and the XI SDK(s)

8) I don't want to run my code on the XI server

 

Meaning, at the end of the day, my code will look something

like this...

...ReportDocument rptDoc = ...

SummaryInfo summInfo = rptDoc.getSummaryInfo();

String author = summInfo.getAuthor();String comments = summInfo.getComments();...

 

Can someone please point to some documentation, samples, guides, etc.

that I can read through.

 

thanks,

-darwin

 

Using Excel as Data Source for Crystal Reports (with Java SDK)

$
0
0

Hi,

I already tried to find similar topics here but was more or less unable to fix my problem with the suggestion I found so far.

I would like to create a report with a excel file as data source. All my current attempts fail with the following exception "com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(719):  detected an exception: Error finding JNDI name (E:\SampleSalesData.xls)"

 

This is my current approach:

final ReportClientDocument boReportClientDocument = new ReportClientDocument();
boReportClientDocument.setLocale(Locale.US);
boReportClientDocument.newDocument();
final String fullPathToExcelFile = "E:\\SampleSalesData.xls"
final ConnectionInfo boConnectionInfo = new ConnectionInfo();
final PropertyBag boPropertyBag = boConnectionInfo.getAttributes();
boPropertyBag.put("Server Type", "Access/Excel (DAO)");
boPropertyBag.put("Database Type", "Excel 8.0");
boPropertyBag.put("Database DLL", "crdb_dao.dll");
boPropertyBag.put("System Database Path", "");
boPropertyBag.put("Session UserID", "");
boPropertyBag.put("PreQEServerName", fullPathToExcelFile);
boPropertyBag.put("Database Name", fullPathToExcelFile);
boPropertyBag.put("Server Name", fullPathToExcelFile);
boPropertyBag.put("JNDIOptionalName", fullPathToExcelFile);
boPropertyBag.put("Trusted_Connection", false);
boPropertyBag.put("Use JDBC", false);
boConnectionInfo.setAttributes(boPropertyBag);
// Set the DB Username and Pwd
boConnectionInfo.setUserName(null);
boConnectionInfo.setPassword("");
boConnectionInfo.setKind(ConnectionInfoKind.SQL);
// [...]

 

Once I have added the datasoruce I add a filed to the report and would like to export as PDF (this works fine).

The current StatckTrace looks like this:

2015-09-14 16:35:54,191 ERROR [MAIN] com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(719):  detected an exception: Error finding JNDI name (E:\SampleSalesData.xls)

        at com.crystaldecisions.reports.queryengine.Connection.t4(SourceFile:3024)

        at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:697)

        at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:707)

        at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)

        at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)

        at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)

        at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1943)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)

        at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)

        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)

        at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)

        at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)

        at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)

        at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)

        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)

        at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)

        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)

        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)

        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:223)

        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:147)

        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:128)

        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:111)

        at EXPORT...

 

Any help on how to resolve this Problem is highly appreciated.

 

Thanks,

Change database

$
0
0

Hello,

 

I'm using the Crystal Reports Java SDK from Crystal Reports for Eclipse 2.0 (normal Java code, no JSP) and trying to change the database during runtime. Here's my code snippet:

final PropertyBag newConnectionProperties = new PropertyBag();
final IConnectionInfo newConnectionInfo = new ConnectionInfo();
newConnectionProperties.put("Use JDBC", true);
newConnectionProperties.put("Connection URL", "jdbc:jtds:sybase://IP:PORT/DATABASE_NAME");
newConnectionProperties.put("Database Class Name", "net.sourceforge.jtds.jdbc.Driver");
newConnectionProperties.put("Database DLL", "crdb_jdbc.dll");
newConnectionInfo.setAttributes(newConnectionProperties);

try {
    newConnectionInfo.setUserName("USER_NAME");    newConnectionInfo.setPassword("PASSWORD");    final IConnectionInfo oldConnectionInfo = reportClientDocument.getDatabaseController().getConnectionInfos(null).getConnectionInfo(0);    reportClientDocument.getDatabaseController().replaceConnection(oldConnectionInfo, newConnectionInfo, null, 0);
}
catch (ReportSDKException exception) {
}

 

The problem is that Crystal Reports always connects to the database specified during design time in the report. Lets assume there are two databases on the same server: DATABASE_DEVELOPMENT and DATABASE_TEST. During design time, the report has been configured to connect to the development database. But during runtime, I'd like to connect to the test database (or maybe a production database). This does not work with the above code (assuming that the DATABASE_NAME in the connection URL is replaced with DATABASE_DEVELOPMENT or DATABASE_TEST). What am I doing wrong?

 

Thanks in Advance!

 

Robin Lebert

Background threads?

$
0
0

Hi all

 

We're currently evaluating CR for use in our swing-based application. Our app has a plugin mechanism, and I'm having some difficulty in getting our plugins unloaded after using the ReportViewerBean. Specifically, it appears that a number of background threads with names like "Background Batch Spiller 0" are started up by the Crystal Reports code, and hang around even after closing the component. The threads appear to still have references to our plugin's classloader through the inheritedAccessControlContext field on the thread. We are not running with a SecurityManager.

 

I believe that I'm calling ReportClientDocument.close() as necessary and also cleaning up the viewer by calling stop() followed by destroy() on it.

 

Is there any way to programatically tell the Crystal code to shut down all its background threads? Or are there any other suggestions?

 

Thanks in advance

 

Tom

Cr & Java

$
0
0

Good Night to everyone, i'am a new user and need some patient developer that would help me.

I have a report designed with CR2008 that works fine, now i'm developing a Java application with Netbeans 6.8.

Now i'm looking for an example of how implements a Report Viewer in my application to visualize my rpt.

Ive found something but nothing of really clear and i have not found in none of the JAR that download from "CR Runtime for Java Application" the class com.crystaldecisions.reports.sdk

 

Please is there someone that want to help me?

 

Thanks in advance

Migrating from reports 10 RAS tp BO XI 4.0 reports view in JSP

$
0
0

I was wondering if you can help me with this problem -

1.  We have developed reports using RAS Reports 10

2.  Currently have migrated J2EE application to Windows 2008 server and so need to upgrade to Crystal Reports 13 (Business Objects XI 4.0)

3.  This is a trial version.

4.  The reports engine works fine as standalone

5.  When I try to launch reports_viewer.jsp in Java application - I am importing the following JARS

com.crystaldecisions.reports.sdk.*,

com.crystaldecisions.sdk.occa.report.reportsource.*,

com.crystaldecisions.sdk.occa.report.lib.*

 

com.crystaldecisions.sdk.occa.report.application.*,

com.crystaldecisions.sdk.occa.report.exportoptions.*,

com.crystaldecisions.sdk.occa.report.data.*,

com.crystaldecisions.sdk.occa.report.data.ITable;

com.crystaldecisions.report.web.*,

com.crystaldecisions.report.web.viewer.*,

com.crystaldecisions.report.web.viewer.CrystalReportViewer,

com.crystaldecisions.sdk.occa.report.lib.*

 

6.  I get errors  on a few needed jars - does not exist

7.  I have copied jars from XI 4.0/java/lib, /external to WEB-INF/lib folder.

 

What am I missing?

 

Thanks,

 

Amar


CRJ SDK

$
0
0

Hi!  The "Crystal Report Java runtime component" is available as a separate download to "SAP Crystal Reports, Version for Eclipse".  So where can I find the javadoc for the API and the Development Guide for the 12.2.216 release of the runtime libraries?

How to determine if a parameter is actually being used in a Crystal report

$
0
0

We are migrating from an old Visual Basic 6.0 Crystal SDF to the Java SDK.  We are using "SAP Crystal Reports for Java runtime components - Java Reporting Component (JRC) that is available using url http://scn.sap.com/docs/DOC-29757. The downloaded zip file associated with this is crjava-runtime_12.2.218.zip  The jar files assocaited with these components are downloaded to a workstation and used with a Java Swing Web Start application.

In the VB API, a parameter field obtained from crxReport.ParameterFields() has a variable "needsCurrentValue". A false value told you the parameter was not used in the report. I don't see an equivalent of this in the Crystal Java SDK. I have an issue where all parameters are returned via:

 

Fields<IParameterField> myFields = dataController.getDataDefinition().getParameterFields() even if some of the fields are not used in the report. The legacy system passes only parameters that are used and using "needCurrentValue", we would skip over those parameters that were "false".  I cannot find a way to detect that a parameter is not being used in the Crystal SDK. Does anyone know how?

Html field

$
0
0

I make a report with crystal reports 2013. I put in the report a text field witch has the property "Text interpretation" to HTML and witch contents :

<html>   

<head>         

</head>   

<body>     

  <p><b><u>LINE 1</u></b></p>     

  <p>LINE 2</p>

  <p>LINE 3</p>

</body> 

</html>.

 

When I print this report the first line is printed in bold and underline, the two other lines are printed in bold. The issue is : the first attribut (<b>) is applied to the remainder of the document, not not only to the enclosed text.

 

I use the runtime "crjava-runtime_12.2.219"

 

Has anyone an idee about this problem ?

 

Thanks !

Font problem while printing russian characters

$
0
0

Hello,

I have a weird problem. When I print an exported crystal report document which has been exported by Crystal Reports for Eclipse 2.0 as PDF document, the printout misses a lot of russian characters. This area with the missing characters just stays blank, not even question marks or something similar is shown. It seems that the half of all characters of the document is not shown.

(But the document does not contain any missing characters when you just open it in Adobe Acrobat. You only see this behaviour when you print it. That's why we didn't recognize this error for a long time because we didn't print it but just opened it with Acrobat Reader)

 

I have an original document with russian characters which is saved as docx. When I export this document with MS Word to PDF and print this document, no characters are missing. So it's no printer problem.

 

There is a difference in both documents:

This document, where all characters work, has the following properties set in the font information tab:

Arial

   type: TrueType

   encoding: Ansi

   original font: ArialMT

   original font type:: TrueType

 

The document which has been created with Crystal Reports for Eclipse 2.0 just contains the following data:

 

Arial

   type: TrueType

   encoding: included

 

(I hope the right translation for this option set is "included" because my version of Adobe Acrobat is a non english version).

 

What exactly happened to this document. How can I solve this that russian fonts will be print correctly?

 

Regards,

Markus

How to achieve localization in crystal reports 2011

$
0
0

Hi i am using crystal reports 2011.

i have to develop multilingual reports.

 

i need to change only  headers based on language selected using language parameter.data is same for all languages

 

 

if i selected country=india     then labels are

 

User          Date


vissu          01/05/2012

 

if country=uk     then

 

impôt         série


vissu          01/05/2012

 

Can any one please help me how to implement this.

Hi parik we are manually providing the language.

No Sax Parser is available

$
0
0

Hi,

 

I use the latest Crystal reports plugin for Eclipse (latest version) on tomcat 5.5 using Windows 2003 server.I have reported this before but was not able to resolve the issue and now it is making our application unusable so I come with an open heart for some further advise. It only happens on our live environment (note this live environment also has a application using Crystal XI equivalent) and will be okay for a week, and once this error occurs we have to reboot the server.

I need some guidance on what to try next, as my java knowledge is a work in progress.

 

The error message:

No Sax Parser is available

com/crystaldecisions/xml/serialization/SourceFile, line 65.

 

I have read some other threads to do with serialisation but I don't understand enough to assist me with my problem. Below are further details of the error:

com.crystaldecisions.xml.serialization.XMLObjectSerializer.(SourceFile:65)    com.crystaldecisions.proxy.remoteagent.ClientSDKOptions.readClientSDKOptions(SourceFile:147)    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.n(SourceFile:1129)    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.j(SourceFile:275)    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.(SourceFile:244)    com.businessobjects.samples.CRJavaHelper.openReport(CRJavaHelper.java:788)    com.businessobjects.samples.CRJavaHelper.validateReport(CRJavaHelper.java:941)

 

The openReport, line 788: clientDoc = new ReportClientDocument();

I use: com.crystaldecisions.sdk.occa.report.application.

Should I use com.crystaldecisions.report.sdk, or com.crystaldecisions12.sdk.occa.report.application.

 

This is my openReport

public static ReportClientDocument openReport (String rptName, HttpSession session,                                         ServletContext serContext,     boolean doSubReports) throws ReportSDKException, Exception {               //ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(rptName);          ReportClientDocument clientDoc = (ReportClientDocument) serContext.getAttribute(rptName);               if (clientDoc == null) {               // Report can be opened from the relative location specified in the CRConfig.xml, or the report location               // tag can be removed to open the reports as Java resources or using an absolute path               // (absolute path not recommended for Web applications).               clientDoc = new ReportClientDocument();               clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);                              clientDoc.open(rptName, OpenReportOptions._openAsReadOnly);

 

The mechanism I log onto the report is below. This was adviced by Ted as I had problems with the standard helper functions causing a problem with alias tables:

 

DatabaseController databaseController = clientDoc.getDatabaseController();            ConnectionInfos connectionInfos = (ConnectionInfos)databaseController.getConnectionInfos(null);            // Get old connection info            IConnectionInfo oldConnectionInfo = connectionInfos.getConnectionInfo(0);          // Build new connection Info                   IConnectionInfo newConnectionInfo = new ConnectionInfo();                   newConnectionInfo.setKind(ConnectionInfoKind.SQL);            PropertyBag newProperties = new PropertyBag();                      newProperties.put("Connection URL", connectString);           newProperties.put("Server Type", "JDBC (JNDI)");           newProperties.put("Database DLL", "crdb_jdbc.dll");           newProperties.put("Database Class Name", driverName);                         newConnectionInfo.setAttributes(newProperties);            newConnectionInfo.setUserName(userName);            newConnectionInfo.setPassword(password);                        {              databaseController.replaceConnection(oldConnectionInfo, newConnectionInfo, null, DBOptions._useDefault +  DBOptions._doNotVerifyDB);              databaseController.logon(userName, password);            }            // SUB REPORTS...            if (doSubReports)     {                 SubreportController src = clientDoc.getSubreportController();              IStrings strs = src.getSubreportNames();              Iterator<?> it = strs.iterator();              while (it.hasNext())               {                                   String name = (String)it.next();                ISubreportClientDocument subreport = src.getSubreport(name);                DatabaseController sdc = subreport.getDatabaseController();                                connectionInfos = sdc.getConnectionInfos(null);                                IConnectionInfo oldci = connectionInfos.getConnectionInfo(0);                                                    IConnectionInfo newci = new ConnectionInfo();                     newci.setKind(ConnectionInfoKind.SQL);                                                newci.setAttributes(new PropertyBag(newProperties));                     newci.setUserName(userName);                     newci.setPassword(password);                                          sdc.replaceConnection(oldci, newci, null, DBOptions._useDefault + DBOptions._doNotVerifyDB);                           sdc.logon(userName, password);                                                                       }            } 

 

Any help seriously appreciated.

 

Regards

 

Matthew

Crystal Reports 2008 SP5 Download


JSONObject["ancestors"] is not a JSONArray

$
0
0

Hello All,

 

We are using SPA Business Objects Cyrstal Reports 2013 Support Pack 2 version 14.1.2.1121. I am using DHTML Viewer for showing my reports in java web application. When i am running my application it sent me some Jason error. When we have contacted SAP then as per them its bug. Well i am not sure if this is the bug or we are doing something wrong. Need urgent help on it. We are approaching towards release date. Below is the exception log.

 

12:27:38,856 INFO  [pirptfe] (http-localhost-127.0.0.1-8080-1) ReportTag instantiated

12:27:38,872 INFO  [pirptfe] (http-localhost-127.0.0.1-8080-1) File location for XML file: \\XXXXXXXXXXX\Shares

12:27:38,872 INFO  [pirptfe] (http-localhost-127.0.0.1-8080-1) Writing XML File: [\\USTMVAPP400\Shares\{CE04A9B6-FD12-28E2-DB21-2191B246EE79}.xml]

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) ***** Initialized Report Viewer *****

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Server name: localhost

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Server port: 8080

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) URI: /pirptfe/viewReport.jsp

12:27:40,127 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Remote Host: 127.0.0.1

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Session ID: 5y1W6uvRnvzrEkiTlaEu2WcF.undefined

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Content Length: -1

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Product Locale: en_US

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Content Locale: en

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Method: GET

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Protocol: HTTP/1.1

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Scheme: http

12:27:40,128 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Control Name: CrystalViewer

12:27:40,160 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Own Page: true

12:27:40,339 INFO  [com.businessobjects.report.web.render.ViewerRenderer] (http-localhost-127.0.0.1-8080-1) ***** Rendered Response *****

12:27:40,362 INFO  [com.businessobjects.report.web.render.ViewerRenderer] (http-localhost-127.0.0.1-8080-1) Request Context Page Number: 1

12:27:40,364 INFO  [pirptfe] (http-localhost-127.0.0.1-8080-1) Report is displayed or exportedAccount Summary List

12:27:40,692 INFO  [com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet] (http-localhost-127.0.0.1-8080-4) CrystalReportViewerServlet started.

12:27:40,944 INFO  [webreporting.javascript] (http-localhost-127.0.0.1-8080-4) 890415142 Logging Initialized

12:27:40,944 INFO  [webreporting.javascript] (http-localhost-127.0.0.1-8080-6) 890415142 UIAction InitLoad

12:27:40,960 ERROR [com.businessobjects.report.web.shared.JSONParameter] (http-localhost-127.0.0.1-8080-1) Unable to set the ancestors: com.businessobjects.report.web.json.JSONException: JSONObject["ancestors"] is not a JSONArray.

  at com.businessobjects.report.web.json.JSONObject.getJSONArray(JSONObject.java:456) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.getDiscreteValueFromJSON(JSONParameter.java:708) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.getValueFromJSON(JSONParameter.java:635) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.jsonToFieldValues(JSONParameter.java:592) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.getValues(JSONParameter.java:455) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.JSONParameter.toParameterField(JSONParameter.java:919) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.shared.ParametersHelper.jsonToFields(ParametersHelper.java:326) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.state.ViewerState.restoreCommonState(ViewerState.java:2872) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.state.ViewerState.restore(ViewerState.java:2775) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.component.ViewerContainer.restoreState(ViewerContainer.java:211) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.loadViewState(WorkflowController.java:418) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.init(WorkflowController.java:393) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doLifecycle(WorkflowController.java:252) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doAsyncLifecycle(WorkflowController.java:106) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerUpdater._processHttpRequest(CrystalReportViewerUpdater.java:61) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.ServerControl.processHttpRequest(ServerControl.java:345) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doUpdate(CrystalReportViewerServlet.java:206) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(CrystalReportViewerServlet.java:194) [webreporting.jar:14.1.2.1171]

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]

 

 

12:27:41,007 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) ***** Initialized Report Viewer *****

12:27:41,007 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Server name: localhost

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Server port: 8080

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) URI: /pirptfe/CrystalReportViewerHandler

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Remote Host: 127.0.0.1

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Session ID: f60hQwvuvJVtp7HE9AlFhQxM.undefined

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Content Length: 4759

12:27:41,022 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Product Locale: en_US

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Content Locale: en

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Method: POST

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Protocol: HTTP/1.1

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Scheme: http

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Control Name: CrystalViewer

12:27:41,038 INFO  [com.businessobjects.report.web.component.ViewerContainer] (http-localhost-127.0.0.1-8080-1) Own Page: false

12:27:41,163 ERROR [com.businessobjects.report.web.event.ViewerBroadcaster] (http-localhost-127.0.0.1-8080-1) Unable to process listener: com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: Information is needed before this report can be processed.---- Error code:-2147213303 [] Error code name:invalidParameterField

  at com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException.throwReportSDKParameterFieldException(ReportSDKParameterFieldException.java:104) [CrystalReportsSDK.jar:14.1.2.1171]

  at com.crystaldecisions.sdk.occa.managedreports.ps.internal.SendRequestHelper.sendRequest(SendRequestHelper.java:136) [cereports.jar:14.1.2.1171]

  at com.crystaldecisions.sdk.occa.managedreports.ps.internal.CacheReportSource.sendRequest(CacheReportSource.java:1796) [cereports.jar:14.1.2.1171]

  at com.crystaldecisions.sdk.occa.managedreports.ps.internal.CacheReportSource.getPage(CacheReportSource.java:1283) [cereports.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.PageListener.renderContentLocally(PageListener.java:377) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.PageListener.getPage(PageListener.java:178) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.PageListener.updatePage(PageListener.java:120) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.UpdatePageEvent.processListener(UpdatePageEvent.java:47) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.ViewerBroadcaster.broadCastEvent(ViewerBroadcaster.java:136) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.ViewerBroadcaster.broadcast(ViewerBroadcaster.java:110) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.event.EventQueue.processEvents(EventQueue.java:53) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.component.ViewerContainer.processEvents(ViewerContainer.java:1421) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doEventProcessing(WorkflowController.java:353) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doLifecycle(WorkflowController.java:255) [webreporting.jar:14.1.2.1171]

  at com.businessobjects.report.web.WorkflowController.doAsyncLifecycle(WorkflowController.java:106) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerUpdater._processHttpRequest(CrystalReportViewerUpdater.java:61) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.ServerControl.processHttpRequest(ServerControl.java:345) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doUpdate(CrystalReportViewerServlet.java:206) [webreporting.jar:14.1.2.1171]

  at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(CrystalReportViewerServlet.java:194) [webreporting.jar:14.1.2.1171]

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]

 

 

12:27:41,286 INFO  [webreporting.javascript] (http-localhost-127.0.0.1-8080-6) 890415142 ShowReportProcessingDialog

12:27:41,601 INFO  [webreporting.javascript] (http-localhost-127.0.0.1-8080-6) 890415142 Update InteractiveParams

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: rowIndex

$
0
0

Hello,

 

I'm trying to upgrade from an older version of the Java CR libraries to Crystal Reports for Eclipse 2.

I downloaded the latest version, replaced all the jar files and then tried to open a report like this

ReportClientDocument doc = new ReportClientDocument()

doc.open("c:
report.rpt")

 

This gives me the following error:

 

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: rowIndex---- Error code:-2147467259 Error code name:failed

 

caused by: java.lang.NoSuchFieldError: rowIndex at

com.crystaldecisions.reports.valuegrid.ValueGridFormulaFunctions.ValueGridObjectFunctionFactory$GridValueAtFunction

 

Does anyone know how to get rid of this error?

 

Kind regards,

 

Dennis Westra

Unable to Set Custom Paper size setting of 15 (width) x 12 (Height) using J

$
0
0

Hi,

 

   

     I am unable to print the report using the custom paper size setting of  15 (width) x 12 (Height)  with printer friendly fonts so that we can print on Line or dot matrix printer.

     This problem is not solved from last 3 months and we dont get help anywhere.

 

     We are using Java with Crystal Report XI R2 design for the same. 

 

                       ITable table=null;

DatabaseController dbCtrl=null;

ReportClientDocument oReportDoc=null;

try {

String reportName=fileName;

 

oReportDoc=new ReportClientDocument();

oReportDoc.open(reportName,0);

dbCtrl = oReportDoc.getDatabaseController ();

rs=ad.sqlStringBigST(query);

table = dbCtrl.getDatabase ().getTables ().getTable (0);

dbCtrl.setDataSource (rs, table.getName(), "Runtimeres");

Object oreportSource=oReportDoc.getReportSource();

IReportSource reportSource=(IReportSource)oreportSource;

PrintReportOptions printOptions = new PrintReportOptions();

printOptions.setPrinterName("EPSON FX-2175 ESC/P");

printOptions.setPaperSize(PaperSize.useDefault);

options.setPaperSource(PaperSource.manual);

oReportDoc.getPrintOutputController().printReport(printOptions);

 

} catch (Exception e) {

System.err.println(e.toString());

}

 

}

           

 

Please let me know what is the solution for the same.

 

Regards,

Raj

Has anyone successfully implemented the JSF Viewer with Facelets?

$
0
0

We have recently started integrating Crystal into one of our web apps that is using JSF + Facelets + Seam.

 

I've built a taglib for the jsf viewer and configured it in web.xml and faces-config. I'm pulling an IReportSource from a backing bean using com.crystaldecisions.reports.sdk.ReportClientDocument  and that is using a .rpt file stored on a directory. This all seems to be working, as I can step through the code and see the IReportSource being generated.

 

However, when the page loads, I am seeing the crystal javascript being converted in the page source, but nothing is loading on the page. 

 

Has anyone seen an issue similar to this tied to Facelets? I've seen numerous documentation on Crystal and JSP, but very little on JSF  or Facelets.

 

Has anyone been able to get a setup like this or similar to work properly?

 

 

I've also noticed an error when adding the viewer:

 

java.io.IOException: Recover report client document state failed.

at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.readExternal(SourceFile:1492)

at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.readExternal(SourceFile:131)

at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)

 

I believe this to be related to me switching over to the serializable ReportClientDocument: com.crystaldecisions.sdk.occa.report.application.ReportClientDocument  versus using the nonserializable version.

 

When using the non-serializable version, I am seeing a constructor issue with the JPEReportSource

 

Exception: java.io.InvalidClassException: com.crystaldecisions.reports.reportengineinterface.JPEReportSource; no valid constructor

 

Has anyone seen this issue before or able to offer any suggestions?

Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available!

$
0
0

Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available for Download!

 

Download site for the Crystal Reports Java Runtime, Eclipse Installation package, and Eclipse All-In-One package are available here:

 

[http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp]

 

You no longer need to register to download CR4E updates.

 

To use the Eclipse Update Manager, start the Eclipse IDE,  go to Help -> Software Updatesu2026 and ensure you've added the following site:

 

[http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/update_site]

 

Fixed issues with Release Update 8 are listed here:

 

http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/cr4ev2_readme.pdf

 

Sincerely,

 

Ted Ueda

Viewing all 893 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>