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

Where can I download the latest JRC jars?

$
0
0

Where the heck do I go to download the latest Jars for JRC? I am not using Eclipse. I just want the jars. All the links I've found send me back to the old site. When and what was the last release?


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

What is J2EE Stack ?

$
0
0

Hi,

 

Anyone pls explain Wht exactly is J2EE Stack?

 

Regards,

Hari

Encoding problem while exporting report to PDF

$
0
0

Hi everyone

 

We have a trouble while exporting Crystal Report with Russian or Lithuanian characters to pdf on web. Some of Lithuanian characters are exported as question marks u201C?u201D. The problem is only if  the web project is running on Linux server. On Windows export and printing works fine.

We have tried both WebSphere Application Server 6.1.0.19 and Sun GlassFish v2.1 installed on Ubuntu 9.04.

 

For the testing purpose we have downloaded u201CAll-In-Oneu201D Eclipse installation (u201CEclipse Ganymede 3.4.1 with Crystal Reports for Eclipseu201D) from businessobjects.com (Crystal Reports for Eclipse version is 2.0.2.r678).

We have done the simplest Crystal Reports Web Project and created a new report with some Lithuanian characters (the report doesn't use any external data source). Then using u201CCrystal Reports->Create Report Viewer JSP...u201D wizard we created standard JSP page with Java code snippets to render report. Then we exported this web project as EAR and run it both on Linux and Windows servers. On Windows server export to pdf works fine, but on Linux not. The same problem is with Russian characters.

 

Could anybody help, how to set charset or encoding used while printing and exporting report to pdf?

 

Thanks in advance

 

Edited by: Judzin on Sep 10, 2009 3:09 PM

report not working in chrome

$
0
0

Hi All,

 

I have report which I am running from my custom java application.

It is working fine in all the browsers except chrome.I mean its showing pdf output in all the browsers except chrome.

In chrome its showing the pdf processing symbol like below but nothing is happening

 

Please suggest what is the problem .

 

Untitled.png

Crystal Reports 2008 SP5 Download

Use XML as data input for Crystal Report for Eclipse

$
0
0

Hi,

 

I am completely new to crystal report and please kindly forgive me if I ask some stupid questions.

Actually, I have searched the forum for the topic and found some related threads, but I still want to

have some responses from crystal report experts on this issue.

 

Our developer tool is IBM RAD 7.0 and it has crystal reports tools installed in it. I want to use

crystal report to solve one of our business solutions. I have the following questions about the

feasbility of this solution:

 

(1). I need to specify data at runtime during report generation. I think using fixed data source

     (for example, SQL query or Stored Procedure) may not fit our needs. I think if crystal report

     can accept XML as input to generate reports at runtime, then it will be perfect. Can CR

     use XML as data source as input?

 

(2). Actually, one of our business requirements is to generate a letter. Can CR do a report

      layout such that a letter format can be achieved? If yes, would you let me know the

      report layout name?

 

(3). We need to export the report into PDF format, I know CR can do PDF output. But can

      CR be controlled to export this into bytes stream? Or the PDF must be saved into a

      physical file?

 

(4) If I need to learn more about CR, which book will you recommend?

 

Thanks in advance for your advice,

Raymond

Database logon failed.Database Vendor Error Code:1005(ReportSDKLogonExcep.)

$
0
0

Hi all,

           I have suffering this error, when I am running my application in IBM Application Server 6. Basically this errors are throughing, when I running the report(which is contains some sub report). But non-sub reports are running fine.  Kindly requested to all, plz help me.

 

my documentation...

1. WASD 5.1.1

2. Oracle 9i

3. CR XI R 2

 

4. Application connected with Crystal Report by JDBC-JNDI.

5. My all reports  developed  with CR 10.

     

com.crystaldecisions.sdk.occa.report.lib.ReportSDKLogonException: Database logon failed. Database Vendor Error Code: 1005---- Error code:-2147467259 Error code name:failed

     at com.crystaldecisions.sdk.occa.report.lib.ReportSDKLogonException.throwReportSDKLogonException(Unknown Source)

     at com.businessobjects.reports.sdk.b.i.if(Unknown Source)

     at com.businessobjects.reports.sdk.b.i.a(Unknown Source)

     at com.businessobjects.reports.sdk.b.i.byte(Unknown Source)

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

 

 

Thanks & Regards,

Sanjay Biswal


"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)

 

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

IConnection classdef exception when running report in websphere-linux env

$
0
0

hi all,

<br><br>

       I am running Websphere 6.1 on a linux environment (Red Hat enterprise 5.5). I am using the Crystal Reports 2008 SDK API to generate the report and I get the following exception.

<br><br>

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects.reports.jdbinterface.connection.IConnection---- 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$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.csdcsystems.amanda.common.CRJavaHelper.getSqlStatement(CRJavaHelper.java:882)

     at com.ibm._jsp._CustomReportParameters._jspService(_CustomReportParameters.java:289)

     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)

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

     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)

     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)

     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)

     at com.csdcsystems.amanda.common.CsdcServletFilter.doFilter(CsdcServletFilter.java:107)

     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)

     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)

     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:848)

     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:691)

     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:588)

     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)

     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)

     at <br>com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:233)<br>

     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3574)

     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)

     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)

     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)

     at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)

     at <br>com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)<br>

     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)

     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)

     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)

     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)

     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)<br><br>

