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

The characters display error when export PDF file?

$
0
0

Dear all,

 

I am facing with the problem when i used CR4E vs 2.0 to design crystal report and used JRC to show report. I key-in on report with unicode font to display the VietNamese language. When i exported my report to PDF file then characters can't display right. Some characters change to "?" symbol.

The font i use when key-in the character is Arial.

 

Please help me to solve this problem or explain for me to got others way.

Thank you so much

 

Tuan Pham


Error while running Java application using Crystal Reports 2011

$
0
0

Hello,

 

I would like to ask for your help.

 

Environment details:

 

  • Java based standalone application in Development environment.

  • Crystal Reports 2011 (no SP applied)

  • Oracle 11g ( 32 bit client installed)

  • Win7 64 bit OS.

        

Workflow:

 

While running the java application, which will display the reports I am getting the below mentioned error. I guess that is because I am missing the Crystal runtimes (Correct me if I am wrong).

 

I know that CR2011 do not have any sdks/ jar available for deployment. In this case, which runtimes should I be using? Does installing CR2011 be enough in the development box?

 

Please provide me the link from which I can download the same.

 

Let me know if I need to provide more details on this. Any suggestions are most welcome.

 

Thank You.

 

-


     

 

 

Code used:

 

reportClientDoc = new ReportClientDocument();

System.err.println("Opening the Report ");

reportClientDoc.open(REPORT_PATH, 0);

// this is where the error or exception is thrown

 

_Error: _

 

log4j:WARN No appenders could be found for logger (com.crystaldecisions.reports.reportdefinition.ReportDocument).

log4j:WARN Please initialize the log4j system properly.

com.crystaldecisions.sdkreport.lib.ReportSDKException: com/businessobjects/reports/jdbinterface/common/DBException---- Error code:-2147467259 Error code name:failed

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

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

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

                at com.crystaldecisions.proxy.remoteagent.RemoteAgent.<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.report.application.ClientDocument.if(SourceFile:504)

                at com.crystaldecisions.sdk.report.application.ClientDocument.open(SourceFile:669)

                at com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)

                at rp.batch.bo.RpJRCExportReport.runReportExport(RpJRCExportReport.java:517)

                at rp.batch.bo.RpSchedReportRun.process(RpSchedReportRun.java:163)

                at rp.batch.bo.RpSchedReportRun.drive(RpSchedReportRun.java:240)

                at rp.batch.bo.RpSchedReportRun.main(RpSchedReportRun.java:265)

Caused by: java.lang.NoClassDefFoundError: com/businessobjects/reports/jdbinterface/common/DBException

                at com.crystaldecisions.reports.queryengine.Session.a2(SourceFile:244)

                at com.crystaldecisions.reports.datafoundation.DataFoundation.do(SourceFile:376)

                at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.do(SourceFile:111)

                at com.crystaldecisions.reports.dataengine.datafoundation.CreateDataConnectionCommand.new(SourceFile:81)

                at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)

                at com.crystaldecisions.reports.common.Document.a(SourceFile:203)

                at com.businessobjects.reports.reportconverter.v12.e.a(SourceFile:442)

                at com.businessobjects.reports.reportconverter.v12.e.a(SourceFile:231)

                at com.businessobjects.reports.reportconverter.v12.d.m(SourceFile:192)

                at com.businessobjects.reports.reportconverter.v12.f.if(SourceFile:210)

                at com.businessobjects.reports.reportconverter.v12.V12SaveLoader.a(SourceFile:242)

                at com.businessobjects.reports.loader.ReportLoader.a(SourceFile:205)

                at com.businessobjects.reports.sdk.JRCReportLoader.a(SourceFile:137)

                at com.businessobjects.reports.sdk.JRCReportLoader.a(SourceFile:76)

                at com.businessobjects.reports.sdk.requesthandler.ReportDocumentRequestHandler.a(SourceFile:136)

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

                ... 12 more

Caused by: java.lang.ClassNotFoundException: com.businessobjects.reports.jdbinterface.common.DBException

                at java.net.URLClassLoader1.run(URLClassLoader.java:200)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

                at sun.misc.LauncherAppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

                at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

                ... 28 more

