NullPointerException during application startup with autodeployment set to true

Description

This is in reference to forum thread http://forums.activiti.org/en/viewtopic.php?f=6&t=3626 . I was unable to find a bug entered on the issue.

The stack trace is:
java.lang.NullPointerException
at org.activiti.engine.impl.cmd.DeployCmd.deploymentsDiffer(DeployCmd.java:72)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:50)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)

To replicate the steps in the simplest way, what I can do is to start up my application with startup set to true. The first time this works fine. Move my container to a new location. Restart the container. Null pointer exception.

The underlying cause seems to be using the full path in ACT_GE_BYTEARRAY. For example, in my case that path is /var/tomcat/applicationName/temp/0-ROOT/WEB-INF/classes/someThing.bpmn20.xml. Which is something that really can't be trusted as a means of identifying whether the bpmn file changed or not since that path will change randomly depending on what tomcat is doing.

Environment

Java 6 / Spring Application with autodeploy set to true /Tomcat 6

Assignee

Tijs Rademakers

Reporter

Andrew Thompson

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure