Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Try downgrading PostgresSQL server to 9.5 or update your PostgresSQL driver to 9.4-1211 with the following command: <postgresql.version>9.4.1211</postgresql.version>

Solutions on the web

via GitHub by kcondon
, 1 year ago
ERROR: duplicate key value violates unique constraint "datafilecategory_pkey" Detail: Key (id)=(3) already exists. Error Code: 0 Call: INSERT INTO DATAFILECATEGORY (NAME, DATASET_ID) VALUES (?, ?) bind => [2 parameters bound] Query: InsertObjectQuery(edu.harvard.iq.dataverse.DataFileCategory[ id=null ])
via GitHub by kcondon
, 2 years ago
, null, null, 1, null, null, DRAFT, 439, 180). Error Code: 0 Call: INSERT INTO DATASETVERSION (UNF, ARCHIVENOTE, ARCHIVETIME, CREATETIME, DEACCESSIONLINK, INREVIEW, LASTUPDATETIME, MINORVERSIONNUMBER, RELEASETIME, VERSION, VERSIONNOTE, VERSIONNUMBER
via GitHub by kcondon
, 1 year ago
ERROR: duplicate key value violates unique constraint "confirmemaildata_authenticateduser_id_key" Detail: Key (authenticateduser_id)=(5) already exists. Error Code: 0 Call: INSERT INTO CONFIRMEMAILDATA (CREATED, EXPIRES, TOKEN
via GitHub by ferrys
, 7 months ago
ERROR: duplicate key value violates unique constraint "one_draft_version_per_dataset" Detail: Key (dataset_id)=(225) already exists. Error Code: 0 Call: INSERT INTO DATASETVERSION (UNF, ARCHIVENOTE, ARCHIVETIME, CREATETIME, DEACCESSIONLINK
via GitHub by scolapasta
, 2 years ago
ERROR: duplicate key value violates unique constraint "unq_authenticateduserlookup_0" Detail: Key (persistentuserid, authenticationproviderid)=(builtin, builtin) already exists. Error Code: 0 Call: INSERT INTO AUTHENTICATEDUSERLOOKUP
via GitHub by bencomp
, 2 years ago
ERROR: value too long for type character varying(255) Error Code: 0 Call: INSERT INTO DATAVARIABLE (FILEENDPOSITION, FILEORDER, FILESTARTPOSITION, FORMAT, FORMATCATEGORY, INTERVAL, LABEL, NAME, NUMBEROFDECIMALPOINTS, ORDEREDFACTOR
org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "datafilecategory_pkey"
  Detail: Key (id)=(3) already exists.	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2101)	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1834)	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)	at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:510)	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:386)	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:332)	at sun.reflect.GeneratedMethodAccessor516.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection$StatementHandler.invoke(AbstractJdbc23PooledConnection.java:453)	at com.sun.proxy.$Proxy306.executeUpdate(Unknown Source)	at com.sun.gjc.spi.base.PreparedStatementWrapper.executeUpdate(PreparedStatementWrapper.java:125)	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:890)	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:962)	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:631)	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:558)	at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:2002)	at org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:298)	at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:242)	at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)	at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:377)	at org.eclipse.persistence.internal.queries.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:165)	at org.eclipse.persistence.internal.queries.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:180)	at org.eclipse.persistence.internal.queries.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:489)	at org.eclipse.persistence.queries.InsertObjectQuery.executeCommit(InsertObjectQuery.java:80)	at org.eclipse.persistence.queries.InsertObjectQuery.executeCommitWithChangeSet(InsertObjectQuery.java:90)	at org.eclipse.persistence.internal.queries.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:301)	at org.eclipse.persistence.queries.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:58)	at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:899)	at org.eclipse.persistence.queries.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:798)	at org.eclipse.persistence.queries.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:108)	at org.eclipse.persistence.queries.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:85)	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2896)	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1804)	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1786)	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1737)	at org.eclipse.persistence.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:226)	at org.eclipse.persistence.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:193)	at org.eclipse.persistence.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:138)	at org.eclipse.persistence.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:4207)	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1441)	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithPreBuiltChangeSet(UnitOfWorkImpl.java:1587)	at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.writeChanges(RepeatableWriteUnitOfWork.java:452)	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush(EntityManagerImpl.java:863)	at com.sun.enterprise.container.common.impl.EntityManagerWrapper.flush(EntityManagerWrapper.java:437)	at edu.harvard.iq.dataverse.DataverseRoleServiceBean.save(DataverseRoleServiceBean.java:65)	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:498)	at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)	at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)	at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)	at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)	at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)	at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)	at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)	at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)	at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)	at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)	at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)	at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)	at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)	at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)	at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)	at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)	at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)	at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)	at com.sun.proxy.$Proxy786.save(Unknown Source)	at edu.harvard.iq.dataverse.__EJB31_Generated__DataverseRoleServiceBean__Intf____Bean__.save(Unknown Source)	at edu.harvard.iq.dataverse.engine.command.impl.CreateDatasetCommand.execute(CreateDatasetCommand.java:179)	at edu.harvard.iq.dataverse.engine.command.impl.CreateDatasetCommand.execute(CreateDatasetCommand.java:39)	at edu.harvard.iq.dataverse.EjbDataverseEngine.submit(EjbDataverseEngine.java:197)	at sun.reflect.GeneratedMethodAccessor2687.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)	at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)	at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)	at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)	at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)	at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)	at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)	at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)	at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)	at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)	at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)	at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)	at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)	at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)	at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)	at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)	at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)	at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)	at com.sun.proxy.$Proxy762.submit(Unknown Source)	at edu.harvard.iq.dataverse.__EJB31_Generated__EjbDataverseEngine__Intf____Bean__.submit(Unknown Source)	at edu.harvard.iq.dataverse.DatasetPage.save(DatasetPage.java:2733)	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:498)	at javax.el.ELUtil.invokeMethod(ELUtil.java:332)	at javax.el.BeanELResolver.invoke(BeanELResolver.java:537)	at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:256)	at com.sun.el.parser.AstValue.invoke(AstValue.java:283)	at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)	at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)	at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)	at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)	at javax.faces.component.UICommand.broadcast(UICommand.java:315)	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)	at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:295)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)	at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:205)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)	at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:412)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)	at java.lang.Thread.run(Thread.java:745)