[jboss-user] [jBPM] - Help for deploying a mail node with MailTemplateRegistry

Tun Mang do-not-reply at jboss.com
Fri Jul 23 16:59:20 EDT 2010


Tun Mang [http://community.jboss.org/people/tunmang] created the discussion

"Help for deploying a mail node with MailTemplateRegistry"

To view the discussion, visit: http://community.jboss.org/message/554222#554222

--------------------------------------------------------------
Hi there:

When deploy a process definition with the following mail node (AuditMailProducer is implemented) as shown below :

 
#
<mail name='send mail' class='org.example.AuditMailProducer'>
  <property name='template'>
    <object method='getTemplate'>
      <factory><ref type='org.jbpm.pvm.internal.email.impl.MailTemplateRegistry'/></factory>
      <arg><string value='rectify-template'/></arg>
    </object>
  </property>
  <property name='auditGroup'><string value='thinkpol'/></property>
  <transition to='end' />
</mail>

It throws the following exceptions:

[DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.DeployCmd at 18ff27

org.jbpm.api.JbpmException: 
Caused by: org.jbpm.pvm.internal.wire.WireException: created factory object is null, 
        can't invoke method 'getTemplate' on it
     
        at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:176)
     at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:469)
     at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:448)
     at org.jbpm.pvm.internal.wire.operation.PropertyOperation.apply(PropertyOperation.java:27)
     at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:234)
     ... 30 more
 
Is it because some service descriptor's entry missing in jbpm.default.cfg.xml ?
 
Thanks for your help and time.
 
Tun Mang
 
 




--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/554222#554222]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100723/27ef739b/attachment.html 


More information about the jboss-user mailing list