{"action":"created","issue":{"url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/782","labels_url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/782/comments","events_url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/782/events","html_url":"https://github.com/geonetwork/core-geonetwork/issues/782","id":56817443,"number":782,"title":"adding a geonetwork harvester fails","user":{"login":"landryb","id":3421760,"avatar_url":"https://avatars.githubusercontent.com/u/3421760?v=3","gravatar_id":"","url":"https://api.github.com/users/landryb","html_url":"https://github.com/landryb","followers_url":"https://api.github.com/users/landryb/followers","following_url":"https://api.github.com/users/landryb/following{/other_user}","gists_url":"https://api.github.com/users/landryb/gists{/gist_id}","starred_url":"https://api.github.com/users/landryb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landryb/subscriptions","organizations_url":"https://api.github.com/users/landryb/orgs","repos_url":"https://api.github.com/users/landryb/repos","events_url":"https://api.github.com/users/landryb/events{/privacy}","received_events_url":"https://api.github.com/users/landryb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/geonetwork/core-geonetwork/milestones/15","html_url":"https://github.com/geonetwork/core-geonetwork/milestones/3.0.0","labels_url":"https://api.github.com/repos/geonetwork/core-geonetwork/milestones/15/labels","id":981401,"number":15,"title":"3.0.0","description":"","creator":{"login":"fxprunayre","id":1701393,"avatar_url":"https://avatars.githubusercontent.com/u/1701393?v=3","gravatar_id":"","url":"https://api.github.com/users/fxprunayre","html_url":"https://github.com/fxprunayre","followers_url":"https://api.github.com/users/fxprunayre/followers","following_url":"https://api.github.com/users/fxprunayre/following{/other_user}","gists_url":"https://api.github.com/users/fxprunayre/gists{/gist_id}","starred_url":"https://api.github.com/users/fxprunayre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxprunayre/subscriptions","organizations_url":"https://api.github.com/users/fxprunayre/orgs","repos_url":"https://api.github.com/users/fxprunayre/repos","events_url":"https://api.github.com/users/fxprunayre/events{/privacy}","received_events_url":"https://api.github.com/users/fxprunayre/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":2,"state":"open","created_at":"2015-02-16T14:52:04Z","updated_at":"2015-03-16T13:41:31Z","due_on":"2015-04-15T22:00:00Z","closed_at":null},"comments":11,"created_at":"2015-02-06T14:25:52Z","updated_at":"2015-03-16T15:01:11Z","closed_at":"2015-03-16T09:50:40Z","body":"On current HEAD (ef8f34dbd) I'm trying to add a geonetwork harvester for https://www.agglo-clermont.fr/geosource, added its self-signed cert to the java keystore using https://github.com/escline/InstallCert, but hitting 'save' on the 'add harvester' page shows this traceback in firebug/geonetwork.log.\r\n\r\nNo actual user feedback, but no added harvester listed either.\r\n\r\n\r\n```\r\n<error id=\"error\">\r\n  <message>For input string: \"null\"; nested exception is java.lang.NumberFormatException: For input string: \"null\"</message>\r\n  <class>InvalidDataAccessApiUsageException</class>\r\n  <stack>\r\n    <at class=\"org.springframework.orm.jpa.EntityManagerFactoryUtils\" file=\"EntityManagerFactoryUtils.java\" line=\"296\" method=\"convertJpaAccessExceptionIfPossible\" />\r\n    <at class=\"org.springframework.orm.jpa.vendor.HibernateJpaDialect\" file=\"HibernateJpaDialect.java\" line=\"108\" method=\"translateExceptionIfPossible\" />\r\n    <at class=\"org.springframework.orm.jpa.AbstractEntityManagerFactoryBean\" file=\"AbstractEntityManagerFactoryBean.java\" line=\"403\" method=\"translateExceptionIfPossible\" />\r\n    <at class=\"org.springframework.dao.support.ChainedPersistenceExceptionTranslator\" file=\"ChainedPersistenceExceptionTranslator.java\" line=\"58\" method=\"translateExceptionIfPossible\" />\r\n    <at class=\"org.springframework.dao.support.DataAccessUtils\" file=\"DataAccessUtils.java\" line=\"213\" method=\"translateIfNecessary\" />\r\n    <at class=\"org.springframework.dao.support.PersistenceExceptionTranslationInterceptor\" file=\"PersistenceExceptionTranslationInterceptor.java\" line=\"163\" method=\"invoke\" />\r\n    <at class=\"org.springframework.aop.framework.ReflectiveMethodInvocation\" file=\"ReflectiveMethodInvocation.java\" line=\"172\" method=\"proceed\" />\r\n    <at class=\"org.springframework.data.jpa.repository.support.LockModeRepositoryPostProcessor$LockModePopulatingMethodIntercceptor\" file=\"LockModeRepositoryPostProcessor.java\" line=\"92\" method=\"invoke\" />\r\n    <at class=\"org.springframework.aop.framework.ReflectiveMethodInvocation\" file=\"ReflectiveMethodInvocation.java\" line=\"172\" method=\"proceed\" />\r\n    <at class=\"org.springframework.aop.interceptor.ExposeInvocationInterceptor\" file=\"ExposeInvocationInterceptor.java\" line=\"91\" method=\"invoke\" />\r\n    <skip>...</skip>\r\n    <at class=\"org.fao.geonet.kernel.setting.HarvesterSettingsManager\" file=\"HarvesterSettingsManager.java\" line=\"198\" method=\"add\" />\r\n    <at class=\"org.fao.geonet.kernel.harvest.harvester.AbstractHarvester\" file=\"AbstractHarvester.java\" line=\"760\" method=\"storeNode\" />\r\n    <at class=\"org.fao.geonet.kernel.harvest.harvester.geonet.GeonetHarvester\" file=\"GeonetHarvester.java\" line=\"77\" method=\"doAdd\" />\r\n    <at class=\"org.fao.geonet.kernel.harvest.harvester.AbstractHarvester\" file=\"AbstractHarvester.java\" line=\"191\" method=\"add\" />\r\n    <at class=\"org.fao.geonet.kernel.harvest.HarvestManagerImpl\" file=\"HarvestManagerImpl.java\" line=\"274\" method=\"addHarvesterReturnId\" />\r\n    <at class=\"org.fao.geonet.services.harvesting.Add\" file=\"Add.java\" line=\"60\" method=\"exec\" />\r\n    <at class=\"jeeves.server.dispatchers.ServiceInfo\" file=\"ServiceInfo.java\" line=\"227\" method=\"execService\" />\r\n    <at class=\"jeeves.server.dispatchers.ServiceInfo\" file=\"ServiceInfo.java\" line=\"143\" method=\"noTransactionExec\" />\r\n    <at class=\"jeeves.server.dispatchers.ServiceInfo\" file=\"ServiceInfo.java\" line=\"45\" method=\"access$000\" />\r\n    <at class=\"jeeves.server.dispatchers.ServiceInfo$1\" file=\"ServiceInfo.java\" line=\"122\" method=\"doInTransaction\" />\r\n    <at class=\"jeeves.server.dispatchers.ServiceInfo$1\" file=\"ServiceInfo.java\" line=\"119\" method=\"doInTransaction\" />\r\n    <at class=\"jeeves.transaction.TransactionManager\" file=\"TransactionManager.java\" line=\"63\" method=\"runInTransaction\" />\r\n    <at class=\"jeeves.server.dispatchers.ServiceInfo\" file=\"ServiceInfo.java\" line=\"116\" method=\"execServices\" />\r\n    <at class=\"jeeves.server.dispatchers.ServiceManager\" file=\"ServiceManager.java\" line=\"445\" method=\"dispatch\" />\r\n    <at class=\"jeeves.server.dispatchers.ServiceManager\" file=\"ServiceManager.java\" line=\"387\" method=\"dispatch\" />\r\n    <at class=\"jeeves.server.JeevesEngine\" file=\"JeevesEngine.java\" line=\"596\" method=\"dispatch\" />\r\n\r\n    <at class=\"org.fao.geonet.services.main.GenericController\" file=\"GenericController.java\" line=\"108\" method=\"dispatch\" />\r\n    <skip>...</skip>\r\n    <at class=\"jeeves.config.springutil.JeevesDispatcherServlet\" file=\"JeevesDispatcherServlet.java\" line=\"17\" method=\"access$001\" />\r\n    <at class=\"jeeves.config.springutil.JeevesDispatcherServlet$1\" file=\"JeevesDispatcherServlet.java\" line=\"30\" method=\"doInTransaction\" />\r\n    <at class=\"jeeves.config.springutil.JeevesDispatcherServlet$1\" file=\"JeevesDispatcherServlet.java\" line=\"27\" method=\"doInTransaction\" />\r\n    <at class=\"jeeves.transaction.TransactionManager\" file=\"TransactionManager.java\" line=\"63\" method=\"runInTransaction\" />\r\n    <at class=\"jeeves.config.springutil.JeevesDispatcherServlet\" file=\"JeevesDispatcherServlet.java\" line=\"24\" method=\"doDispatch\" />\r\n    <skip>...</skip>\r\n    <at class=\"org.fao.geonet.monitor.webapp.WebappMetricsFilter\" file=\"WebappMetricsFilter.java\" line=\"96\" method=\"doFilter\" />\r\n    <skip>...</skip>\r\n    <at class=\"org.fao.geonet.monitor.webapp.MetricsRegistryInitializerFilter\" file=\"MetricsRegistryInitializerFilter.java\" line=\"31\" method=\"doFilter\" />\r\n    <skip>...</skip>\r\n    <at class=\"jeeves.config.springutil.PassthroughFilter\" file=\"PassthroughFilter.java\" line=\"26\" method=\"doFilter\" />\r\n    <skip>...</skip>\r\n    <at class=\"jeeves.config.springutil.MultiNodeAuthenticationFilter\" file=\"MultiNodeAuthenticationFilter.java\" line=\"98\" method=\"doFilter\" />\r\n    <skip>...</skip>\r\n    <at class=\"jeeves.config.springutil.JeevesDelegatingFilterProxy\" file=\"JeevesDelegatingFilterProxy.java\" line=\"64\" method=\"doFilter\" />\r\n    <skip>...</skip>\r\n  </stack>\r\n  <request>\r\n    <language>fre</language>\r\n    <service>admin.harvester.add</service>\r\n  </request>\r\n</error>\r\n```"},"comment":{"url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/comments/81718310","html_url":"https://github.com/geonetwork/core-geonetwork/issues/782#issuecomment-81718310","issue_url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/782","id":81718310,"user":{"login":"landryb","id":3421760,"avatar_url":"https://avatars.githubusercontent.com/u/3421760?v=3","gravatar_id":"","url":"https://api.github.com/users/landryb","html_url":"https://github.com/landryb","followers_url":"https://api.github.com/users/landryb/followers","following_url":"https://api.github.com/users/landryb/following{/other_user}","gists_url":"https://api.github.com/users/landryb/gists{/gist_id}","starred_url":"https://api.github.com/users/landryb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landryb/subscriptions","organizations_url":"https://api.github.com/users/landryb/orgs","repos_url":"https://api.github.com/users/landryb/repos","events_url":"https://api.github.com/users/landryb/events{/privacy}","received_events_url":"https://api.github.com/users/landryb/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T15:01:11Z","updated_at":"2015-03-16T15:01:11Z","body":"I think this is caused by the broken migration process from 2.8/2.10 which forces me to remove all harverster settings prior to run the db upgrade, and that leaves me with a catalog unable to create new harversters. i still have to dig in that issue. If that works from an empty catalog, fine.... but migration isnt working."}}