{"action":"created","issue":{"url":"https://api.github.com/repos/payara/Payara/issues/209","labels_url":"https://api.github.com/repos/payara/Payara/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/payara/Payara/issues/209/comments","events_url":"https://api.github.com/repos/payara/Payara/issues/209/events","html_url":"https://github.com/payara/Payara/issues/209","id":57814623,"number":209,"title":"CDI Injection in Entity Listener results in null reference","user":{"login":"VeitWeber","id":6893565,"avatar_url":"https://avatars.githubusercontent.com/u/6893565?v=3","gravatar_id":"","url":"https://api.github.com/users/VeitWeber","html_url":"https://github.com/VeitWeber","followers_url":"https://api.github.com/users/VeitWeber/followers","following_url":"https://api.github.com/users/VeitWeber/following{/other_user}","gists_url":"https://api.github.com/users/VeitWeber/gists{/gist_id}","starred_url":"https://api.github.com/users/VeitWeber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeitWeber/subscriptions","organizations_url":"https://api.github.com/users/VeitWeber/orgs","repos_url":"https://api.github.com/users/VeitWeber/repos","events_url":"https://api.github.com/users/VeitWeber/events{/privacy}","received_events_url":"https://api.github.com/users/VeitWeber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-16T15:06:25Z","updated_at":"2015-02-17T09:25:31Z","closed_at":null,"body":"Hi, \r\n\r\nI'm trying to inject a CDI Bean in an Entity Listener and got a NPE because the reference is null:\r\n\r\n```java\r\n@Entity\r\n@EntityListeners({LoggerEntityListener.class})\r\npublic class MyLoggedEntity {\r\n  ...\r\n }\r\n\r\npublic class LoggerEntityListener {\r\n  @Inject\r\n  LogbackLogger logger; // always null\r\n\r\n  ...\r\n }\r\n\r\n\r\n```\r\n\r\nI guess the probleme is related to the following issue, which was posted last year on the glassfish issue tracker: https://java.net/jira/browse/GLASSFISH-21195\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/payara/Payara/issues/comments/74638979","html_url":"https://github.com/payara/Payara/issues/209#issuecomment-74638979","issue_url":"https://api.github.com/repos/payara/Payara/issues/209","id":74638979,"user":{"login":"davewinters","id":1631103,"avatar_url":"https://avatars.githubusercontent.com/u/1631103?v=3","gravatar_id":"","url":"https://api.github.com/users/davewinters","html_url":"https://github.com/davewinters","followers_url":"https://api.github.com/users/davewinters/followers","following_url":"https://api.github.com/users/davewinters/following{/other_user}","gists_url":"https://api.github.com/users/davewinters/gists{/gist_id}","starred_url":"https://api.github.com/users/davewinters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davewinters/subscriptions","organizations_url":"https://api.github.com/users/davewinters/orgs","repos_url":"https://api.github.com/users/davewinters/repos","events_url":"https://api.github.com/users/davewinters/events{/privacy}","received_events_url":"https://api.github.com/users/davewinters/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T09:25:31Z","updated_at":"2015-02-17T09:25:31Z","body":"Ok thanks for the details. It does appear to be a defect in Eclipselink shipped with GF 4.1 and Payara but will reproduce this side firstly and progress from there."}}