Quantcast
Viewing all articles
Browse latest Browse all 893

Deploying JRC as stand alone java application.

Hi ,

 

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

 

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

 

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

 

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

 

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

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

        at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.<init>(SourceFile:703)

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

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

        at com.crystaldecisions.sdk.occa.report.application.ClientDocument.if(SourceFile:504)

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

        at com.crystaldecisions.reports.sdk.ReportClientDocument.open(SourceFile:80)

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

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

Caused by: java.lang.NullPointerException

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

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

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

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

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

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

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

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

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

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

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

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

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

 

The above exception occurs in the below line of code.

reportClientDoc.open(REPORT_NAME, 0);

 

Bat Script Used

 

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

set CLASSPATH=%CRYSTALJARS%;

ECHO ON

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

 

 

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

 

Thanks,


Viewing all articles
Browse latest Browse all 893

Trending Articles



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