g.laporte Posted October 24, 2014 Share Posted October 24, 2014 A report with 13 sub-reports working fine in Jasperserver 4.5 fails in version 5.6 . It's also works fine in the studio 5.6.2. Je job fails when it tryes to show the results. It says there are 339 pages but shows only half of the first one. It works in Jasperserver with parameters generating a shorter report. So I think the problem is due to the number of pages . Here is the beginning of the messages : A report with 13 sub-reports working fine in Jasperserver 4.5 fails in version 5.6 . It's also works fine in the studio 5.6.2. Je job fails when it tryes to show the results. It says there are 339 pages but shows only half of the first one. It works in Jasperserver with parameters generating a shorter report. So I think the problem is due to the number of pages . Here is the list of messages : Error Message net.sf.jasperreports.engine.JRRuntimeException: java.io.NotSerializableException: org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper Error Trace net.sf.jasperreports.engine.JRRuntimeException: java.io.NotSerializableException: org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper at net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer.writeData(JRAbstractLRUVirtualizer.java:626) at net.sf.jasperreports.engine.fill.JRFileVirtualizer.pageOut(JRFileVirtualizer.java:124) at net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer.virtualizeData(JRAbstractLRUVirtualizer.java:582) at net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer.evict(JRAbstractLRUVirtualizer.java:402) at net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer.requestData(JRAbstractLRUVirtualizer.java:548) at net.sf.jasperreports.engine.base.ElementsBlock.ensureData(VirtualizableElementList.java:463) at Link to comment Share on other sites More sharing options...
nthapa Posted November 19, 2014 Share Posted November 19, 2014 Seems like some part of your report is not serializable. JRS stores first 300 report units NOT pages (units could be smaller or greater than pages) to memory by default and serializes rest to the disk. If you report size is great, you can change the maxSize to appropiate number in applicationContext.xml <bean id="fileVirtualizerFactory" class="com.jaspersoft.jasperserver.api.engine.common.service.impl.FileVirtualizerFactory"> <property name="maxSize" value="300"></property> <property name="directory" value="${java.io.tmpdir}"></property> </bean> Link to comment Share on other sites More sharing options...
g.laporte Posted November 20, 2014 Author Share Posted November 20, 2014 It works with 30000 instead of 300 !!! Thank you very much . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now