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

Calling Standalone Crystal Report(2008) from a windows Java Program

$
0
0

This is a very basic question. How do i invoke a Crystal Report(Standalone) 2008 by writing a simple Java Program.

 

The intent of the java program is to Call the report and run the report to generate a pdf file. Nothing more than that !

 

I do see a API all around with JSP's but i'm looking for a Windows Java Program. I'm very new to API so any guidance is appreciated!!


Error code:-2147467259 Error code name:failed Java desktop application

How to switch database connection at runtime in crystal reports using java swing

$
0
0

Please help. I am developing a swing application that can open reports made using crystal reports xi. What Im trying to do is to open a report and pass the connection info to that report so that I can dynamically change the database of the report. But for some reason it is not working and the report still produces the information from the database that it was initially set up. Can someone please tell me what I did wrong?  Btw when I try using  com.crystaldecisions.sdk.occa.report.application.ReportClientDocument, I get a server not found error. But when I try to use import com.crystaldecisions.reports.sdk.ReportClientDocument; It's not working. I am not sure what a report server is and I dont think I set it up on my computer. Please help. Here is my code:

 

import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
ReportClientDocument rpt =  new ReportClientDocument();        rpt.open(reportPath+fileName, 0);        Fields fields = null;                IConnectionInfo connInfo = rpt.getDatabaseController().getConnectionInfos(null).getConnectionInfo(0);                 PropertyBag innerProp = connInfo.getAttributes();            innerProp.clear();                        PropertyBag propertyBag = new PropertyBag();            propertyBag.put("Server Type", "JDBC (JNDI)");            propertyBag.put("Database DLL", "crdb_jdbc.dll");            propertyBag.put("Database Class Name", "com.mysql.jdbc.Driver");            propertyBag.put("Use JDBC", "true");            propertyBag.put("Server Name", DBConnect.getServer());            propertyBag.put("Generic JDBC Driver Behavior", "No");            propertyBag.put("URI", "!com.mysql.jdbc.Driver!jdbc:mysql://"+DBConnect.getServer()+":"+DBConnect.getPort()+"/"+DBConnect.getDatabase()+"!ServerType=29!QuoteChar=`");                    connInfo.setAttributes(innerProp);            connInfo.setPassword(DBConnect.getPassword());            connInfo.setUserName(DBConnect.getUsername());                                                        int replaceParams = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB;        rpt.getDatabaseController().replaceConnection(rpt.getDatabaseController().getConnectionInfos(null).getConnectionInfo(0), connInfo, fields, replaceParams);

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

CR XI R2 JRC: Error loading database connector (driverImpl.DriverLoader)

$
0
0

Hello!

 

I developed a report with CR XI R2 SP6 Designer that uses native XML.  Everything in the report seems to be fine...in the preview of my report, all data looks correct.

 

When trying to review the report with the JRC thick client ReportViewerBean, I get the following error just as the report is about to be displayed:

 

Error loading database connector.  The class 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader' could not be accessed.

 

I went through about ten or so previous threads about this error, but none of the solutions are working for me.

 

I'm using NetBeans to develop and debug, and I have CrystalDatabaseConnector.jar added to my project libraries, and I can view the class com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader in the NetBeans object browser.

 

Some of the posts I viewed mention a different jar for this DriveLoader class.  Is there something wrong with the version of CrystalDatabaseConnector.jar that I have?  Do I need an updated jar?  Does this jar rely on another jar that might be missing? I've been through the jar list in the CR XI R2 JRC deployment guide pdf, but I just don't see that I'm missing anything.

 

Thanks for any suggestions!

 

Edited by: Joseph Huber on Mar 9, 2010 2:00 AM

"Can't find resource for bundle java.util.PropertyResourceBundle" error

$
0
0

I just upgraded my webapps to use CR4E SP1. Every time I view a report, I get the following error. What am I missing?

 

[2009-05-08 10:49:56,826] ERROR com.crystaldecisions.reports.common Failed to load the resource 'InternalFormatterException' from the bundle java.util.PropertyResourceBundle@d5f6e9.

