Jump to content
We've recently updated our Privacy Statement, available here ×

kiet.h.lieng

Members
  • Posts

    3
  • Joined

  • Last visited

kiet.h.lieng's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I have followed the link to turn on phantomjs for pdf rendering: http://community.jaspersoft.com/wiki/phantomjs-libary-jasperreports-serve Am currently recieving this error 2016-03-10 08:39:40,729 ERROR AsyncThumbnailCreatorImpl,pool-14-thread-1:59 - net.sf.jasperreports.engine.JRRuntimeException: java.lang.NullPointerException net.sf.jasperreports.engine.JRRuntimeException: java.lang.NullPointerException at com.jaspersoft.jasperreports.highcharts.charts.ChartGraphics2DHandler.exportElement(ChartGraphics2DHandler.java:52) at net.sf.jasperreports.engine.export.draw.FrameDrawer.draw(FrameDrawer.java:247) at net.sf.jasperreports.engine.export.draw.FrameDrawer.draw(FrameDrawer.java:199) at net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportPage(JRGraphics2DExporter.java:343) at net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportReportToGraphics2D(JRGraphics2DExporter.java:312) at net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportReport(JRGraphics2DExporter.java:237) at net.sf.jasperreports.engine.print.JRPrinterAWT.printPageToImage(JRPrinterAWT.java:285) at net.sf.jasperreports.engine.JasperPrintManager.printToImage(JasperPrintManager.java:286) at com.jaspersoft.jasperserver.api.metadata.common.service.impl.ThumbnailGenerationServiceImpl.obtainImage(ThumbnailGenerationServiceImpl.java:71) at com.jaspersoft.jasperserver.api.metadata.common.service.impl.ThumbnailGenerationServiceImpl.createThumbnail(ThumbnailGenerationServiceImpl.java:50) at com.jaspersoft.jasperserver.api.metadata.common.service.impl.ThumbnailGenerationServiceImpl.createThumbnail(ThumbnailGenerationServiceImpl.java:24) at com.jaspersoft.jasperserver.api.metadata.common.service.impl.AsyncThumbnailCreatorImpl$ThumbnailRunnable.run(AsyncThumbnailCreatorImpl.java:55) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.NullPointerException at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106) at net.sf.jasperreports.renderers.BatikRenderer.ensureSvg(BatikRenderer.java:215) at net.sf.jasperreports.renderers.BatikRenderer.ensureSvg(BatikRenderer.java:237) at net.sf.jasperreports.renderers.BatikRenderer.getDimension(BatikRenderer.java:155) at net.sf.jasperreports.engine.export.draw.ImageDrawer.draw(ImageDrawer.java:130) at com.jaspersoft.jasperreports.highcharts.charts.ChartGraphics2DHandler.exportElement(ChartGraphics2DHandler.java:50) ... 17 more I'm looking for clues as to how to fix this. Please answer if you know the following questions: - Is there anymore specific errors besides this? - is there a way to generate pdf's from commandline? Maybe with ant? So I can see the errors first hand? - has anyone else had trouble turning on phantomjs for rendering pdf rendering purposes? -- Why would I want to use phantomjs? t's related to my previous question that never got answered (http://community.jaspersoft.com/questions/957896/pdf-renderrjs-timing-out)
  2. The officila word is highcharts does not render well on PDF. We ended up reverting to our other chart library and waiting for them to resolve it. So hold tight is the official answer. FWIW we are running on versiond 6.0. It might be fixed on 6.1 but we have not tried it just yet.
  3. Hi there I have a bug on our servers with jaspersoft. I get this error when I try to run jaspersoft to output pdf reports 20 times at once (this is not unusual for us to have 1000s of request to generate reports a day). -------------------------------------- <?xml version="1.0" encoding="UTF-8" standalone="yes"?><errorDescriptor><errorCode>export.execution.rejected</errorCode><message>org.mozilla.javascript.JavaScriptException: Error: Load timeout for modules: highcharts-exporting,highcharts-more http://requirejs.org/docs/errors.html#timeout (com.jaspersoft.jasperreports.highcharts.render.r.js#380)</message></errorDescriptor> -------------------------------------- We have seen a number of these but with different timeouts on highchart references. What we did to get around the other obstacle was to replace the libraries end points with ones hosted on our server and modify the properties accordingly. I'm wondering how I can change the render.r.js links to do the same: The files that we've been modifying does not seem to work but it seems to be a step in the right path: 1. we extracted highchart.jar and modify the component_beans.xml to point to our cdn 2. compress back into jar form 2. restart apache-tomcat Sadly this does not seem to fix the issue and I'm still getting the errors above. Was wondering if anybody has any insight on what component_beans.xml is and how it operates. Currently I can't say with any certainty what I did is effective or even correct but I had to try. Thanks.
×
×
  • Create New...