That issue appears in Glassfish 4. It is documented:

You need to download the patch in the second URL and overwrite the file:

mv nucleus-grizzly-all.jar.1 nucleus-grizzly-all.jar