java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key InternalFormatterException

     at java.util.ResourceBundle.getObject(ResourceBundle.java:384)

     at java.util.ResourceBundle.getString(ResourceBundle.java:344)

     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.do(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.ReportSource.export(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)

     at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)

     at com.businessobjects.report.web.event.bh.a(Unknown Source)

     at com.businessobjects.report.web.event.o.a(Unknown Source)

     at com.businessobjects.report.web.event.bw.broadcast(Unknown Source)

     at com.businessobjects.report.web.event.am.a(Unknown Source)

     at com.businessobjects.report.web.a.t.if(Unknown Source)

     at com.businessobjects.report.web.e.a(Unknown Source)

     at com.businessobjects.report.web.e.a(Unknown Source)

     at com.businessobjects.report.web.e.a(Unknown Source)

     at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)

     at com.crystaldecisions.report.web.viewer.ReportExportControl.a(Unknown Source)

     at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)

     at org.apache.jsp.reporting.exporter_jsp._jspService(exporter_jsp.java:248)

     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

     at java.lang.Thread.run(Thread.java:619)

 

Open crystal report in JSP using crystal reports 13 (BO XI 4.0)

$
0
0

Hello,

I am trying read old reports 10 reports in J2EE web application without any luck.  Can someone direct me to appropriate documentation or example helping me get this working.

 

I have copied the lib folders (plus external ) all jar files to WEB-INF/lib folder.  I still get the errors in not finding -

com.crystaldecisions.report.web.viewer.*;

com.crystaldecisions.report.web.viewer.CrystalReportViewer

 

 

What am I doing wrong?

 

Thanks,

 

Amarendra

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?


Error code:-2147467259 Error code name:failed Java desktop application

What is J2EE Stack ?

$
0
0

Hi,

 

Anyone pls explain Wht exactly is J2EE Stack?

 

Regards,

Hari

Exception in Crystal Reports when using Java 7 and TimSort

$
0
0

Hi

 

We have encountered an error when using the Java export functionality of Crystal Reports. This error occurs using the latest runtime available for download (crjava-runtime_12.2.219).

 

The error only occurs when using JRE that implements sorting via TimSort (i.e. JRE version 7 and higher). The stack trace is as follows:

 

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Comparison method violates its general contract!---- Error code:-2147467259 Error code name:

Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!

at java.util.TimSort.mergeHi(TimSort.java:895)

at java.util.TimSort.mergeAt(TimSort.java:512)

at java.util.TimSort.mergeForceCollapse(TimSort.java:453)

at java.util.TimSort.sort(TimSort.java:250)

at java.util.Arrays.sort(Arrays.java:1512)

at java.util.ArrayList.sort(ArrayList.java:1454)

at java.util.Collections.sort(Collections.java:175)

at com.crystaldecisions.reports.formatter.formatter.lightmodel.cellmodel.FCMCellModel.a(SourceFile:1234)

at com.crystaldecisions.reports.formatter.formatter.lightmodel.cellmodel.FCMCellModel.if(SourceFile:498)

at com.crystaldecisions.reports.formatter.formatter.lightmodel.cellmodel.FCMCellModel.<init>(SourceFile:245)

at com.crystaldecisions.reports.formatter.formatter.lightmodel.FCMFormattedContentModeller.getCellModel(SourceFile:157)

at com.crystaldecisions.reports.exporters.excel.Excel97Exporter.processFormattedContent(SourceFile:206)

at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:104)

at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247)

at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)

