JasperServer-Scheduled Jobs-Saving to n/w drive

Hi All,

             I have created a JasperReport, deployed it on to JASPERSERVER & now i want to schedule it & save the EXCEL & PDF exports to a shared network drive.  Is it possible with JASPERSERVER? I am able to save it to a folder on JASPERSERVER's root, but i want to save it to Shared network drive like M:drive in my office where in everybody has access to it. Any help is appreciated.

 

Thanks,

Ravi

raki1982's picture
Joined: Aug 26 2008 - 2:35pm
Last seen: 15 years 1 month ago

14 Answers:

Saving report job output to a file system (local or remote) is not supported in JasperServer.  It can be implemented as a JasperServer customization, which would of course involve coding.

Regards,

Lucian

lucianc's picture
87271
Joined: Jul 17 2006 - 1:10am
Last seen: 11 hours 6 min ago

oh....can you give me any sample links to customize the Server Code like where exactly i need to change in the code, like can you throw some light on it?

raki1982's picture
Joined: Aug 26 2008 - 2:35pm
Last seen: 15 years 1 month ago

You should start by getting the JasperServer sources and checking the following Java class: jasperserver-api-impl/engine/src/main/java/com/jaspersoft/jasperserver/api/engine/scheduling/quartz/ReportExecutionJob.java

Regards,

Lucian

lucianc's picture
87271
Joined: Jul 17 2006 - 1:10am
Last seen: 11 hours 6 min ago

If it doesn't save to the file system, where does it save the reports to? A database table in mysql?

gabrielinux's picture
Joined: Apr 20 2007 - 8:27am
Last seen: 16 years 5 months ago

Exactly.  The entire JasperServer repository (including report job output files) is persisted into a database.

Report job output files are saved into a table named JIContentResource.

Regards,

Lucian

lucianc's picture
87271
Joined: Jul 17 2006 - 1:10am
Last seen: 11 hours 6 min ago
Huh, that explains why JasperServer gets so slow and even starts breaking after a while, as saved reports start accumulating. Too bad I haven't programmed on Java or I would be able to help.
gabrielinux's picture
Joined: Apr 20 2007 - 8:27am
Last seen: 16 years 5 months ago

Saving of generated report content to the repository does not break things normally or effect performance. Gabriel - what have you been seeing?

 

Sherman

Jaspersoft

swood's picture
24539
Joined: Jun 21 2006 - 12:48pm
Last seen: 10 years 11 months ago
Well, as my users start saving PDF outputs, other reports start to fail. It's almost like MySql performance is affected by report outputs. The same happens with CSV and Excel reports, although at a slower rate than PDF. I am forced to delete saved reports manually every once in a while, or many reports will stop running and scheduled reports will not be e-mailed out.
gabrielinux's picture
Joined: Apr 20 2007 - 8:27am
Last seen: 16 years 5 months ago

Is Saving report job output to a file system (local or remote) not supported in latest version of JasperServer also?

please reply  soon.

 

lokeshbharani's picture
Joined: Jul 31 2009 - 6:56am
Last seen: 14 years 2 months ago
i think not as this is not the idea behind web based reporting.. you might want to try to schedule e-mails containing the reports, and auto planting them in a UNC folder
sjongenelen's picture
Joined: Nov 9 2009 - 1:05am
Last seen: 13 years 10 months ago

Correct - there has been no change in this area.

 

Sherman

Jaspersoft

swood's picture
24539
Joined: Jun 21 2006 - 12:48pm
Last seen: 10 years 11 months ago

 Hi all, 

 

Over these past years, was there any improvement concerning this issue? 

I'm using JasperServer 4.5.0. I would like to know if there's any way to store reports into the filesystem. Wich file should I have to make changes to store sthe reports in the file system instead of the database.

In this post You say that reports are stored in th database in a table called JIContnetResource. I can't find that table... In the version, are they stored in a different table?

 

Thanks in advance,

Rui Rocha

 

desousarocha's picture
Joined: Feb 17 2012 - 3:50am
Last seen: 3 years 9 months ago

Where that JIContentResource table is allocated? any hint any idea? I didn't find any table or any other database in jasperserver.  Once anybody give me the hint where this table exists or in which table this data is stored I will code it to store at the local file system. Please help

 

Shashank Soni

soniecajmer's picture
Joined: Apr 4 2012 - 3:05am
Last seen: 11 years 5 months ago

I have a workaround for this: pull your report from JS and save it to the file system using a cron job.

My report is generated once a day as a PDF. I need this pdf to be on a web server - and don't want it to be regenerated everytime a user wants to see it & our jasper instance is not accessable from outside our domain but this report needs to be.

Previously I had configured anonymous access to the generated pdf file and used php (fopen) to read the file (using http://jasperserver:8080/jasperserver/fileview/fileview/foldername/filename.pdf) and dispatch it on request.

But after upgrade to 4.5 this broke with a NPE. I changed it now using a cron job to pull the file via wget to the web server every morning after the report is generated. 

The report could be stored on any share the cron owner can write to... this would work locally on the server running jasper server as well...



Post Edited by franzkrauth at 17/05/2012 15:13
franzkrauth's picture
Joined: May 19 2008 - 4:35pm
Last seen: 4 years 10 months ago

I've hit your NPE problem, how does your cron job workaround it?

kcd83 - 9 years 10 months ago

Posted the solution in your bug report

\WEB-INF\applicationContext-events-logging.xml
<bean id="accessContext" ...>
<property name="userAuthorityService" ref="${bean.userAuthorityService}"/>

kcd83 - 9 years 10 months ago
Feedback
randomness