Custom visualization component using Webservice datasource

0

Hi,

I have a report with a custom visualization component. I am using a webservice datasource (with json data).

I have this error on JasperServerPro :

ERROR AsyncJasperPrintAccessor,pool-6-thread-1:315 - Error during report execution
net.sf.jasperreports.engine.JRRuntimeException: No script provided for the Custom Visualization component.
    at com.jaspersoft.jasperreports.customvisualization.fill.CVFillComponent.loadResource(CVFillComponent.java:455)
    at com.jaspersoft.jasperreports.customvisualization.fill.CVFillComponent.evaluationPerformed(CVFillComponent.java:317)
    at com.jaspersoft.jasperreports.customvisualization.fill.CVFillComponent.evaluateDelayedElement(CVFillComponent.java:244)
    at net.sf.jasperreports.engine.fill.JRFillComponentElement.resolveElement(JRFillComponentElement.java:211)
    at net.sf.jasperreports.engine.fill.JRFillElement.performDelayedEvaluation(JRFillElement.java:987)
    at net.sf.jasperreports.engine.fill.JRFillComponentElement.resolveElement(JRFillComponentElement.java:205)
    at net.sf.jasperreports.engine.fill.ElementEvaluationAction.execute(ElementEvaluationAction.java:69)
    at net.sf.jasperreports.engine.fill.DelayedFillActions.runActions(DelayedFillActions.java:269)
    at net.sf.jasperreports.engine.fill.BaseReportFiller.resolveBoundElements(BaseReportFiller.java:769)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveReportBoundElements(JRBaseFiller.java:1018)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1051)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:290)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:126)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:558)
    at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:923)
    at net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:164)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:879)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1775)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1119)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1048)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:945)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.DiagnosticLoggingContextCompatibleExecutorService$1.run(DiagnosticLoggingContextCompatibleExecutorService.java:61)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: net.sf.jasperreports.engine.JRException: Byte data not found at: etat_avancement_preparation_commandes.min.js.
    at net.sf.jasperreports.repo.RepositoryUtil.getBytesFromLocation(RepositoryUtil.java:210)
    at com.jaspersoft.jasperreports.customvisualization.fill.CVFillComponent.loadResource(CVFillComponent.java:424)
    ... 25 more

 

Is webservice datasource supposed to work with a custom visualization component ?

Thanks in advance.

 

hyanmaz's picture
Joined: Feb 6 2017 - 8:48am
Last seen: 1 month 1 week ago

Here the error is different. It is expecting a script file(.js)

feelme.rohit - 2 years 8 months ago

1 Answer:

0

Hi Hulya,

as mentioned by Rohit in his comment, the issue is not with the data source but with the CVC setup.

See the answer here for more guidance: http://community.jaspersoft.com/questions/845837/jasper-report-custom-vi...

kkumlien's picture
2966
Joined: Jan 22 2015 - 4:36am
Last seen: 4 days 6 hours ago
Feedback
randomness