Jump to content
Changes to the Jaspersoft community edition download ×

JasperReports 4.5.1 using JRE 1.6 method in Report Virtualization


jtotaf

Recommended Posts

We've just upgraded to JasperReports 4.5.1.   I'm now getting a NoSuchMethodError when trying to create an 108,000 line text report using JRSwapFileVirtualizer and exporting it using JRCsvExporter.

It appears that the VirtualizableElementList class is using a binarySearch method only available in JRE 1.6.

According to the Ultimate guide JRE 1.3 is all that is required.  Our platform uses JRE 1.5 and cannot be upgraded at this time.

Can you supply a patch or a workaround.

Here is the stack trace:
Exception in thread "main" java.lang.NoSuchMethodError: java.util.Arrays.binaryS
earch([iIII)I
        at net.sf.jasperreports.engine.base.ElementsBlockList.blockIndex(Virtual
izableElementList.java:711)
        at net.sf.jasperreports.engine.base.ElementsBlockList.get(VirtualizableE
lementList.java:586)
        at net.sf.jasperreports.engine.base.VirtualizableElementList.get(Virtual
izableElementList.java:96)
        at net.sf.jasperreports.engine.base.VirtualizableElementList.get(Virtual
izableElementList.java:54)
        at net.sf.jasperreports.engine.export.JRGridLayout.createWrappers(JRGrid
Layout.java:958)
        at net.sf.jasperreports.engine.export.JRGridLayout.<init>(JRGridLayout.j
ava:143)
        at net.sf.jasperreports.engine.export.JRCsvExporter.exportPage(JRCsvExpo
rter.java:53)
        at net.sf.jasperreports.engine.export.JRAbstractCsvExporter.exportReport
ToWriter(JRAbstractCsvExporter.java:240)
        at net.sf.jasperreports.engine.export.JRAbstractCsvExporter.exportReport
(JRAbstractCsvExporter.java:187) 

Thanks!

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

Our documentation needs to be updated.

We are going to make it more clear to our users that we are going to keep compatibility with JRE 1.6.

Note that 1.5 has reached End Of Life years ago. If you still need to use it, then you'll need to use old JR as well, or adapt newer versions to 1.5. on your own.

"Java SE 5.0 is in its Java Technology End of Life (EOL) transition period. The EOL transition period began April 8th, 2007 and will complete October 8th, 2009, when Java SE 5.0 will have reached its End of Service Life (EOSL)."

 

Thank you,

Teodor

 

Link to comment
Share on other sites

  • 2 weeks later...

Here you go!

Please note that this comes with no guarantee of any kind either implied or explicit.

The files I changed were HibernateDataAdapterService.java, SpringHibernateDataAdapterService.java, VirtualizableElementList.java and XmlaDataAdapterService.java.

All the best!

Link to comment
Share on other sites

  • 11 months later...

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...