Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatible return type issue #35

Open
kennethhyk opened this issue Feb 23, 2017 · 0 comments
Open

incompatible return type issue #35

kennethhyk opened this issue Feb 23, 2017 · 0 comments

Comments

@kennethhyk
Copy link

kennethhyk commented Feb 23, 2017

I am working on a grails 3 (version 3.2.3) project where it needs to convert a gsp into a pdf. I tried to use the rendering plugin provided by grails. I imported the plugin using:
compile 'org.grails.plugins:rendering:2.0.3'
in my build.gradle file
and in my controller i used:
ByteArrayOutputStream bytes = pdfRenderingService.render(template: "/templates/pdf_PI", model: [proformaInvoice: proformaInvoice])
to render the pdf. The service is injected using def pdfRenderingService

however i m getting this error

grails-app/controllers/chsam/re/ProformaInvoiceController.groovy: -1: The return type of java.lang.Object getPdfRenderingService() in chsam.re.ProformaInvoiceController is incompatible with grails.plugins.rendering.pdf.PdfRenderingService in grails.plugins.rendering.RenderingTrait. At [-1:-1] @ line -1, column -1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant