Skip to Content
0
Former Member
Sep 27, 2011 at 05:40 PM

Error while running Java application using Crystal Reports 2011

1402 Views

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