Jump to content
  • Unable to create subreports using this adapter

    Assigned User morlandin
    CategoryBug report
    Component: 34666
    ResolutionNo Change Required



    I tried to create a subreport using this webservice adapter. Here both main report and sub report are using the WebService Adapter. I am getting an error as "Verb cannot be null". If I remove subreport, the main report works fine.


    Please suggest.




    User Feedback

    Recommended Comments

    Changed Status from New to Feedback Requested

    Hi,from what you say I suppose the subreport is not able to correctly use the webservice data adapter. Did you try to specify it via the usage of the net.sf.jasperreports.data.adapter property? You could point to an exported XML file of the data adapter itself.By the way you did not attached any JRXML sample and data adapter that can be used to test the issue.Regards,Massimo.
    Link to comment
    Share on other sites

    Changed Resolution from Open to No Change Required

    Changed Status from Feedback Requested to Resolved

    Changed Assigned User from - to @morlandin

    Hi, in JasperReports the only type of data adapter that can share the connection between more dataset/subreport is the JDBC one. With any other data adapter you need to pass manually the correct parameters. The error you got means that the DA is not finding the configuration parameters.In case of the WebService you can refer to this tutorial http://community.jaspersoft.com/wiki/webservice-datasource-documentation , the section SubReport and Additional Datasets.As said by massimo one option is to specify on the subreport the default data adapter property for the subreport, you can do it in the property view by opening the subreport and setting in the report properties the value of the default data adapter.Otherwise in the main report you can pass the parameters to the subreport element one by one or with the parameters map expression, the easiest way is to pass directly the map of the parameter of the main report if they are configured in the same way, in this case you can use directly $P{REPORT_PARAMETERS_MAP} as parameters map expression.
    Link to comment
    Share on other sites

  • Create New...