at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)

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

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(

 

This error does not occur when TimSort is disabled via the system property -Djava.util.Arrays.useLegacyMergeSort=true.

 

The issue is probably caused by a bug in the Crystal Reports engine where the comparator used at "com.crystaldecisions.reports.formatter.formatter.lightmodel.cellmodel.FCMCellModel.a(SourceFile:1234)" is not implemented correctly. We have seen this exception occur when a comparator does not return 0 when comparing two equal objects. This leads to the impossible scenario that a < b and b < a for two equal objects a and b. This bug is exposed by the TimSort algorithm that was introduced in Java 7. The comparator which may be causing the issue is com.crystaldecisions.reports.formatter.formatter.lightmodel.cellmodel.CMCellObject.LessCompComparator.

 

Is this a bug and is it likely to be fixed in a future release of the Crystal Reports Java runtime?

Call Crystal Report from java applet

$
0
0

I'm new to Crystal Report and  my web application is based on classic ASP. I was told that latest version of CR does not support the ASP. Since I don't want to change current source codes, I'm considering calling Crystal Report from java applet. Is there any reference or sample source code for that?

Java Desktop Application and Crystal Reports

$
0
0

Hi everyone,

 

I have used Crystal Reports XI Release 2 to create a report which uses an odbc connection and I would like to simply print this report through java code.

 

My application is simply a java desktop application (no web services, no jsp) developed in Eclipse Galileo 3.5. I don't know which is really the best SDN to use.

 

I've tried JRC but I think JRC needs a jdbc connection, please correct me if I'm wrong. If JRC can work in this case could you please help me configure it as it seems everything else failed.. I did follow the instructions in configuring the CRConfig.xml but I get errors concerning stylesheets..

 

I've also tried loading a dll and then calling it's native methods. However I am not sure if I need to implement them (as I've read in so many forums) or if they can be simply be called after declaring them in a java class.

 

Also, I don't know if it complicates things or not but I have CR4E 2.0 also installed in eclipse, but the sdk is not added in the current project I'm working on. Hoping there are no conflicts between that and anything I've tried so far.

 

Can this SDK be used for printing a report that was created in Crystal Reports XI?

 

I'm currently examining this and the viewers sdk. Most  of the documentation, however refer to web services or jsp implementations so they are a bit confusing.

 

So recap!

 

Objective: Printing a crystal report (XI release 2) from a java desktop application (eclipse IDE) using an odbc connection

Question: Which JDK can be used and how can it be configured?

 

 

Thanks

 

Chara

Too many open files under Linux

$
0
0

We are using Crystal for eclipse libraries version:  12.2.204 <br>

<br>

<br>

 

In our application we are generating .PDF files of the reports in huge quantities. Generation is usualy done on one report, from which circa 500-1000 pdf files are created.

<br>

<br>

In our Windows envirnoment, code responsible for generating the PDF files ( or printing ) works as expected. We can create ( print)  even 10 000 .pdf files and no exception occurs. Under Linux system we  are able to export from 500-600 files and then the same error occurs.

<br>

<br>

In addition the excpetion is thrown also, when normal printing is done, there is not need to export it as pdf. Crystal prints 500-600 files and then the same exception is thrown.

<br><br><br>

 

 

Report found in /home/pos2tst/test/StdLabel.rpt

java.io.FileNotFoundException: /opt/jdk1.6.0_16/jre/lib/fonts/LucidaSansRegular.ttf (Too many open files)

        at java.io.RandomAccessFile.open(Native Method)

        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.reader.OpenTypeReader.case(SourceFile:387)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.reader.d.a(SourceFile:122)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.reader.OpenTypeReader.getFontTable(SourceFile:414)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.tables.NameTable.<init>(SourceFile:223)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.reader.OpenTypeReader.int(SourceFile:216)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.a.int(SourceFile:52)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.OpenTypeFontManager.a(SourceFile:419)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.OpenTypeFontManager.do(SourceFile:301)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.OpenTypeFontManager.if(SourceFile:66)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.FontEmbeddingSession.if(SourceFile:101)

        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.FontEmbeddingSession.a(SourceFile:92)

        at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.r.a(SourceFile:591)

        at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.r.if(SourceFile:422)

        at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.PdfDocumentManager.a(SourceFile:332)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:1333)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:1288)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:768)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:717)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:671)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.if(SourceFile:621)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.a(SourceFile:1950)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.a(SourceFile:446)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.byte(SourceFile:322)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.a(SourceFile:302)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.b.a(SourceFile:217)

        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.PdfAdvancedDocumentModeller.a(SourceFile:177)

        at com.crystaldecisions.reports.exporters.page.pdf.AdobePDFExporter.a(SourceFile:252)

        at com.crystaldecisions.reports.exporters.page.pdf.AdobePDFExporter.processFormattedContent(SourceFile:200)

        at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:104)

        at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247)

        at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)

        at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)

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

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

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

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

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

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

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

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

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

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

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

        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 de.psi.pjf.pos.plugin.plugin4crystal.ExportPrintJob.export(ExportPrintJob.java:147)

        at de.psi.pjf.pos.plugin.plugin4crystal.ExportPrintJob.performJob(ExportPrintJob.java:56)

        at de.psi.pjf.pos.plugin.plugin4crystal.JobManager.performJob(JobManager.java:144)

        at de.psi.pjf.pos.plugin.plugin4crystal.CrystalPluginImpl.setParameter(CrystalPluginImpl.java:99)

        at de.psi.pjf.pos.plugin.CrystalJavaPlugin.sendCommand(CrystalJavaPlugin.java:656)

        at de.psi.pjf.pos.plugin.CrystalJavaPlugin.run(CrystalJavaPlugin.java:486)

 

