I am using iReport 4.5.1 linux version. I have found one issue in this version while using subreports and bean datasource.
While adding subreports to main reports the generated xml code from tool doesn't contain class="net.sf.jasperreports.engine.JasperReport" attribute for tag even though it is set in design mode. While i am trying to use this subreport in Java coding it throws error saying "Exception in thread "main" net.sf.jasperreports.engine.JRException: Could not load object from location : net.sf.jasperreports.engine.JasperReport@487ae0".
Then i manually added class attribute to xml file and java code works properly. Even if i add manually whenever i save in ireport or shift between design and xml mode the class attribute i added disappears.
Unless class attribute is present my code doesn't work. I don't know whether this is iReport bug or is there any way around to solve this issue.
I have attached the working and error code screenshot for your reference.