intellij idea - Getting error java.lang.AbstractMethodError on ReportClientDocument.open() call -
i trying autopost crystal report in pdf formate. using ide: intellij gradle
public void runapprovedsuppliersitereport(){ // final config config = configfactory.instance(config.class); //crystalutil.setupjdbcjndi(config.getdatabaseserver(), config.getdatabaseusername(), config.getdatabasepassword(), config.getdatabasejdbcdriver(), config.getdatabasejdbcurl()); final list<string> paramnames = config.getmatches(approved_supplier_site_param_regex); final map<string, string> params = new hashmap<>(); (final string name : paramnames) { final string value = config.getpqp_report_approvedsuppliersite_param_$0_value(name); params.put(name, value); } final reportclientdocument reportdoc = new reportclientdocument(); try { // export pdf final string report = config.getpqp_report_approvedsuppliersite_rpt(); reportdoc.open(report, openreportoptions._openasreadonly); crystalutil.setparamfields(reportdoc, params); final inputstream = reportdoc.getprintoutputcontroller().export(reportexportformat.pdf); // final session session = cmisutil.createsession(config.getpdmsatompuburl(), config.getpdmsuser(), config.getpdmspassword(), config.getpdmsrepositoryid()); final map<string, object> properties = documentmanager.getdocumentproperties( doctype.supplier_reports, docgroup.mqpsd, supplier_report_doc_number, supplier_report_name, new date()); final string prefix = configutil.getenvironmentprefix(config.gettwsenvironmentcode()); final string docname = prefix + string.format(docformat.supplier_reports, pdmsutil.getdateasstring(new date())); final document document = cmisutil.createdocument( session, docname + ".pdf", "", docname, docclass.reports, mediatype.pdf.tostring(), is, -1, properties); monitor.getlogger().info("<- pdms report=" + report + " id=" + document.getid() + " versionseriesid=" + document.getversionseriesid()); } catch (final reportsdkexception e) { string err = e.getmessage(); monitor.getlogger().error("runapprovedsuppliersitereport() " + e.getmessage()); logger.error("runapprovedsuppliersitereport()", e); } catch (final cmisbaseexception e) { monitor.getlogger().error("runapprovedsuppliersitereport() " + e.geterrorcontent()); logger.error("runapprovedsuppliersitereport()", e); } { crystalutil.closequietly(reportdoc); } }
in above code snippet @ line reportdoc.open(report, openreportoptions._openasreadonly);
got following error :
java.lang.abstractmethoderror: com.businessobjects.reports.sdk.jrccommunicationadapter.setproductlocale(ljava/util/locale;)v @ com.crystaldecisions.proxy.remoteagent.z.a(unknown source) @ com.crystaldecisions.sdk.occa.report.application.reportappsession.int(unknown source) @ com.crystaldecisions.sdk.occa.report.application.reportappsession.initialize(unknown source) @ com.crystaldecisions.sdk.occa.report.application.clientdocument.new(unknown source) @ com.crystaldecisions.sdk.occa.report.application.reportclientdocument.new(unknown source) @ com.crystaldecisions.sdk.occa.report.application.clientdocument.open(unknown source) @ com.crystaldecisions.reports.sdk.reportclientdocument.open(sourcefile:80) @ com.processstream.pepsico.pqp.tws.ows.pqpowsjob.runapprovedsuppliersitereport(pqpowsjob.java:264) @ com.processstream.pepsico.pqp.tws.ows.pqpowsjobtest.runapprovedsuppliersitereport_1(pqpowsjobtest.java:36) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ org.junit.runners.model.frameworkmethod$1.runreflectivecall(frameworkmethod.java:47) @ org.junit.internal.runners.model.reflectivecallable.run(reflectivecallable.java:12) @ org.junit.runners.model.frameworkmethod.invokeexplosively(frameworkmethod.java:44) @ org.junit.internal.runners.statements.invokemethod.evaluate(invokemethod.java:17) @ org.springframework.test.context.junit4.statements.runbeforetestmethodcallbacks.evaluate(runbeforetestmethodcallbacks.java:74) @ org.springframework.test.context.junit4.statements.runaftertestmethodcallbacks.evaluate(runaftertestmethodcallbacks.java:82) @ org.springframework.test.context.junit4.statements.springrepeat.evaluate(springrepeat.java:72) @ org.springframework.test.context.junit4.springjunit4classrunner.runchild(springjunit4classrunner.java:231) @ org.junit.runners.blockjunit4classrunner.runchild(blockjunit4classrunner.java:50) @ org.junit.runners.parentrunner$3.run(parentrunner.java:238) @ org.junit.runners.parentrunner$1.schedule(parentrunner.java:63) @ org.junit.runners.parentrunner.runchildren(parentrunner.java:236) @ org.junit.runners.parentrunner.access$000(parentrunner.java:53) @ org.junit.runners.parentrunner$2.evaluate(parentrunner.java:229) @ org.springframework.test.context.junit4.statements.runbeforetestclasscallbacks.evaluate(runbeforetestclasscallbacks.java:61) @ org.springframework.test.context.junit4.statements.runaftertestclasscallbacks.evaluate(runaftertestclasscallbacks.java:70) @ org.junit.runners.parentrunner.run(parentrunner.java:309) @ org.springframework.test.context.junit4.springjunit4classrunner.run(springjunit4classrunner.java:174) @ org.junit.runner.junitcore.run(junitcore.java:160) @ com.intellij.junit4.junit4ideatestrunner.startrunnerwithargs(junit4ideatestrunner.java:117) @ com.intellij.rt.execution.junit.junitstarter.preparestreamsandstart(junitstarter.java:234) @ com.intellij.rt.execution.junit.junitstarter.main(junitstarter.java:74) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ com.intellij.rt.execution.application.appmain.main(appmain.java:144)
i have checked abstract classes methods defined. please let me know if can me in solving error.
void com.businessobjects.reports.sdk.jrccommunicationadapter.setproductlocale(locale)
this method concrete in version of library used compile code, ide happy compile call reference it.
the library present in deployment location different version in method abstract.
this described in javadoc abstractmethoderror
:
thrown when application tries call abstract method. normally, error caught compiler; error can occur @ run time if definition of class has incompatibly changed since executing method last compiled.
Comments
Post a Comment