谁在插件或演示版中使用grailsflow?

时间:2010-06-09 06:13:29

标签: java grails grails-plugin

Grailsflow似乎在Grails 1.2或更高版本中被破坏(截至2010年1月),在'demo'和插件风格中都是如此。有没有人在那里使用它?已将代码从插件中移出到我的BootStrap.groovy中,因此应用程序将启动。

@see jcatalog forum post

但仍需要解决或解决所有视图中的错误。   请参阅下面的堆栈跟踪:

org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag : java.lang.NullPointerException: Cannot set property 'common' on null object at /Users/saleram/.grails/1.2.1/projects/dataentry/plugins/grailsflow-core-1.0-rc1/grails-app/views/process/list.gsp:20

    at java.lang.Thread.run(Thread.java:613)

Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag : java.lang.NullPointerException: Cannot set property 'common' on null object at /Users/saleram/.grails/1.2.1/projects/dataentry/plugins/grailsflow-core-1.0-rc1/grails-app/views/process/list.gsp:20

    at Users_saleram__grails_1_2_1_projects_dataentry_plugins_grailsflow_core_1_0_rc1_grails_app_views_process_list_gsp$_run_closure1.doCall(Users_saleram__grails_1_2_1_projects_dataentry_plugins_grailsflow_core_1_0_rc1_grails_app_views_process_list_gsp:27)

    at Users_saleram__grails_1_2_1_projects_dataentry_plugins_grailsflow_core_1_0_rc1_grails_app_views_process_list_gsp$_run_closure1.doCall(Users_saleram__grails_1_2_1_projects_dataentry_plugins_grailsflow_core_1_0_rc1_grails_app_views_process_list_gsp)

    at Users_saleram__grails_1_2_1_projects_dataentry_plugins_grailsflow_core_1_0_rc1_grails_app_views_process_list_gsp.run(Users_saleram__grails_1_2_1_projects_dataentry_plugins_grailsflow_core_1_0_rc1_grails_app_views_process_list_gsp:41)

    ... 1 more

Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NullPointerException: Cannot set property 'common' on null object

    ... 4 more

Caused by: java.lang.NullPointerException: Cannot set property 'common' on null object

    at GrailsflowI18nTagLib$_closure1.doCall(GrailsflowI18nTagLib.groovy:30)

    ... 4 more

1 个答案:

答案 0 :(得分:1)

该错误是因为它无法加载消息的资源包。我将它们移到默认的messages.properties文件中并相应地修改了GSP。现在应用程序启动正常,我可以正常访问页面,但仍然有一些错误如下..

Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'execute' on target class [class NodeActivatorJob] failed; nested exception is groovy.lang.MissingPropertyException: No such property: updateProcessService for class: ProcessManagerService
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:273)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    ... 1 more
Caused by: groovy.lang.MissingPropertyException: No such property: updateProcessService for class: ProcessManagerService
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:49)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassGetPropertySite.getProperty(PogoMetaClassGetPropertySite.java:50)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:241)
    at ProcessManagerService.sendEvent(ProcessManagerService.groovy:359)
    at ProcessManagerService$sendEvent$0.callCurrent(Unknown Source)
    at ProcessManagerService.sendEvent(ProcessManagerService.groovy:279)
    at ProcessManagerService$$FastClassByCGLIB$$b8eb8e77.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
    at ProcessManagerService$$EnhancerByCGLIB$$8e9fc43f.sendEvent(<generated>)

有没有人能够设置演示版?