AnsweredAssumed Answered

5.0.rc1, DeployBarTask throws java.lang.NullPointerException

Question asked by limcheekin on Nov 3, 2010
Latest reply on Nov 4, 2010 by limcheekin
Hi there,

Given activiti.cfg.xml file:
<activiti-cfg process-engine-name='activiti-engine-dev'>
  <database type='h2' schema-strategy='check-version'>
    <jdbc url='jdbc:h2:tcp://localhost/activiti' driver='org.h2.Driver' username='sa' password='' />
  </database>
  <job-executor activate='false' />
  <mail server='smtp.yourserver.com' port='25' default-from='username@yourserver.com' />
</activiti-cfg>

And Business Archive (BAR) file (rename to .zip, as upload .bar is not allowed):
[attachment=0]activiti-test-rc1-0.1.zip[/attachment]

The DeployBarTask throws java.lang.NullPointerException, complete stack trace here:

Caused by: java.lang.NullPointerException
        at org.activiti.engine.impl.ant.DeployBarTask.execute(DeployBarTask.java:80)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        … 192 more

The same code working in beta2. Is this a bug or did I missed out something?

Please advice.

Thanks,
Chee Kin

Attachments

Outcomes