在 Grails 上使用插件 Activiti 启动 VacationRequestSampleApplication 时出错

发布于 2024-12-22 10:40:44 字数 937 浏览 2 评论 0原文

我是 BPM 新手,我尝试在我自己的 Grails 应用程序上安装 Activiti。

我已经安装了插件和安全插件(Spring security 和 Activiti-spring security),以及 Vacation Request 应用程序。

来自:http://code.google.com/p/grails-activiti -plugin/wiki/VacationRequestSampleApplication

我登录了,当我单击“开始”链接时,出现此错误:

java.lang.NullPointerException: Cannot get property 'id' on null object
    at ActivitiGrailsPlugin$_addActivitiMethods_closure7_closure29.doCall(ActivitiGrailsPlugin.groovy:130)
    at ActivitiGrailsPlugin$_addActivitiMethods_closure7.doCall(ActivitiGrailsPlugin.groovy:126)
    at vacationRequest.VacationRequestController$_closure2.doCall(VacationRequestController.groovy:36)
    at vacationRequest.VacationRequestController$_closure2.doCall(VacationRequestController.groovy)
    at java.lang.Thread.run(Thread.java:662)

I'm new on BPM and I tried to install Activiti on my own Grails application.

I've installed the plugin and the security plugin (Spring security and Activiti-spring security), and also the Vacation Request application.

From : http://code.google.com/p/grails-activiti-plugin/wiki/VacationRequestSampleApplication

I logged in, and when i click on Start link, I got this error :

java.lang.NullPointerException: Cannot get property 'id' on null object
    at ActivitiGrailsPlugin$_addActivitiMethods_closure7_closure29.doCall(ActivitiGrailsPlugin.groovy:130)
    at ActivitiGrailsPlugin$_addActivitiMethods_closure7.doCall(ActivitiGrailsPlugin.groovy:126)
    at vacationRequest.VacationRequestController$_closure2.doCall(VacationRequestController.groovy:36)
    at vacationRequest.VacationRequestController$_closure2.doCall(VacationRequestController.groovy)
    at java.lang.Thread.run(Thread.java:662)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

裂开嘴轻声笑有多痛 2024-12-29 10:40:44

我已按以下顺序安装了插件

  1. activiti-5.8.2
  2. spring-security-core-1.2.7.2
  3. activiti-spring-security-0.4.6
  4. install-vacation-request-sampleapp

我得到

| Error 2012-03-26 11:07:49,216 [http-bio-8080-exec-10] ERROR errors.GrailsExceptionResolver  - NullPointerException occurred when processing request: [GET] /test3/vacationRequest/start 
Cannot get property 'id' on null object. Stacktrace follows:
Message: Cannot get property 'id' on null object
    Line | Method
->>  129 | doCall    in ActivitiGrailsPlugin$_addActivitiMethods_closure7_closure29
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    125 | doCall    in ActivitiGrailsPlugin$_addActivitiMethods_closure7
|     36 | doCall .  in vacationRequest.VacationRequestController$_closure2
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run       in java.lang.Thread

它是否来自我的插件版本使用 ?

I have installed plugins in following order

  1. activiti-5.8.2
  2. spring-security-core-1.2.7.2
  3. activiti-spring-security-0.4.6
  4. install-vacation-request-sampleapp

And I am getting

| Error 2012-03-26 11:07:49,216 [http-bio-8080-exec-10] ERROR errors.GrailsExceptionResolver  - NullPointerException occurred when processing request: [GET] /test3/vacationRequest/start 
Cannot get property 'id' on null object. Stacktrace follows:
Message: Cannot get property 'id' on null object
    Line | Method
->>  129 | doCall    in ActivitiGrailsPlugin$_addActivitiMethods_closure7_closure29
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    125 | doCall    in ActivitiGrailsPlugin$_addActivitiMethods_closure7
|     36 | doCall .  in vacationRequest.VacationRequestController$_closure2
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run       in java.lang.Thread

Can it be from version of plugins I am using ?

你穿错了嫁妆 2024-12-29 10:40:44

我没有遇到你所报告的问题。

我使用以下命令创建项目:

grails create-app a581
grails install-plugin activiti
grails activiti-quickstart
grails install-vacation-request-sampleapp

我想您可能会错过一些步骤。您可以尝试在您的工作站中运行我创建的项目,网址为 http://grails -activiti-plugin.googlecode.com/files/a581.zip

I didn't face the problem reported by you.

I create the project with the following commands:

grails create-app a581
grails install-plugin activiti
grails activiti-quickstart
grails install-vacation-request-sampleapp

I guess you may miss some steps. You may try to run the project created by me in your workstation at http://grails-activiti-plugin.googlecode.com/files/a581.zip

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文