{"action":"created","issue":{"url":"https://api.github.com/repos/payara/Payara/issues/532","labels_url":"https://api.github.com/repos/payara/Payara/issues/532/labels{/name}","comments_url":"https://api.github.com/repos/payara/Payara/issues/532/comments","events_url":"https://api.github.com/repos/payara/Payara/issues/532/events","html_url":"https://github.com/payara/Payara/issues/532","id":117909707,"number":532,"title":"IllegalStateException: Not inside a request scope","user":{"login":"pdurbin","id":21006,"avatar_url":"https://avatars.githubusercontent.com/u/21006?v=3","gravatar_id":"","url":"https://api.github.com/users/pdurbin","html_url":"https://github.com/pdurbin","followers_url":"https://api.github.com/users/pdurbin/followers","following_url":"https://api.github.com/users/pdurbin/following{/other_user}","gists_url":"https://api.github.com/users/pdurbin/gists{/gist_id}","starred_url":"https://api.github.com/users/pdurbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdurbin/subscriptions","organizations_url":"https://api.github.com/users/pdurbin/orgs","repos_url":"https://api.github.com/users/pdurbin/repos","events_url":"https://api.github.com/users/pdurbin/events{/privacy}","received_events_url":"https://api.github.com/users/pdurbin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/payara/Payara/labels/Test%20Case%20Required","name":"Test Case Required","color":"006b75"},{"url":"https://api.github.com/repos/payara/Payara/labels/try%20to%20reproduce","name":"try to reproduce","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-19T21:17:06Z","updated_at":"2016-01-21T14:59:32Z","closed_at":null,"body":"I attempted to switch our application (Dataverse) from Glassfish 4.1 to Payara 4.1.1.154 (in commit [1c0c7be](https://github.com/IQSS/dataverse/commit/1c0c7be6ebc332a1fd62c7d09cb09badb18d0c41)) and while our setup scripts ran fine (which was not the case when [attempted to upgraded from Glassfish 4.1 to 4.1.1](https://github.com/IQSS/dataverse/issues/2628#issuecomment-158197478)) the home page throws a 500 error and I am not able to log in:\r\n\r\n![500_internal_server_error_-_root_dataverse_-_2015-11-19_09 26 22](https://cloud.githubusercontent.com/assets/21006/11284441/c204f956-8ed7-11e5-82d5-a586d52aaeb0.png)\r\n\r\nWhen I visit the homepage I see exceptions like these in server.log...\r\n\r\n`A system exception occurred during an invocation on EJB PermissionServiceBean, method: public edu.harvard.iq.dataverse.PermissionServiceBean$RequestPermissionQuery edu.harvard.iq.dataverse.PermissionServiceBean.on(edu.harvard.iq.dataverse.DvObject)]] ... javax.ejb.EJBException... at edu.harvard.iq.dataverse.DataversePage.init(DataversePage.java:294)... Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke protected void edu.harvard.iq.dataverse.DataverseRequestServiceBean.setup() on edu.harvard.iq.dataverse.DataverseRequestServiceBean@53084b6a ... at edu.harvard.iq.dataverse.PermissionServiceBean.on(PermissionServiceBean.java:356) ... Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:98) ... 99 more Caused by: java.lang.IllegalStateException: Not inside a request scope. at jersey.repackaged.com.google.common.base.Preconditions.checkState(Preconditions.java:173)`\r\n\r\n... and here is the full server.log (which also includes a couple attempts to log in): [payara-4.1.1.154-1c0c7be-server.log.txt](https://github.com/payara/Payara/files/39469/payara-4.1.1.154-1c0c7be-server.log.txt)\r\n\r\nI'm struggling with what to write as the title of this issue so @smillidge (et al.) are welcome to change it. At https://github.com/payara/Payara/issues/529#issuecomment-158128834 he asked me to file an issue here if I'm seeing a difference between Glassfish 4.1.1 and Payara 4.1.1.154 and I certainly am.\r\n\r\nTo sum up:\r\n\r\n- Glassfish 4.1: works\r\n- Glassfish 4.1.1: doesn't work. Bean Validation problems when our setup scripts run: https://github.com/IQSS/dataverse/issues/2628#issuecomment-158197478\r\n- Payara 4.1.1.154: doesn't work. We are able to run our setup scripts but then we can't load the homepage or log in (and who knows what else). Details and server.log above."},"comment":{"url":"https://api.github.com/repos/payara/Payara/issues/comments/173596870","html_url":"https://github.com/payara/Payara/issues/532#issuecomment-173596870","issue_url":"https://api.github.com/repos/payara/Payara/issues/532","id":173596870,"user":{"login":"pdurbin","id":21006,"avatar_url":"https://avatars.githubusercontent.com/u/21006?v=3","gravatar_id":"","url":"https://api.github.com/users/pdurbin","html_url":"https://github.com/pdurbin","followers_url":"https://api.github.com/users/pdurbin/followers","following_url":"https://api.github.com/users/pdurbin/following{/other_user}","gists_url":"https://api.github.com/users/pdurbin/gists{/gist_id}","starred_url":"https://api.github.com/users/pdurbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdurbin/subscriptions","organizations_url":"https://api.github.com/users/pdurbin/orgs","repos_url":"https://api.github.com/users/pdurbin/repos","events_url":"https://api.github.com/users/pdurbin/events{/privacy}","received_events_url":"https://api.github.com/users/pdurbin/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T14:59:32Z","updated_at":"2016-01-21T14:59:32Z","body":"Pinging @michbarsinai since he wrote DataverseRequestServiceBean.\r\n\r\n@abhirockzz the issue does have something to do with Bean Validation, right? From the links you posted I can't tell if you're using Bean Validation."}}