What is J2EE Stack ?

$
0
0

Hi,

 

Anyone pls explain Wht exactly is J2EE Stack?

 

Regards,

Hari

ERROR: getOutputStream() has already been called for this response

$
0
0

<font size="2"><p align="left">I am trying to export a pdf from a jsp page using the crystal report viewer. The jsp is deployed in a .war archive on JBoss 4.0.4. The PDF comes up fine, but each time I make the request I get the error listed below from the JBOSS console. Can anyone explain what is going wrong? How do I make thie message go away?</p><p align="left">&#160;</p><p align="left">16:33:50,966 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception</p></font><u><font size="2" color="#000080">java.lang.IllegalStateException</font></u><font size="2">: getOutputStream() has already been called for this response</font><font size="2"> <p align="left">at org.apache.catalina.connector.Response.getWriter(<u><font size="2" color="#000080">Response.java:599</font></u><font size="2">)at org.apache.catalina.connector.ResponseFacade.getWriter(</font></p></font><u><font size="2" color="#000080">ResponseFacade.java:195</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jasper.runtime.JspWriterImpl.initOut(<u><font size="2" color="#000080">JspWriterImpl.java:124</font></u><font size="2">)at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(</font></p></font><u><font size="2" color="#000080">JspWriterImpl.java:117</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jasper.runtime.PageContextImpl.release(<u><font size="2" color="#000080">PageContextImpl.java:191</font></u><font size="2">)at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(</font></p></font><u><font size="2" color="#000080">JspFactoryImpl.java:115</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(<u><font size="2" color="#000080">JspFactoryImpl.java:75</font></u><font size="2">)at org.apache.jsp.rptFBATAG_002dviewer_jsp._jspService(</font></p></font><u><font size="2" color="#000080">rptFBATAG_002dviewer_jsp.java:164</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jasper.runtime.HttpJspBase.service(<u><font size="2" color="#000080">HttpJspBase.java:97</font></u><font size="2">)at javax.servlet.http.HttpServlet.service(</font></p></font><u><font size="2" color="#000080">HttpServlet.java:810</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jasper.servlet.JspServletWrapper.service(<u><font size="2" color="#000080">JspServletWrapper.java:332</font></u><font size="2">)at org.apache.jasper.servlet.JspServlet.serviceJspFile(</font></p></font><u><font size="2" color="#000080">JspServlet.java:314</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jasper.servlet.JspServlet.service(<u><font size="2" color="#000080">JspServlet.java:264</font></u><font size="2">)at javax.servlet.http.HttpServlet.service(</font></p></font><u><font size="2" color="#000080">HttpServlet.java:810</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(<u><font size="2" color="#000080">ApplicationFilterChain.java:252</font></u><font size="2">)at org.apache.catalina.core.ApplicationFilterChain.doFilter(</font></p></font><u><font size="2" color="#000080">ApplicationFilterChain.java:173</font></u><font size="2">)</font><font size="2"> <p align="left">at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(<u><font size="2" color="#000080">ReplyHeaderFilter.java:96</font></u><font size="2">)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(</font></p></font><u><font size="2" color="#000080">ApplicationFilterChain.java:202</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.core.ApplicationFilterChain.doFilter(<u><font size="2" color="#000080">ApplicationFilterChain.java:173</font></u><font size="2">)at org.apache.catalina.core.StandardWrapperValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardWrapperValve.java:213</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.core.StandardContextValve.invoke(<u><font size="2" color="#000080">StandardContextValve.java:178</font></u><font size="2">)at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(</font></p></font><u><font size="2" color="#000080">SecurityAssociationValve.java:175</font></u><font size="2">)</font><font size="2"> <p align="left">at org.jboss.web.tomcat.security.JaccContextValve.invoke(<u><font size="2" color="#000080">JaccContextValve.java:74</font></u><font size="2">)at org.apache.catalina.core.StandardHostValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardHostValve.java:126</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.valves.ErrorReportValve.invoke(<u><font size="2" color="#000080">ErrorReportValve.java:105</font></u><font size="2">)at org.apache.catalina.core.StandardEngineValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardEngineValve.java:107</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.connector.CoyoteAdapter.service(<u><font size="2" color="#000080">CoyoteAdapter.java:148</font></u><font size="2">)at org.apache.coyote.http11.Http11Processor.process(</font></p></font><u><font size="2" color="#000080">Http11Processor.java:869</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(<u><font size="2" color="#000080">Http11BaseProtocol.java:664</font></u><font size="2">)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(</font></p></font><u><font size="2" color="#000080">PoolTcpEndpoint.java:527</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(<u><font size="2" color="#000080">MasterSlaveWorkerThread.java:112</font></u><font size="2">)<p>at java.lang.Thread.run(<u><font size="2" color="#000080">Thread.java:595</font></u><font size="2">)</font></p></font></p></font>