<br><br><br><br>

 

<b>OR</b>

 

<br><br>

 

Can not open document: /home/pos2tst/test/StdLabel.rpt co

m.crystaldecisions.sdk.occa.report.lib.ReportSDKException

: Report file /home/pos2tst/test/StdLabel.rpt not found--

-- Error code:-2147215356 Error code name:fileNotOpened

com.crystaldecisions.sdk.occa.report.lib.ReportSDKExcepti

on: Report file /home/pos2tst/test/StdLabel.rpt not found

-


Error code:-2147215356 Error code name:fileNotOpened

        at com.businessobjects.reports.sdk.JRCAdapterSDKE

xception.a(SourceFile:92)

        at com.businessobjects.reports.sdk.JRCCommunicati

onAdapter.a(SourceFile:2297)

        at com.businessobjects.reports.sdk.JRCCommunicati

onAdapter.<init>(SourceFile:273)

        at com.businessobjects.sdk.erom.jrc.a.<init>(Sour

ceFile:43)

        at com.businessobjects.sdk.erom.jrc.ReportAgentFa

ctory.createAgent(SourceFile:46)

        at com.crystaldecisions.proxy.remoteagent.RemoteA

gent$a.<init>(SourceFile:703)

        at com.crystaldecisions.proxy.remoteagent.RemoteA

gent.a(SourceFile:662)

        at com.crystaldecisions.proxy.remoteagent.RemoteA

gent.a(SourceFile:632)

        at com.crystaldecisions.sdk.occa.report.applicati

on.ClientDocument.if(SourceFile:504)

        at com.crystaldecisions.sdk.occa.report.applicati

on.ClientDocument.open(SourceFile:669)

        at de.psi.pjf.pos.plugin.plugin4crystal.JobTempla

te.openReport(JobTemplate.java:303)

        at de.psi.pjf.pos.plugin.plugin4crystal.JobManage

r.openJob(JobManager.java:120)

        at de.psi.pjf.pos.plugin.plugin4crystal.JobManage

r.performJob(JobManager.java:137)

        at de.psi.pjf.pos.plugin.plugin4crystal.CrystalPl

uginImpl.setParameter(CrystalPluginImpl.java:99)

        at de.psi.pjf.pos.plugin.CrystalJavaPlugin.sendCo

mmand(CrystalJavaPlugin.java:656)

        at de.psi.pjf.pos.plugin.CrystalJavaPlugin.run(Cr

ystalJavaPlugin.java:486)

        at java.lang.Thread.run(Thread.java:619)

Caused by: com.businessobjects.reports.sdk.JRCAdapterSDKE

xception: Report file /home/pos2tst/test/StdLabel.rpt not

found

        at com.businessobjects.reports.sdk.JRCReportLoade

r.a(SourceFile:155)

        at com.businessobjects.reports.sdk.JRCReportLoade

r.a(SourceFile:76)

        at com.businessobjects.reports.sdk.requesthandler

.ReportDocumentRequestHandler.a(SourceFile:136)

        at com.businessobjects.reports.sdk.JRCCommunicati

onAdapter.<init>(SourceFile:227)

        ... 14 more

Caused by: java.io.FileNotFoundException: /home/pos2tst/t

est/StdLabel.rpt (Too many open files)

        at java.io.RandomAccessFile.open(Native Method)

        at java.io.RandomAccessFile.<init>(RandomAccessFi

le.java:212)

        at com.businessobjects.reports.loader.ReportLoade

r.a(SourceFile:102)

        at com.businessobjects.reports.loader.ReportLoade

r.a(SourceFile:186)

        at com.businessobjects.reports.sdk.JRCReportLoade

