[jBPM] - Any one configured jBPM 4.3 as a Spring Bean in a grails app??
by Srinivas Vemula
Srinivas Vemula [http://community.jboss.org/people/svemula12] created the discussion
"Any one configured jBPM 4.3 as a Spring Bean in a grails app??"
To view the discussion, visit: http://community.jboss.org/message/539344#539344
--------------------------------------------------------------
Hello mates..
Did any one got to configure jBPM 4.3 as a spring Bean in a grails env? We are adding workflow to a grails application, and wanted to have the process enginer available to our grails services as a bean...
I tried following the procedure mentioned here http://diversit.eu/2010/01/10/jbpm-4-3-with-spring/ http://diversit.eu/2010/01/10/jbpm-4-3-with-spring/
I am ending up with the below NPE.
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Facto
ry method [public org.jbpm.api.ProcessEngine eu.diversit.jbpm.spring.JbpmAutoSpr
ingConfiguration.processEngine()] threw exception; nested exception is java.lang
.NullPointerException
… 23 more
Caused by: java.lang.NullPointerException
at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.checkDb(Process
EngineImpl.java:152)
at org.jbpm.pvm.internal.processengine.SpringProcessEngine.create(Spring
ProcessEngine.java:70)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(Config
urationImpl.java:92)
at eu.diversit.jbpm.spring.JbpmAutoSpringConfiguration.processEngine(Jbp
mAutoSpringConfiguration.java:46)
at eu.diversit.jbpm.spring.JbpmAutoSpringConfiguration$$EnhancerByCGLIB$
$3d55055d.CGLIB$processEngine$1()
at eu.diversit.jbpm.spring.JbpmAutoSpringConfiguration$$EnhancerByCGLIB$
$3d55055d$$FastClassByCGLIB$$c3ccb95e.invoke()
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
at eu.diversit.jbpm.spring.JbpmAutoSpringConfiguration$$EnhancerByCGLIB$
$3d55055d.processEngine()
Do u know what i am doing wrong?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539344#539344]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-user] [jBPM] - About differences between jPDL editors jBPM 3.2.6 and 4.3
by Huisheng Xu
Huisheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"About differences between jPDL editors jBPM 3.2.6 and 4.3"
To view the discussion, visit: http://community.jboss.org/message/539327#539327
--------------------------------------------------------------
Hi Manuel,
I have a test.
First I create a GroupActivity in the source panel of GPD, then go back to designer panel, the graphical doesn't change. That is right, because the GroupActivity had not been supported. Then I modify position of some activity in designer panel, save, and change to source panel, the GroupActivity still here. So I think if we use GPD to write some codes by hand, it can maintain these codes for us, even if it have not supported this Activity or attribute. It is a good news for me.
I must say that I don't have much experisense on the GPD. One of the reasons is it is not finished yet. My job is developing a Web Designer for on jBPM 4, just like the jBPMEditor in the distribution. So we could use our web designer to design process definition directly.
I am not good at eclipse plugin development, so I could just wish the GPD could go on developing. At least, the commit of svn never stop.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539327#539327]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-user] [jBPM] - About differences between jPDL editors jBPM 3.2.6 and 4.3
by Manuel Jordan
Manuel Jordan [http://community.jboss.org/people/dr_pompeii] replied to the discussion
"About differences between jPDL editors jBPM 3.2.6 and 4.3"
To view the discussion, visit: http://community.jboss.org/message/539326#539326
--------------------------------------------------------------
Hello Huisheng
Thanks again for your time and reply, and sorry for my delay.
> e.g. if you enter the name of activity in property panel, the text will be turn to reverse.
Not good
> So if you want to use GPD to design process definition on jBPM 4 there are still something having to edit source xml by hand.
Please clear my doubt, your experience is valuable, OK, GPD is not 100% functional, therefore seems that I must do all by hand (*source*), well I think that design with the graphical editor and then complete the rest with the *source* is not critical in a good sense, but tell me, perhaps you had this experience, what happen if by source I create a *super-state* and then return to the graphical editor? I mean by hand edit some things or configurations not supported get by the graphical editor.
> At this moment, we are using jBPM 4.3. And of course we make some extension on jBPM 4 for our requirements.
How you handle this situation?, I mean backward cases, +*source to graphic*+
My Best Regards
-Manuel
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539326#539326]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-user] [jBPM Development] - AttachmentTest failure
by Huisheng Xu
Huisheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"AttachmentTest failure"
To view the discussion, visit: http://community.jboss.org/message/539325#539325
--------------------------------------------------------------
Hi Alejandro,
My environment is Window XP, JDK-1.5.0_15, Maven-2.2.1, hsqldb-1.8.0_10.
I changed the logging.properties and add javax.activation.level=FINEST. And there is my test output info.
08:55:37,429 FIN | [activation] MailcapCommandMap: load HOME
08:55:37,429 FIN | [activation] new MailcapFile: file C:\Documents and Settings\Administrator\.mailcap
08:55:37,429 FIN | [activation] MailcapCommandMap: load SYS
08:55:37,429 FIN | [activation] new MailcapFile: file D:\apps\jdk1.5.0_15\jre\lib\mailcap
08:55:37,429 FIN | [activation] MailcapCommandMap: load JAR
08:55:37,429 FIN | [activation] MailcapCommandMap: getResources
08:55:37,429 FIN | [activation] MailcapCommandMap: URL file:/D:/externals/svn/jbpm4/trunk/modules/test-db/target/test-classes/META-INF/mailcap
08:55:37,429 FIN | [activation] new MailcapFile: InputStream
08:55:37,445 FIN | [activation] parse: image/gif;; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] Type: image/gif
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: image/jpeg;; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] Type: image/jpeg
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: text/*;; x-java-view=com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] Type: text/*
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] parse: text/*;; x-java-edit=com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Type: text/*
08:55:37,445 FIN | [activation] Command: edit, Class: com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Merging commands for type text/*
08:55:37,445 FIN | [activation] parse: text/html;; x-java-content-handler=com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] Type: text/html
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] parse: text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] Type: text/xml
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] parse: text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] Type: text/plain
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] parse: multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation] Type: multipart/*
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation] parse: message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] Type: message/rfc822
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] MailcapCommandMap: successfully loaded mailcap file from URL: file:/D:/externals/svn/jbpm4/trunk/modules/test-db/target/test-classes/META-INF/mailcap
08:55:37,445 FIN | [activation] MailcapCommandMap: URL jar:file:/D:/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar!/META-INF/mailcap
08:55:37,445 FIN | [activation] new MailcapFile: InputStream
08:55:37,445 FIN | [activation] parse: text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] Type: text/plain
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] parse: text/html;; x-java-content-handler=com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] Type: text/html
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] parse: text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] Type: text/xml
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] parse: multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed; x-java-fallback-entry=true
08:55:37,445 FIN | [activation] Type: multipart/*
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation] parse: message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] Type: message/rfc822
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] MailcapCommandMap: successfully loaded mailcap file from URL: jar:file:/D:/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar!/META-INF/mailcap
08:55:37,445 FIN | [activation] MailcapCommandMap: load DEF
08:55:37,445 FIN | [activation] new MailcapFile: InputStream
08:55:37,445 FIN | [activation] parse: image/gif;; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] Type: image/gif
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: image/jpeg;; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] Type: image/jpeg
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: text/*;; x-java-view=com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] Type: text/*
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] parse: text/*;; x-java-edit=com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Type: text/*
08:55:37,445 FIN | [activation] Command: edit, Class: com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Merging commands for type text/*
08:55:37,461 FIN | [activation] MailcapCommandMap: successfully loaded mailcap file: /META-INF/mailcap.default
08:55:37,461 FIN | [activation] MailcapCommandMap: createDataContentHandler for text/plain
08:55:37,461 FIN | [activation] search DB #1
08:55:37,461 FIN | [activation] got content-handler
08:55:37,461 FIN | [activation] class com.sun.mail.handlers.text_plain
08:55:37,461 FIN | [activation] MailcapCommandMap: createDataContentHandler for image/gif
08:55:37,461 FIN | [activation] search DB #1
08:55:37,461 FIN | [activation] search DB #2
08:55:37,461 FIN | [activation] search DB #3
08:55:37,461 FIN | [activation] search fallback DB #1
08:55:37,461 FIN | [activation] search fallback DB #2
08:55:37,461 FIN | [activation] search fallback DB #3
08:55:37,476 FIN | [activation] MailcapCommandMap: createDataContentHandler for multipart/related
08:55:37,476 FIN | [activation] search DB #1
08:55:37,476 FIN | [activation] got content-handler
08:55:37,476 FIN | [activation] class com.sun.mail.handlers.multipart_mixed
### EXCEPTION ###########################################
08:55:37,476 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@1aa0a15
org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@1684e26
at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:46)
As you see, there is no DataContentHandler being configured for image/gif, so the testcase failed. I think there must be additional mailcap file being configured in your and QA environments. So, do I need add an additional mailcap file into my java.home directory?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539325#539325]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years