The types of the parameter field and parameter field current values are not compatible.----

$
0
0

HI,

 

I am attempting to set report parameters in my .jsp code via URL parameters.

 

I am able to set the report name, server connection dynamically however when attempting to set the Parameters I receive:

 

com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: The types of the parameter field and parameter field current values are not compatible.---- Error code:-2147213303 Error code name:invalidParameterField

 

The parameter on the report is a String Type, named for this example p1.

 

The value that p1 represents is LERAD

 

My code:

 

String stringValue = request.getParameter("p1");

CRJavaHelper.addDiscreteParameterValue( clientDoc, "","p1", stringvalue);

returns the above mentioned error.

 

I have tried:

String stringValue = (String)request.getParameter("p1");

which returns the above error

And;

String stringValue = new String(request.getParameter("p1")).toString();

 

which returns

 

java.lang.NullPointerException

java.lang.String.<init>(Unknown Source)

org.apache.jsp.callReport_jsp._jspService(callReport_jsp.java:105)

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

javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

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

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

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

javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

 

I notice that the CRjavaHelper.java declares this addDiscreteParameterValue as accepting an Object type for the newValue.

 

Any ideas???

 

 

Error finding JNDI name

$
0
0

Hi,

            I am getting the following error. I cannot change the database setings. I am using

Crystal reports for eclipse 2.0 jars. I can change when I was using com.businessobjects.sdks_.jrc_.11.8.0_11.8.5.v1197.zip jars. As it is not supporing Excel export I moved to the Crystal reports for eclipse 2.0  version .   I am setting the following properties.

 

        propertyBag.put("Server Name", propertyBag.get("SERVERNAME"));

        propertyBag.put("Database DLL", propertyBag.get("Database_DLL"));

        propertyBag.put("Server Type", propertyBag.get("Server_Type"));

        propertyBag.put("Database Name", propertyBag.get("DATABASE_NAME"));

        propertyBag.put("Connection URL", propertyBag.get("CONNECTION_URL"));

        propertyBag.put("Database Class Name", propertyBag.get("DATABASE_CLASS_NAME"));

         

        String TRUSTED_CONNECTION = "false";

        String USE_JDBC = "false";

        String JNDI_OPTIONAL_NAME = "";

        propertyBag.put ("JNDIOptionalName", JNDI_OPTIONAL_NAME);

        propertyBag.put ("Trusted_Connection", TRUSTED_CONNECTION);

        propertyBag.put ("Use JDBC", USE_JDBC);

 

