Glassfish - Exception in creating message-driven bean container (NullPointerException) April 22, 2014 This may happen every now and then if you killed the appserver and JMS was left in locked state. You can try to resolve it by deleting the file glassfish4/glassfish/domains/domain1/imq/instances/imqbroker/lock. Read more