Кажется, что он не получает правильный метод или сигнатуру. Это уже давно работает, но вчера я получил эту ошибку, и я не знаю, с чего начать.
Я переустановил плагин "export 0.3" и установил новейший Verion "export 0.6" Все попытки были напрасны. Я использую Grails 1.2, Groovy 1.7 и экспорт 0.6. Вот полное сообщение об ошибке и Stacktrace. Спасибо, что ответили мне как можно скорее.
Мой код для экспорта:
<export:formats formats="['excel']" action="exportTable" params="${params}"/>
Сообщение об ошибке a Stacktrace
**Grails Runtime Exception
Error Details**
Message: No signature of method: groovy.xml.MarkupBuilder.div() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, de.andreasschmitt.export.ExportTagLib$_closure1_closure3) values: [[class:export], de.andreasschmitt.export.ExportTagLib$_closure1_closure3@1a3fa82]
Caused by: Error processing GroovyPageView: Error executing tag <g:form>: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <export:formats>: groovy.lang.MissingMethodException: No signature of method: groovy.xml.MarkupBuilder.div() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, de.andreasschmitt.export.ExportTagLib$_closure1_closure3) values: [[class:export], de.andreasschmitt.export.ExportTagLib$_closure1_closure3@1a3fa82] at C:/WORK/sts/CENcon/grails-app/views/analysisConsumption/list.gsp:56 at C:/WORK/sts/CENcon/grails-app/views/analysisConsumption/list.gsp:326
Class: ExportTagLib
At Line: [45]
Code Snippet:
Stack Trace
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <g:form>: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <export:formats>: groovy.lang.MissingMethodException: No signature of method: groovy.xml.MarkupBuilder.div() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, de.andreasschmitt.export.ExportTagLib$_closure1_closure3) values: [[class:export], de.andreasschmitt.export.ExportTagLib$_closure1_closure3@1a3fa82] at C:/WORK/sts/CENcon/grails-app/views/analysisConsumption/list.gsp:56 at C:/WORK/sts/CENcon/grails-app/views/analysisConsumption/list.gsp:326
at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:form>: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <export:formats>: groovy.lang.MissingMethodException: No signature of method: groovy.xml.MarkupBuilder.div() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, de.andreasschmitt.export.ExportTagLib$_closure1_closure3) values: [[class:export], de.andreasschmitt.export.ExportTagLib$_closure1_closure3@1a3fa82] at C:/WORK/sts/CENcon/grails-app/views/analysisConsumption/list.gsp:56 at C:/WORK/sts/CENcon/grails-app/views/analysisConsumption/list.gsp:326
at C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp$_run_closure2.doCall(C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp:145)
at C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp$_run_closure2.doCall(C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp)
at C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp.run(C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp:158)
... 1 more
Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <export:formats>: groovy.lang.MissingMethodException: No signature of method: groovy.xml.MarkupBuilder.div() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, de.andreasschmitt.export.ExportTagLib$_closure1_closure3) values: [[class:export], de.andreasschmitt.export.ExportTagLib$_closure1_closure3@1a3fa82] at C:/WORK/sts/CENcon/grails-app/views/analysisConsumption/list.gsp:56
... 4 more
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <export:formats>: groovy.lang.MissingMethodException: No signature of method: groovy.xml.MarkupBuilder.div() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, de.andreasschmitt.export.ExportTagLib$_closure1_closure3) values: [[class:export], de.andreasschmitt.export.ExportTagLib$_closure1_closure3@1a3fa82] at C:/WORK/sts/CENcon/grails-app/views/analysisConsumption/list.gsp:56
at C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp$_run_closure2_closure15.doCall(C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp:55)
at C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp$_run_closure2_closure15.doCall(C__WORK_sts_CENcon_grails_app_views_analysisConsumption_list_gsp)
... 4 more
Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: groovy.xml.MarkupBuilder.div() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, de.andreasschmitt.export.ExportTagLib$_closure1_closure3) values: [[class:export], de.andreasschmitt.export.ExportTagLib$_closure1_closure3@1a3fa82]
... 6 more
Caused by: groovy.lang.MissingMethodException: No signature of method: groovy.xml.MarkupBuilder.div() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, de.andreasschmitt.export.ExportTagLib$_closure1_closure3) values: [[class:export], de.andreasschmitt.export.ExportTagLib$_closure1_closure3@1a3fa82]
at de.andreasschmitt.export.ExportTagLib$_closure1.doCall(ExportTagLib.groovy:45)
... 6 more