{"action":"created","issue":{"url":"https://api.github.com/repos/georchestra/georchestra/issues/1190","labels_url":"https://api.github.com/repos/georchestra/georchestra/issues/1190/labels{/name}","comments_url":"https://api.github.com/repos/georchestra/georchestra/issues/1190/comments","events_url":"https://api.github.com/repos/georchestra/georchestra/issues/1190/events","html_url":"https://github.com/georchestra/georchestra/issues/1190","id":127887526,"number":1190,"title":"NPE with GeoFence 3 and GeoServer 2.8.1 on GeofenceServerPage","user":{"login":"fvanderbiest","id":265319,"avatar_url":"https://avatars.githubusercontent.com/u/265319?v=3","gravatar_id":"","url":"https://api.github.com/users/fvanderbiest","html_url":"https://github.com/fvanderbiest","followers_url":"https://api.github.com/users/fvanderbiest/followers","following_url":"https://api.github.com/users/fvanderbiest/following{/other_user}","gists_url":"https://api.github.com/users/fvanderbiest/gists{/gist_id}","starred_url":"https://api.github.com/users/fvanderbiest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvanderbiest/subscriptions","organizations_url":"https://api.github.com/users/fvanderbiest/orgs","repos_url":"https://api.github.com/users/fvanderbiest/repos","events_url":"https://api.github.com/users/fvanderbiest/events{/privacy}","received_events_url":"https://api.github.com/users/fvanderbiest/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/georchestra/georchestra/labels/2%20-%20Working","name":"2 - Working","color":"CCCCCC"},{"url":"https://api.github.com/repos/georchestra/georchestra/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/georchestra/georchestra/labels/priority-top","name":"priority-top","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"pmauduit","id":594335,"avatar_url":"https://avatars.githubusercontent.com/u/594335?v=3","gravatar_id":"","url":"https://api.github.com/users/pmauduit","html_url":"https://github.com/pmauduit","followers_url":"https://api.github.com/users/pmauduit/followers","following_url":"https://api.github.com/users/pmauduit/following{/other_user}","gists_url":"https://api.github.com/users/pmauduit/gists{/gist_id}","starred_url":"https://api.github.com/users/pmauduit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmauduit/subscriptions","organizations_url":"https://api.github.com/users/pmauduit/orgs","repos_url":"https://api.github.com/users/pmauduit/repos","events_url":"https://api.github.com/users/pmauduit/events{/privacy}","received_events_url":"https://api.github.com/users/pmauduit/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/georchestra/georchestra/milestones/8","html_url":"https://github.com/georchestra/georchestra/milestones/15.12","labels_url":"https://api.github.com/repos/georchestra/georchestra/milestones/8/labels","id":976665,"number":8,"title":"15.12","description":"","creator":{"login":"fvanderbiest","id":265319,"avatar_url":"https://avatars.githubusercontent.com/u/265319?v=3","gravatar_id":"","url":"https://api.github.com/users/fvanderbiest","html_url":"https://github.com/fvanderbiest","followers_url":"https://api.github.com/users/fvanderbiest/followers","following_url":"https://api.github.com/users/fvanderbiest/following{/other_user}","gists_url":"https://api.github.com/users/fvanderbiest/gists{/gist_id}","starred_url":"https://api.github.com/users/fvanderbiest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvanderbiest/subscriptions","organizations_url":"https://api.github.com/users/fvanderbiest/orgs","repos_url":"https://api.github.com/users/fvanderbiest/repos","events_url":"https://api.github.com/users/fvanderbiest/events{/privacy}","received_events_url":"https://api.github.com/users/fvanderbiest/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":58,"state":"open","created_at":"2015-02-12T11:04:24Z","updated_at":"2016-01-27T10:33:00Z","due_on":"2015-12-14T23:00:00Z","closed_at":null},"comments":14,"created_at":"2016-01-21T10:02:16Z","updated_at":"2016-01-27T22:05:19Z","closed_at":null,"body":"The issue was originally described in https://github.com/georchestra/georchestra/issues/1185#issuecomment-173252341 but I'm porting it here.\r\n\r\nHere's what I did:\r\n * compile GeoServer with integrated geofence using jenkins on sdi.georchestra.org, with profiles -Ppyramid,inspire,wps,control-flow,geofence,geofence-server\r\n * create a geofence schema in the georchestra db on localhost:6432, populated with https://gist.github.com/fvanderbiest/fb0a7ee4c3971be4c2fa (a sensible adaptation of https://github.com/geoserver/geofence/blob/master/doc/setup/sql/001_setup_db.sql and https://github.com/geoserver/geofence/blob/master/doc/setup/sql/002_create_schema_postgres.sql for our setup)\r\n * set the georchestra.datadir variable to a folder with a fresh clone of https://github.com/georchestra/datadir (and checked tomcat is granted access to it)\r\n * set -DGEOSERVER_XSTREAM_WHITELIST=org.geoserver.geoserver.authentication.auth.GeoFenceAuthenticationProviderConfig to the tomcat hosting the geoserver webapp\r\n\r\n/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.geofence.web.GeofenceServerPage crashes with\r\n```\r\norg.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public org.geoserver.geofence.web.GeofenceServerPage()\r\n\tat org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212)\r\n\tat org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)\r\n...\r\nCaused by: java.lang.NullPointerException\r\n\tat org.hibernate.impl.SessionFactoryImpl.getClassMetadata(SessionFactoryImpl.java:805)\r\n\tat com.googlecode.genericdao.search.hibernate.HibernateMetadataUtil.get(HibernateMetadataUtil.java:92)\r\n\tat com.googlecode.genericdao.dao.jpa.JPABaseDAO._all(JPABaseDAO.java:206)\r\n\tat com.googlecode.genericdao.dao.jpa.GenericDAOImpl.findAll(GenericDAOImpl.java:61)\r\n\tat org.geoserver.geofence.core.dao.impl.RuleDAOImpl.findAll(RuleDAOImpl.java:181)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)\r\n\tat org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)\r\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)\r\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)\r\n\tat com.sun.proxy.$Proxy22.findAll(Unknown Source)\r\n\tat org.geoserver.geofence.services.RuleAdminServiceImpl.getAll(RuleAdminServiceImpl.java:193)\r\n\tat org.geoserver.geofence.web.GeofenceRulesModel.<init>(GeofenceRulesModel.java:79)\r\n\tat org.geoserver.geofence.web.GeofenceServerPage.<init>(GeofenceServerPage.java:59)\r\n```\r\n\r\nI even started geoserver from a truely fresh minimal datadir (https://github.com/geoserver/geoserver/tree/2.8.x/data/minimal), with an added filter to interpret the security-proxy headers (file ```/security/filter/georchestra/config.xml``` registered in ```/security/config.xml``` as per https://gist.github.com/fvanderbiest/ad21ec926f0df1c50a78 )\r\n\r\n... but with no better luck.\r\n\r\nBTW, I see that geofence has created a ```geofence``` folder in this fresh geoserver data dir, with a ```geofence_db``` subfolder, hosting several ```.db``` files, the most important probably being ```geofence.data.db``` (400kB). I fear that geofence does not take into account the https://github.com/georchestra/datadir/blob/master/geofence/geofence.properties file for some reason."},"comment":{"url":"https://api.github.com/repos/georchestra/georchestra/issues/comments/175884577","html_url":"https://github.com/georchestra/georchestra/issues/1190#issuecomment-175884577","issue_url":"https://api.github.com/repos/georchestra/georchestra/issues/1190","id":175884577,"user":{"login":"fvanderbiest","id":265319,"avatar_url":"https://avatars.githubusercontent.com/u/265319?v=3","gravatar_id":"","url":"https://api.github.com/users/fvanderbiest","html_url":"https://github.com/fvanderbiest","followers_url":"https://api.github.com/users/fvanderbiest/followers","following_url":"https://api.github.com/users/fvanderbiest/following{/other_user}","gists_url":"https://api.github.com/users/fvanderbiest/gists{/gist_id}","starred_url":"https://api.github.com/users/fvanderbiest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvanderbiest/subscriptions","organizations_url":"https://api.github.com/users/fvanderbiest/orgs","repos_url":"https://api.github.com/users/fvanderbiest/repos","events_url":"https://api.github.com/users/fvanderbiest/events{/privacy}","received_events_url":"https://api.github.com/users/fvanderbiest/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T22:05:19Z","updated_at":"2016-01-27T22:05:19Z","body":"Gosh, this is critical.\r\nWhat can we do to address this issue ?"}}