could you please explain a bit more detailed what kind of setup do you have?
it a clean setup of Activiti, or maybe is something custom, which version.. etc..
as you can see in your log, the NPE is here:
<code>
entity = Context.getCommandContext()
.getByteArrayEntityManager()
.findById(id);
</code>
here could have 2 cases of NPE , the CommandContext or the ByteArrayEntityManager
you could put a breakpoint here and check what exactly is null.
maybe you could create a unit test for this?