Jump to content
Changes to the Jaspersoft community edition download ×

Report working fine in 4.5 fails in 5.6


g.laporte

Recommended Posts

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

  • 4 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...