{"action":"created","issue":{"url":"https://api.github.com/repos/IQSS/dataverse/issues/1234","labels_url":"https://api.github.com/repos/IQSS/dataverse/issues/1234/labels{/name}","comments_url":"https://api.github.com/repos/IQSS/dataverse/issues/1234/comments","events_url":"https://api.github.com/repos/IQSS/dataverse/issues/1234/events","html_url":"https://github.com/IQSS/dataverse/issues/1234","id":51586765,"number":1234,"title":"Dataset: Crate dataset fails leaving empty required field (drop down compound fields)","user":{"login":"esotiri","id":1107614,"avatar_url":"https://avatars.githubusercontent.com/u/1107614?v=3","gravatar_id":"","url":"https://api.github.com/users/esotiri","html_url":"https://github.com/esotiri","followers_url":"https://api.github.com/users/esotiri/followers","following_url":"https://api.github.com/users/esotiri/following{/other_user}","gists_url":"https://api.github.com/users/esotiri/gists{/gist_id}","starred_url":"https://api.github.com/users/esotiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esotiri/subscriptions","organizations_url":"https://api.github.com/users/esotiri/orgs","repos_url":"https://api.github.com/users/esotiri/repos","events_url":"https://api.github.com/users/esotiri/events{/privacy}","received_events_url":"https://api.github.com/users/esotiri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IQSS/dataverse/labels/Priority%3A+High","name":"Priority: High","color":"e11d21"},{"url":"https://api.github.com/repos/IQSS/dataverse/labels/Status%3A+Dev","name":"Status: Dev","color":"66cc66"},{"url":"https://api.github.com/repos/IQSS/dataverse/labels/Type%3A+Bug","name":"Type: Bug","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"esotiri","id":1107614,"avatar_url":"https://avatars.githubusercontent.com/u/1107614?v=3","gravatar_id":"","url":"https://api.github.com/users/esotiri","html_url":"https://github.com/esotiri","followers_url":"https://api.github.com/users/esotiri/followers","following_url":"https://api.github.com/users/esotiri/following{/other_user}","gists_url":"https://api.github.com/users/esotiri/gists{/gist_id}","starred_url":"https://api.github.com/users/esotiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esotiri/subscriptions","organizations_url":"https://api.github.com/users/esotiri/orgs","repos_url":"https://api.github.com/users/esotiri/repos","events_url":"https://api.github.com/users/esotiri/events{/privacy}","received_events_url":"https://api.github.com/users/esotiri/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/IQSS/dataverse/milestones/22","labels_url":"https://api.github.com/repos/IQSS/dataverse/milestones/22/labels","id":891857,"number":22,"title":"Beta 11 - Dataverse 4.0","description":"-Bug fixing","creator":{"login":"eaquigley","id":5922904,"avatar_url":"https://avatars.githubusercontent.com/u/5922904?v=3","gravatar_id":"","url":"https://api.github.com/users/eaquigley","html_url":"https://github.com/eaquigley","followers_url":"https://api.github.com/users/eaquigley/followers","following_url":"https://api.github.com/users/eaquigley/following{/other_user}","gists_url":"https://api.github.com/users/eaquigley/gists{/gist_id}","starred_url":"https://api.github.com/users/eaquigley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaquigley/subscriptions","organizations_url":"https://api.github.com/users/eaquigley/orgs","repos_url":"https://api.github.com/users/eaquigley/repos","events_url":"https://api.github.com/users/eaquigley/events{/privacy}","received_events_url":"https://api.github.com/users/eaquigley/received_events","type":"User","site_admin":false},"open_issues":161,"closed_issues":16,"state":"open","created_at":"2014-12-04T18:42:45Z","updated_at":"2015-01-09T21:38:32Z","due_on":"2015-01-16T05:00:00Z","closed_at":null},"comments":1,"created_at":"2014-12-10T17:32:02Z","updated_at":"2015-01-09T22:19:54Z","closed_at":null,"body":"\r\nCrate dataset fails leaving empty required Geographic Coverage Country / Nation metadata. \r\nsteps to reproduce: \r\ncreate a dataset that has Geographic Coverage required, fill all other required fields but the Geographic Coverage.   \r\n\r\n- This is happening with drop-down compound fields, but need to check drop-down not compound. \r\n\r\n- no warning on gui\r\n- server log: \r\n\r\n[2014-12-10T12:20:27.225-0500] [glassfish 4.1] [WARNING] [] [javax.enterprise.resource.webcontainer.jsf.lifecycle] [tid: _ThreadID=49 _ThreadName=jk-connector(4)] [timeMillis: 1418232027225] [levelValue: 900] [[\r\n  #{DatasetPage.save}: javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.\r\njavax.faces.FacesException: #{DatasetPage.save}: javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.\r\n\tat com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)\r\n\tat javax.faces.component.UICommand.broadcast(UICommand.java:315)\r\n\tat javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)\r\n\tat javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)\r\n\tat com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)\r\n\tat com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)\r\n\tat com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)\r\n\tat javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)\r\n\tat org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)\r\n\tat org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:295)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)\r\n\tat org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:205)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)\r\n\tat org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)\r\n\tat org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)\r\n\tat com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)\r\n\tat com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)\r\n\tat com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)\r\n\tat org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)\r\n\tat org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)\r\n\tat org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)\r\n\tat org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)\r\n\tat org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)\r\n\tat org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)\r\n\tat org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)\r\n\tat org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)\r\n\tat org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)\r\n\tat org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)\r\n\tat org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)\r\n\tat org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: javax.faces.el.EvaluationException: javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.\r\n\tat javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)\r\n\tat com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)\r\n\t... 43 more\r\nCaused by: javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.\r\n\tat org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:284)\r\n\tat org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:133)\r\n\tat org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:91)\r\n\tat org.hibernate.validator.internal.metadata.core.MetaConstraint.validateConstraint(MetaConstraint.java:85)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:478)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForDefaultGroup(ValidatorImpl.java:424)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:388)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:340)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validate(ValidatorImpl.java:158)\r\n\tat edu.harvard.iq.dataverse.DatasetVersion.validate(DatasetVersion.java:803)\r\n\tat edu.harvard.iq.dataverse.DatasetPage.save(DatasetPage.java:824)\r\n\tat sun.reflect.GeneratedMethodAccessor1021.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.sun.el.parser.AstValue.invoke(AstValue.java:289)\r\n\tat com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)\r\n\tat org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)\r\n\tat org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)\r\n\tat com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)\r\n\tat javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)\r\n\t... 44 more\r\nCaused by: java.lang.NullPointerException\r\n\tat edu.harvard.iq.dataverse.DatasetField.getValue(DatasetField.java:226)\r\n\tat edu.harvard.iq.dataverse.DatasetFieldValidator.isValid(DatasetFieldValidator.java:32)\r\n\tat edu.harvard.iq.dataverse.DatasetFieldValidator.isValid(DatasetFieldValidator.java:17)\r\n\tat org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:281)\r\n\t... 63 more\r\n]]\r\n\r\n[2014-12-10T12:20:27.228-0500] [glassfish 4.1] [SEVERE] [] [javax.enterprise.resource.webcontainer.jsf.context] [tid: _ThreadID=49 _ThreadName=jk-connector(4)] [timeMillis: 1418232027228] [levelValue: 1000] [[\r\n  javax.faces.el.EvaluationException: javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.\r\n\tat javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)\r\n\tat com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)\r\n\tat javax.faces.component.UICommand.broadcast(UICommand.java:315)\r\n\tat javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)\r\n\tat javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)\r\n\tat com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)\r\n\tat com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)\r\n\tat com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)\r\n\tat javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)\r\n\tat org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)\r\n\tat org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:295)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)\r\n\tat org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:205)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)\r\n\tat org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)\r\n\tat org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)\r\n\tat com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)\r\n\tat com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)\r\n\tat com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)\r\n\tat org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)\r\n\tat org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)\r\n\tat org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)\r\n\tat org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)\r\n\tat org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)\r\n\tat org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)\r\n\tat org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)\r\n\tat org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)\r\n\tat org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)\r\n\tat org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)\r\n\tat org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)\r\n\tat org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: javax.validation.ValidationException: HV000028: Unexpected exception during isValid call.\r\n\tat org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:284)\r\n\tat org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:133)\r\n\tat org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:91)\r\n\tat org.hibernate.validator.internal.metadata.core.MetaConstraint.validateConstraint(MetaConstraint.java:85)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:478)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForDefaultGroup(ValidatorImpl.java:424)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:388)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:340)\r\n\tat org.hibernate.validator.internal.engine.ValidatorImpl.validate(ValidatorImpl.java:158)\r\n\tat edu.harvard.iq.dataverse.DatasetVersion.validate(DatasetVersion.java:803)\r\n\tat edu.harvard.iq.dataverse.DatasetPage.save(DatasetPage.java:824)\r\n\tat sun.reflect.GeneratedMethodAccessor1021.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.sun.el.parser.AstValue.invoke(AstValue.java:289)\r\n\tat com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)\r\n\tat org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)\r\n\tat org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)\r\n\tat com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)\r\n\tat javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)\r\n\t... 44 more\r\nCaused by: java.lang.NullPointerException\r\n\tat edu.harvard.iq.dataverse.DatasetField.getValue(DatasetField.java:226)\r\n\tat edu.harvard.iq.dataverse.DatasetFieldValidator.isValid(DatasetFieldValidator.java:32)\r\n\tat edu.harvard.iq.dataverse.DatasetFieldValidator.isValid(DatasetFieldValidator.java:17)\r\n\tat org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:281)\r\n\t... 63 more\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/IQSS/dataverse/issues/comments/69409032","html_url":"https://github.com/IQSS/dataverse/issues/1234#issuecomment-69409032","issue_url":"https://api.github.com/repos/IQSS/dataverse/issues/1234","id":69409032,"user":{"login":"sekmiller","id":2364928,"avatar_url":"https://avatars.githubusercontent.com/u/2364928?v=3","gravatar_id":"","url":"https://api.github.com/users/sekmiller","html_url":"https://github.com/sekmiller","followers_url":"https://api.github.com/users/sekmiller/followers","following_url":"https://api.github.com/users/sekmiller/following{/other_user}","gists_url":"https://api.github.com/users/sekmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/sekmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sekmiller/subscriptions","organizations_url":"https://api.github.com/users/sekmiller/orgs","repos_url":"https://api.github.com/users/sekmiller/repos","events_url":"https://api.github.com/users/sekmiller/events{/privacy}","received_events_url":"https://api.github.com/users/sekmiller/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T22:19:54Z","updated_at":"2015-01-09T22:19:54Z","body":"Fix for this has been checked in "}}