Caused by: java.lang.NoClassDefFoundError: com.businessobjects.reports.jdbinterface.connection.IConnection

     at java.lang.J9VMInternals.verifyImpl(Native Method)

     at java.lang.J9VMInternals.verify(J9VMInternals.java:59)

     at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)

     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)

     ... 42 more<br>

<br><br>

   The code is packaged as an EAR file and this EAR file works fine in a websphere windows environment. So it is not a classpath issue which I am pretty sure of. I also verified that the IConnection class is in a JAR file within the EAR file so no doubts on that front.

<br><br>

    Has anyone else run into this issue? Please feel free to ask any other questions pertaining to the environment which I have where I ran into this issue.

<br><br>

Thanks,<br>

Yogi<br>

 

Edited by: Yogendran.G on Feb 25, 2011 3:37 PM

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!

What is J2EE Stack ?

$
0
0

Hi,

 

Anyone pls explain Wht exactly is J2EE Stack?

 

Regards,

Hari

Embedding DOC's and PDF's dynamically in Crystal Reports

$
0
0

Hi,

 

Is there a way to embedd PDF/word documents dynamically into the Crystal Reports. I do understand we can do that for Images using 'Graphic Lcoation' option but that feature wont work with word docs and Pdf's.

Please let me know if there is any 3rd party utility tool that makes it happen or Can it be coded using any codes like VB/C#/Java etc.

 

I have posted this question in Crystal reports as well. But I want to know if it is programatically possible using Java SDK or not.

 

Thanks

Crystal Reports + J2EE + Websphere Application Server on iSeries/i5/AS400

$
0
0

Dear SAP forums,

 

   We have an AS/400 (AKA i5/iSeries) system and we have Websphere Application Server 6. running our J2EE web application on it.

 

  We are using Crystal Reports 2008 Designer to build our reports, using JDBC to access our DB2 databases and access our data.

 

  After the reports are completed, we want to deploy them to a Struts-enabled, Web-Based application.  I am having enormous difficulty with this configuration.

 

  Is this config even supported?? (AS400 + J2EE + Crystal Reports)?

 

  I am using Crystal Reports sample apps Display Connection Info and Change Database Connection as samples.

 

  Any information anyone can give me will help.

 

Thanks very much,

 

Ryan


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!

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);

What is J2EE Stack ?

$
0
0

Hi,

 

Anyone pls explain Wht exactly is J2EE Stack?

 

Regards,

Hari

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

Viewing all 893 articles
Browse latest View live


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