jasper reports compile template permission error

301 views
Skip to first unread message

Neal, Jerry K

unread,
May 1, 2017, 11:36:54 AM5/1/17
to kfs.us...@kuali.org
Hi Everyone,  

  We recently changed our batch process to not use Ant but Java directly. We have been getting errors on Jasper reports when it compiles the templates (as part of the CAB extract job), something like this:

Caused by: net.sf.jasperreports.engine.JRException: Error saving expressions class file : /opt/dSeries/ESPSystemAgent/classic_1493352441034_52613.java
        at net.sf.jasperreports.engine.util.JRSaver.saveClassSource(JRSaver.java:171)

Caused by: java.io.FileNotFoundException: /opt/dSeries/ESPSystemAgent/classic_1493352441034_52613.java (Permission denied)
        at java.io.FileOutputStream.open0(Native Method)

  It seems to pick a temp directory for compiling it doesn’t have permission for. I recall similar errors from the past, for example: https://jira.kuali.org/browse/KFSOLD-19803?jql=text%20~%20%22jasper%20file%20not%20generated%22, but don’t recall the fix. Maybe setting java.io.tmpdir, but I am puzzled as to why we did not have this problem going through Ant, which creates a nearly identical java command (only difference is we use wildcards in the classpath).

  Anyone else ran into this?

Thanks,
Jerry

Siddartha Savara

unread,
May 3, 2017, 3:25:39 PM5/3/17
to Neal, Jerry K, kfs.us...@kuali.org
We have had something similar in KFS6 (July 2015) Rice 2.x. We had to add the java.io.tempdir to the maven command line as it was building something into the rice jars

Hope that helps if need more info let me know and I'll have to dig through our JIRAs to find it

Sid

--
You received this message because you are subscribed to the Google Groups "Kuali Financials Technical User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kfs.user.tech+unsubscribe@kuali.org.

Reply all
Reply to author
Forward
0 new messages