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

No signature of method: webserver.ReportingService.fillHeader() is applicable for argument types: (java.util.ArrayList) #28

Open
ricardoul opened this issue Jan 1, 2015 · 0 comments

Comments

@ricardoul
Copy link

Hello I´m facing the issue when running that sample code

package webserver

import pl.touk.excel.export.*

class ReportingService {

static transactional = false
def caseReport(cases){
    def caseList = cases
    def withProperties2 = ['id']

    new XlsxExporter('/tmp/report5.xlsx').with {
        fillHeader(withProperties2)
        add(caseList, withProperties2)
        save()  
    }
}

}
The error is:
groovy.lang.MissingMethodException: No signature of method: webserver.ReportingService.fillHeader() is applicable for argument types: (java.util.ArrayList) values: [[id]]
at webserver.ReportingService$_caseReport_closure1$$EP09jwx6.doCall(ReportingService.groovy:17)
at webserver.ReportingService$$EP09jwx6.caseReport(ReportingService.groovy:16)
at webserver.ReportingService$$EP09jwx6.generateCaseReport(ReportingService.groovy:34)
at webserver.ReportingServiceTests.testSearchCasesReport(ReportingServiceTests.groovy:26)

My BuildConfig:
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits "global", {
excludes 'xercesImpl', 'xml-apis', 'xerces'
}

plugins {
runtime ":hibernate:$grailsVersion"
runtime ":jquery:1.8.3"
runtime ":resources:1.2"

    // Uncomment these (or add new ones) to enable additional resources capabilities
    //runtime ":zipped-resources:1.0"
    //runtime ":cached-resources:1.0"
    //runtime ":yui-minify-resources:0.1.5"
    runtime ":excel-export:0.2.1"
    build ":tomcat:$grailsVersion"

}

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