Can anyone tell me the solution for this problem? I need it . Please help me.

 

 

 

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error finding JNDI name (ESFBYDEV)---- Error code:-2147467259 Error code name:failed

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)

     at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)

     at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)

     at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)

     at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)

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

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

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

     at com.crystaldecisions.sdk.occa.report.application.DatabaseController.logonEx(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.DatabaseController.logon(Unknown Source)

     at com.pass.component.CRJAdapter.switch_tables(CRJAdapter.java:283)

     at com.pass.component.CRJAdapter.switchTablesToDB(CRJAdapter.java:228)

     at com.pass.component.CRJAdapter.createReportPDF(CRJAdapter.java:118)

     at CRJAdapterMain.main(CRJAdapterMain.java:34)

Caused by: com.crystaldecisions.reports.common.JndiNotFoundException: Error finding JNDI name (ESFBYDEV)

     at com.crystaldecisions.reports.queryengine.Connection.a(Unknown Source)

     at com.crystaldecisions.reports.queryengine.Connection.bv(Unknown Source)

     at com.crystaldecisions.reports.queryengine.Connection.bv(Unknown Source)

     at com.crystaldecisions.reports.queryengine.Connection.va(Unknown Source)

     at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(Unknown Source)

     at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.a(Unknown Source)

     at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.long(Unknown Source)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)

     ... 20 more

Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Error finding JNDI name (ESFBYDEV)

     at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)

     at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(Unknown Source)

     ... 27 more

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error finding JNDI name (ESFBYDEV)---- Error code:-2147467259 Error code name:failed

     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)

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

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

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

     at com.pass.component.CRJAdapter.createReportPDF(CRJAdapter.java:122)

     at CRJAdapterMain.main(CRJAdapterMain.java:34)

Caused by: com.crystaldecisions.reports.common.JndiNotFoundException: Error finding JNDI name (ESFBYDEV)

     at com.crystaldecisions.reports.queryengine.Connection.a(Unknown Source)

     at com.crystaldecisions.reports.queryengine.Connection.bv(Unknown Source)

     at com.crystaldecisions.reports.queryengine.Connection.bv(Unknown Source)

     at com.crystaldecisions.reports.queryengine.Connection.va(Unknown Source)

     at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(Unknown Source)

     at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(Unknown Source)

     at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(Unknown Source)

     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(Unknown Source)

     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(Unknown Source)

     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(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)

     ... 6 more

Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Error finding JNDI name (ESFBYDEV)

     at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)

     at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(Unknown Source)

     ... 32 more

Event ID ( 34700 ) in Source ( BusinessObjects_crystalras ) cannot be found

$
0
0

Hi,

 

I have this error on the event viewer of my Win server 2003 SP2:

 

-