r.a(SourceFile:137)

        ... 17 more

 

<br><br><br>

 

 

 

We were trying to increase the size of maximum openned files under Linux, but it does not help.

<br><br>

As a suggestion i'd like to add that very similar exception occures when we want to install Crystal for Eclipse under Eclipse in Linux envirnoment. We saw that only version, we can download from your site is Windows version.

We got this exception under Fedora 6 and CentOS 4 distributions

 

Edited by: PSI_AG on Jan 13, 2010 9:27 AM - other case of this same exception added

Couldn't find 3-letter language code for en_en---- Error code:-2147467259

$
0
0

Hi team,

 

While i am trying to export the reportclient document to PDF , i am facing problem.

I am using crystal reports 2008.

 

Java code used to export to PDF :

      

ByteArrayInputStream byteInputStream = (ByteArrayInputStream) reportClientDocument.getPrintOutputController().export(ReportExportFormat.PDF);

 

 

Error shown up in logs due to the above line

 

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Couldn't find 3-letter language code for en_en---- Error code:-2147467259 Error code name:failed

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

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

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

 

Need help to find the root cause of this issue and the appropriate fix.

 

Thanks


Passing a Fields value to the CrystalReportViewer object created in htmlviewerbridge.jsp?

$
0
0

Hi everyone,

 

Is there any way to pass report parameters to OpenDocument, specifically passing a Fields value to the CrystalReportViewer object created in htmlviewerbridge.jsp?

 

I tried to store the Fields object in session, then pass it into the CrystalReportViewer object (using setParameterFields method) right before processHttpRequest is called. However, when I call openDocument.jsp, the Viewer always prompts for the parameters..

 

I'm sure the Fields object is valid, because if I create a CrystalReportViewer object in a different viewReport.jsp file, it accepts the Fields object, doesn't prompt for parameters and works fine. I'm guessing the HTTP Session doesn't make it to htmlviewerbridge.. Can I get around this?

 

Thank you.

 

Tuan

 

Edited by: Tuan Bui on Aug 20, 2008 11:22 PM

Crystal Reports font issue

$
0
0

Hello,

 

Background:

We use Oracle BI publisher as our reporting engine. We are now planning add Crystal support as 1 more option for reporting to our product.

We save the pdf file exported from BI publisher as blob in db.The blob data is then read later as byte[] and these bytes are sent directly to printer via WinPrintService.

 

For crystal we did the same.

I am exporting crystal report into pdf file format using crystal java api(cr4e) and saving the pdf data as blob in db so that it can be viewed/sent to printer later.

For printing pdf blob data from Crystal report, The file is printed and I can see the layout but instead of alphanumeric characters, I see blocks [] like characters.

 

I am not sure what is the exact reason but I think below listed issues may be at work here:

  1. If I compare the Pdf properties for the files(saving blob data as pdf files in the file system) generated by old oracleBI publisher and Crystal reports, both of them has font data and works correctly-when saving the blob data as pdf files in file system.

       I can see the font used by BI has encoding as ANSI while the font used by Crystal report(TrueType)  has 'built-in' encoding. Not sure if this is the              reason.

       Can we set the encoding of the fonts programmatically or using Crystal designer? I could not find anything in the api docs or in Crystal designer.

 

  1. If I send the blob data to CutePDFWriter, I can see that for both the files, the pdf generated by the CutePDFWriter for BI publisher as well as Crystal does not have font data associated with in the pdf properties which probably means that the blob that gets saved in db for BI publisher pdf has font data while pdf for Crystal does not.

 

Can you please let me know how can I overcome this?

getOutputStream() has already been called for this response

$
0
0

HI Team,

 

Please help me to resolve the below error :

 

The Error Stack Trace is:


java.lang.IllegalStateException: getOutputStream() has already been called for this response

    at org.apache.catalina.connector.Response.getWriter(Response.java:638)

    at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:214)

    at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)

    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)

    at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:190)

    at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:126)

    at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:80)

    at org.apache.jsp.ExportPdf_jsp._jspService(ExportPdf_jsp.java:155)

    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)

    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)

    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

    at java.lang.Thread.run(Thread.java:662)

 

 

Thanks

Penchal

Crystal Reports Update to latest SP18

