On GlassFish, you need to do the following setup to avoid a with the message Password must not be null:

  1. Edit your domain's domain.xml (e.g. in domains/domain1/config/domain.xml).

  2. Search for the section of the file that contains <jvm-options> elements, and there, add: <jvm-options></jvm-options>. If you changed your Glassfish master password, set this property to your new password.

The above steps have been verified on GlassFish 3.1 and 4.1.1.