The description for Event ID ( 34700 ) in Source ( BusinessObjects_crystalras ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Transport error: Invalid object reference.

-


 

Somebody know why and what is the solution?

Thanks for help.

Java Plugin Viewer with Crystal Reports 2008

$
0
0

Hello,

 

I am trying to use the Java Plugin Viewer with Crystal Reports, but I have some problems. The ActiveX Viewer works well, but as I want to use the reports in other browsers, I need the Java viewer.

 

I have a Visual Basic 6 application, and, instead of including SmartViewerActiveX.asp, I have included JavaPluginViewer.asp. I have taken this file from an older version of Crystal, and I am changing the values on it (I have done the same with the ActiveX Viewer, without problems). This is the main code of the file:

 

<OBJECT

    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"

    width="100%"

    height="100%"

    codebase="/crystalreportviewers11/JavaPlugin/Win32/j2re-1_4_2_04-windows-i586-p.exe#Version=1,4,0,0">

    <param name=type value="application/x-java-applet;version=1.4">

    <param name=code value="com.crystaldecisions.ReportViewer.ReportViewer">

    <param name=codebase value="/crystalreportviewers11/JavaViewer/">

    <param name=archive value="ReportViewer.jar">

    <param name=Language value="en_US">

    <param name=ReportName value="RDCrptserver11.asp">

    <param name=CanDrillDown value="true">

    <param name=HasExportButton value="true">

    <param name=HasGroupTree value="true">

    <param name=ShowGroupTree value="true">

    <param name=HasPrintButton value="true">

    <param name=HasRefreshButton value="true">

    <param name=HasTextSearchControls value="true">

    <param name=HasZoomControl value="true">

    <param name=HasSearchExpert value="false">

    <param name=HasSelectExpert value="false">

    <param name=ShowLogo value="false">

</OBJECT>

 

 

I know how to change all the values of this object so it works with Crystal2008 except one: the codebase.

I have gone to IIS, and under the virtual folder "crystalreportviewers12" I don't see any JavaPlugin folder, there's only the JavaViewer folder, and there isn't any .exe inside...

 

So, where can I find the .exe for the codebase?

 

I have tried searching the web for a tutorial or something, but I haven't seen anything for Crystal 2008.

 

Can anyone help me?

 

Thank you very much!


Intergration of crystal server with JAVA IDE

$
0
0

Hi,

 

I want to ask that is there any way by which we can connect our java ide like eclipse to crystal server.

If anyone know then please let me know that how it can be achieved.

 

Thanks,

Facing issues in crystal reports while download and on Navigation buttons

$
0
0

Hi,

 

We have brought up the setup for Crystal Report 2011, connected it to SQL 2008 DB and are able to view the reports. But we are facing 2 issues:

 

1. On click of Download button, the URL gets changed to below and we get a blank screen.

http://localhost:9080/CrystalReportViewerHandler

 

2. For reports which have more than 1 page, on click on “Next” button, it’s not proceeding to next page. Instead a pop message is displayed to the user as below:

“The viewer is unable to connect with the CrystalReportViewerServlet that handles asynchronous requests. Please ensure that the Servlet and Servlet-Mapping have been properly declared in the application’s web.xml file”

 

 

We have verified that our entries are proper in web.xml.

 

 

<context-param>

<param-name>crystal_servlet_uri</param-name>

<param-value>/CrystalReportViewerHandler</param-value>

</context-param>

<servlet>

<servlet-name>CrystalReportViewerServlet</servlet-name>

<servlet-class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>CrystalReportViewerServlet</servlet-name>

<url-pattern>/CrystalReportViewerHandler</url-pattern>

</servlet-mapping>

 

 

Kindly let us know if anyone has any inputs.

Barcode i25

$
0
0

Hi

 

I need to print a report with some barcode (Interleaved 2of5). How can I do it with Crystal Reports (CR4E)?

 

Suggestions please

JRCExportReport.java runtime error

$
0
0

I'm working with the sample code provided in the Java JRC Desktop Export Report Disk PDF.zip file. My goal is to expand on the code to develop a standalone desktop app to export reports to pdf. I'm using jar files from the crjava-runtime_12.2.213.zip file. The code compiles, however I receive the following runtime errors below. If someone could point me in the right direction that would be great. I'm running Red Hat Enterprise Linux 6.2 and the jdk1.6.0_31 jdk.

 

log4j:WARN No appenders could be found for logger (com.businessobjects.reports.sdk.JRCCommunicationAdapter).

log4j:WARN Please initialize the log4j system properly.

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- 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)

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

    at com.crystaldecisions.reports.sdk.PrintOutputController.export(SourceFile:54)

    at JRCExportReport.main(JRCExportReport.java:45)

Caused by: java.lang.NullPointerException

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

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

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

    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:1422)

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

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

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

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

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

    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:1944)

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

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

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

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

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

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

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

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

    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)

    ... 5 more

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?

Rajaraman

$
0
0

We are using Crystal Reports v11.5.9.1076. In this, when we create a report by connecting “Oracle Server” for database connection, we referred a VIEW and selected required columns/fields. With this, we are able to preview the output result successfully.


The issue is when we add a parameter (either it is a string or any other data type), during the preview, the parameter window pop-up.

After keying in the VALID input value in the input parameter window and if I press ENTER key,  the parameter window pop-up again and the earlier keyed in value is blank (as the pop-up window reloads). This input parameter window pop-up goes infinite loop. Only option to come out of this input parameter window is, we have to Close the pop-up window, which will show blank output in the preview screen. Also, would like to add a word – in the input parameter window, when I key in a value for input parameter and click OK button, it is NOT considered at all!!

 

Can you help me on this

JVM running out of memory - Large reports

$
0
0

We are utilizing the Java crystal API to create reports in our application and when our customers run the reports in WebSphere Application Server, they end up crashing the JVM because the reports are taking far too much memory to run.  Also, we are having HORRIBLE performance problems when running the reports in the JVM. 

 

