0

Grailsflow 似乎被 Grails 1.2 或更高版本破坏(截至 2010 年 1 月),无论是“演示”还是插件风格。有没有人在使用它?已将插件中的代码移出到我的 BootStrap.groovy 中,因此应用程序将启动。

@see jcatalog 论坛帖子

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

org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException:错误处理 GroovyPageView:错误执行标签:java.lang.NullPointerException:无法在 /Users/saleram/.grails/1.2 的空对象上设置属性“common”。 1/projects/dataentry/plugins/grailsflow-core-1.0-rc1/grails-app/views/process/list.gsp:20

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

原因:org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException:执行标签时出错:java.lang.NullPointerException:无法在 /Users/saleram/.grails/1.2.1 的空对象上设置属性“common” /projects/dataentry/plugins/grailsflow-core-1.0-rc1/grails-app/views/process/list.gsp:20

    在 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)

    在 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)

    在 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 更多

引起:org.codehaus.groovy.runtime.InvokerInvocationException:java.lang.NullPointerException:无法在空对象上设置属性“common”

    ... 4 更多

引起:java.lang.NullPointerException:无法在空对象上设置属性“common”

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

    ... 4 更多

4

1 回答 1

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>)

有没有人能够很好地设置演示?

于 2010-09-30T14:05:59.143 回答