nidhi.naik Posted August 3, 2017 Share Posted August 3, 2017 I am new in Jasper report In my project I have use the version of jasper report is 6.3.1 and take a datasource as json data sorce.In my report designing portion I have created one subDataset and take one list component . Now i want to use that subDataset into my list component so how this task is achive.I have try to take dataSourceExpression like :<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("property")]]></dataSourceExpression>but its produce the exception like Caused by: java.lang.ClassCastException: net.sf.jasperreports.engine.JREmptyDataSource cannot be cast to net.sf.jasperreports.engine.data.JsonDataSource Link to comment Share on other sites More sharing options...
alexander.nemzew Posted September 11, 2017 Share Posted September 11, 2017 Hallo,In first, check if the default data_adapter has been defined like:<property name="com.jaspersoft.studio.data.defaultdataadapter" value="srcmainresourcesdata_adapter.json"/>if it is not, you get the error message by try to run you report 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