How do we figure out how to solve these issues with Crystal Reports?  We cannot be the only company to have these sorts of problems.

 

Our setup is:

 

WebSphere 6.1 or 7

Platforms supported are IBM System i or Windows Server

Databases supported are IBM System i or Windows SQL Server 2005.

 

Some of our reports are created directly from the database and some are using POJO's as datasources.  For us, it doesn't seem to matter and we still run out of memory.

 

Hopefully somebody can point us in the right direction.

 

Thank you,

Shawn


Crystal Reports Javabean connectivity -Invalid argument provided. Details P

$
0
0

read the pdf which gives clear instructions about how to do the javabean connectivity. below are my crconfig settings. used the same class as provided in the example. using wondows vista. could this be an issue

 

 

gives me an error'

 

Invalid argument provided. Details Please choose a javabean class.

 

<JavaDir>C:\j2sdk1.4.2_12\jre\bin</JavaDir>

<JavaBeansClassPath>C:\CrystalReportsJavaBeans</JavaBeansClassPath>

Problem modifying the connection details in a Report when using Weblogic 12

$
0
0

Hi

 

I have a j2ee application that uses the Java Reporting Component (JRC). At runtime, the code programmatically changes the connection type and schema name of a crystal report before running it. The connection that was used when designing the report is replaced with new JNDI parameters pointing to a Weblogic/Oracle datasource.

 

The application works perfectly when using Weblogic 11, but the same code and report fails when deployed to Weblogic 12.

 

I used Version 12.2.207.916 of the JRC, and updating  to the most current version I could find (12.2.217) did not solve the problem.

 

The code snippet below shows how the connection and schema name is replaced for each of the tables in the report (not all the code is shown here)...

 

        PropertyBag propertyBag = new PropertyBag();
        propertyBag.put("Database DLL", "crdb_jdbc.dll");
        propertyBag.put("JNDI Datasource Name", jndiName);
        propertyBag.put("Initial Context", "");


            while (tableList.hasNext()) {
                ITable table = tableList.next();
                                                :
                                                :
                ITable tableNew = (ITable) table.clone(true);
                IConnectionInfo connectionInfo = table.getConnectionInfo();
                connectionInfo.setAttributes(propertyBag);
                connectionInfo.setKind(ConnectionInfoKind.SQL);
                tableNew.setQualifiedName(newQualifier + "." + table.getName());
                tableNew.setConnectionInfo(connectionInfo);
                dbController.setTableLocation(table, tableNew);
                                                :
          }

 

The setTableLocation() function throws the following exception ...

 

2014-05-13 16:46:27,173 ERROR [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)']  JRCCommunicationAdapter         detected an exception: Unexpected database connector error
                at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2409)
                at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
                at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
                at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
                at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
                at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
                at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
                at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
                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.an.a(SourceFile:108)
                at com.crystaldecisions.sdk.occa.report.application.b0.if(SourceFile:148)
                at com.crystaldecisions.sdk.occa.report.application.b0.b(SourceFile:95)
                at com.crystaldecisions.sdk.occa.report.application.bb.int(SourceFile:96)
                at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:151)
                at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)
                at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2159)
                at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:543)
                at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:3898)
                at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(SourceFile:2906)
                at com.systest.reporting.engine.crystal.CrystalReportEngine.replaceConnection(CrystalReportEngine.java:523)
                at com.systest.reporting.engine.crystal.CrystalReportEngine.changeDataSource(CrystalReportEngine.java:449)
                at com.systest.CrystalReportPane.setReportDataSourceDetails(CrystalReportPane.java:170)
                at com.systest.CrystalReportPane.commandLoad(CrystalReportPane.java:136)
                at com.systest.ReportRunner.CrystalReport.Load(CrystalReport.java:401)
                at com.systest.ReportRunner.SaveReportToFile(ReportRunner.java:1385)


Any idea what I can do to fix this ?

 

Thanks in advance!

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,

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

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

Viewing all 893 articles
Browse latest View live


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