$
0
0

Hello,

 

I installed the latest update SP18 and now all the dotted lines in the charts in my reports don't show up correct. They are no more dotted but long separate lines. See the screenshot. The yellow marked line should be dotted (the others too).

 

dotted.jpg

 

This happens in all graphs and charts that uses dotted lines. I could reproduce this behaviour on Windows and Linux Environment.

 

Before this update I worked with version 2.0.14.r1877 and I had no such problems.

 

I had to uninstall the update, because I have a lot of charts and all of them show this wrong behaviour.


Is there any bugfix available?


Best regards

Martin

Error in Crystal Report 2008 SP1

$
0
0

Hi,

 

I created a parmeterized sql command template(.rpt)

example:

SQL  'SELECT Name FROM Employee WHERE EmployeeID = {?EmpID}' in the template command with parameter as EmpID.

 

We are generating the report Using RAS 2008 sp1.

and getting the below error while opening the template using java code.

 

ReportClientDocument rptClientDocument = new ReportClientDocument();

    rptClientDocument.setReportAppServer(rasServer);

 

    if (!myTemplatesPath.startsWith("rassdk://")) {

      myTemplatesPath = "rassdk://" + myTemplatesPath;

    }

    rptClientDocument.open(myTemplatesPath + template,

        OpenReportOptions._openAsReadOnly);

 

StackTrace

:

com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: XML serialization failed.---- Error code:-2147467259 Error code name:failed

at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.v.a(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.v.a(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.ab.a(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)

at com.tpt.thresher.powerxl.server.reportdata.userreport.UserReportGenerator.initReport(UserReportGenerator.java:203)

at com.tpt.thresher.powerxl.server.reportdata.userreport.UserReportGenerator.generateReport(UserReportGenerator.java:472)

at com.tpt.thresher.powerxl.server.reportdata.reports.ReportManager.generateUserReport(ReportManager.java:3391)

at com.tpt.thresher.powerxl.server.reportdata.dao.UserReportDAO.generateReport(UserReportDAO.java:33)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.tpt.thresher.powerxl.server.reportdata.concurrent.ReportDistributedProcessor.processReport(ReportDistributedProcessor.java:494)

at com.tpt.thresher.powerxl.server.reportdata.concurrent.ReportDistributedProcessor.process(ReportDistributedProcessor.java:450)

at com.tpt.thresher.common.concurrent.SpringDistributedProcess.onMessage(SpringDistributedProcess.java:413)

at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)

at weblogic.jms.client.JMSSession.execute(JMSSession.java:3964)

at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)

at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

Caused by: java.lang.IndexOutOfBoundsException

at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1048)

at com.crystaldecisions.xml.serialization.XMLObjectSerializer.load(Unknown Source)

... 24 more

Caused by:

java.lang.IndexOutOfBoundsException

at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1048)

at com.crystaldecisions.xml.serialization.XMLObjectSerializer.load(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.v.a(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.v.a(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.ab.a(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)

at com.tpt.thresher.powerxl.server.reportdata.userreport.UserReportGenerator.initReport(UserReportGenerator.java:203)

at com.tpt.thresher.powerxl.server.reportdata.userreport.UserReportGenerator.generateReport(UserReportGenerator.java:472)

at com.tpt.thresher.powerxl.server.reportdata.reports.ReportManager.generateUserReport(ReportManager.java:3391)

at com.tpt.thresher.powerxl.server.reportdata.dao.UserReportDAO.generateReport(UserReportDAO.java:33)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.tpt.thresher.powerxl.server.reportdata.concurrent.ReportDistributedProcessor.processReport(ReportDistributedProcessor.java:494)

at com.tpt.thresher.powerxl.server.reportdata.concurrent.ReportDistributedProcessor.process(ReportDistributedProcessor.java:450)

at com.tpt.thresher.common.concurrent.SpringDistributedProcess.onMessage(SpringDistributedProcess.java:413)

at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)

at weblogic.jms.client.JMSSession.execute(JMSSession.java:3964)

at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)

at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

 

Error is coming only for RAS 2008 only but in case of enter prise XI  version it is running fine .

suggestions please.

 

 

Regards,

Adyut

Viewing all 893 articles
Browse latest View live


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