After I upgraded my EJBCA CA from version 6.1.1 to 6.2.0 I see a lot of errors "ORA-00001: unique constraint (EJBCA.CERTIFICATEDATA_IDX12) violated" in error logs.
Software:
Oracle DB
jboss-as-7.1.1.Final
apache-ant-1.9.3
java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el6_5.x86_64
java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el6_5.x86_64
06:43:00,315INFO[org.cesecore.audit.impl.log4j.Log4jDevice](MSCservicethread1-2)2014-08-2206:43:00+00:00;EJBCA_STARTING;SUCCESS;SERVICE;EJBCA;StartServicesServlet.init;;testca-somehost.ee;;msg=Init,EJBCA6.2.0(r19221)startup.06:43:00,364INFO[org.ejbca.ui.web.admin.configuration.StartServicesServlet](MSCservicethread1-2)NodatabaseintegrityprotectionavailableinthisversionofEJBCA.06:43:00,365INFO[org.cesecore.audit.impl.log4j.Log4jDevice](MSCservicethread1-2)2014-08-2206:43:00+00:00;LOG_MANAGEMENT_CHANGE;VOID;SECURITY_AUDIT;CORE;StartServicesServlet.init;;;;msg=Nointegrityprotectedsecurityauditloggerdevicesconfigured.06:43:00,593INFO[org.cesecore.audit.impl.log4j.Log4jDevice](EJBdefault-2)2014-08-2206:43:00+00:00;ACCESS_CONTROL;SUCCESS;ACCESSCONTROL;CORE;ServiceSession;;;;resource0=/ca/15980718506:43:00,604INFO[org.ejbca.core.ejb.authorization.ComplexAccessControlSessionBean](MSCservicethread1-2)RolesorCAsexist,notintializingSuperAdministratorRole06:43:00,618INFO[org.cesecore.keys.token.SoftCryptoToken](EJBdefault-1)ActivatedCryptoTokenwithid-688489600.06:43:00,626INFO[org.ejbca.core.ejb.services.ServiceSessionBean](EJBdefault-2)ServiceCRLUpdaterexecutedsuccessfully.06:43:00,653INFO[org.cesecore.certificates.ocsp.cache.OcspSigningCache](EJBdefault-1)SettingCAwithDNCN=MyCA,OU=Me,O=Mycompany,C=EEasdefaultOCSPresponder.06:43:01,036INFO[org.cesecore.audit.impl.log4j.Log4jDevice](MSCservicethread1-2)2014-08-2206:43:01+00:00;ACCESS_CONTROL;SUCCESS;ACCESSCONTROL;CORE;Internaldatabaseconstrainttest;;;;resource0=/ca/-46512086606:43:01,071INFO[org.cesecore.audit.impl.log4j.Log4jDevice](MSCservicethread1-2)2014-08-2206:43:01+00:00;CERT_STORED;SUCCESS;CERTIFICATE;CORE;Internaldatabaseconstrainttest;-465120866;499602D2;checkUniqueIndexTestUserNotToBeUsed_fjasdfjsdjfsad;msg=Certificatestoredforusername'checkUniqueIndexTestUserNotToBeUsed_fjasdfjsdjfsad',fp=05a219d835622653192c30eeeee8f01f918b30fb,subjectDN'CN=Allow certificate serial number override 2',issuerDN'CN=CA for EJBCA test certificates',serialNo=499602D2.06:43:01,115WARN[org.hibernate.engine.jdbc.spi.SqlExceptionHelper](MSCservicethread1-2)SQLError:1,SQLState:2300006:43:01,115ERROR[org.hibernate.engine.jdbc.spi.SqlExceptionHelper](MSCservicethread1-2)ORA-00001:uniqueconstraint(EJBCA.CERTIFICATEDATA_IDX12)violated06:43:01,117WARN[com.arjuna.ats.arjuna](MSCservicethread1-2)ARJUNA012125:TwoPhaseCoordinator.beforeCompletion-failedforSynchronizationImple<0:ffff0a41760b:-7e0364c2:53f6e665:62,org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization@2bbf673d>:javax.persistence.PersistenceException:org.hibernate.exception.ConstraintViolationException:ORA-00001:uniqueconstraint(EJBCA.CERTIFICATEDATA_IDX12)violatedatorg.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atcom.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)atcom.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:273)atcom.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:93)atcom.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)atcom.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)atcom.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)atcom.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)atorg.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:232)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:328)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:192)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.cesecore.certificates.certificate.CertificateStoreSessionLocal$$$view33.checkForUniqueCertificateSerialNumberIndexInTransaction(UnknownSource)[cesecore-ejb-interface.jar:]atorg.cesecore.certificates.certificate.CertificateStoreSessionBean.isUniqueCertificateSerialNumberIndex(CertificateStoreSessionBean.java:1144)[cesecore-ejb.jar:]atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)[rt.jar:1.7.0_65]atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[rt.jar:1.7.0_65]atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[rt.jar:1.7.0_65]atjava.lang.reflect.Method.invoke(Method.java:606)[rt.jar:1.7.0_65]atorg.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)[jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:365)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:194)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.cesecore.certificates.certificate.CertificateStoreSessionLocal$$$view33.isUniqueCertificateSerialNumberIndex(UnknownSource)[cesecore-ejb-interface.jar:]atorg.cesecore.certificates.certificate.CertificateCreateSessionBean.isUniqueCertificateSerialNumberIndex(CertificateCreateSessionBean.java:703)[cesecore-ejb.jar:]atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)[rt.jar:1.7.0_65]atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[rt.jar:1.7.0_65]atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[rt.jar:1.7.0_65]atjava.lang.reflect.Method.invoke(Method.java:606)[rt.jar:1.7.0_65]atorg.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)[jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.cesecore.certificates.certificate.CertificateCreateSessionLocal$$$view36.isUniqueCertificateSerialNumberIndex(UnknownSource)[cesecore-ejb-interface.jar:]atorg.ejbca.ui.web.admin.configuration.StartServicesServlet.ejbcaInit(StartServicesServlet.java:286)atorg.ejbca.ui.web.admin.configuration.StartServicesServlet.init(StartServicesServlet.java:141)atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:3873)atorg.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)atorg.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)atorg.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_65]atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_65]atjava.lang.Thread.run(Thread.java:745)[rt.jar:1.7.0_65]Causedby:org.hibernate.exception.ConstraintViolationException:ORA-00001:uniqueconstraint(EJBCA.CERTIFICATEDATA_IDX12)violatedatorg.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:74)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atcom.sun.proxy.$Proxy80.executeUpdate(UnknownSource)atorg.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:56)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2849)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:104)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]Causedby:java.sql.SQLIntegrityConstraintViolationException:ORA-00001:uniqueconstraint(EJBCA.CERTIFICATEDATA_IDX12)violatedatoracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)atoracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)atoracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:951)atoracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:513)atoracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:227)atoracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)atoracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208)atoracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1046)atoracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)atoracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3613)atoracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3694)atoracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1354)atorg.jboss.jca.adapters.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:115)atorg.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)[rt.jar:1.7.0_65]atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[rt.jar:1.7.0_65]atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[rt.jar:1.7.0_65]atjava.lang.reflect.Method.invoke(Method.java:606)[rt.jar:1.7.0_65]atorg.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]...136more06:43:01,198INFO[org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl](MSCservicethread1-2)HHH000010:OnreleaseofbatchitstillcontainedJDBCstatements06:43:01,199ERROR[org.jboss.ejb3.invocation](MSCservicethread1-2)JBAS014134:EJBInvocationfailedoncomponentCertificateStoreSessionBeanformethodpublicabstractvoidorg.cesecore.certificates.certificate.CertificateStoreSessionLocal.checkForUniqueCertificateSerialNumberIndexInTransaction(org.cesecore.authentication.tokens.AuthenticationToken,java.security.cert.Certificate,java.lang.String,java.lang.String,int,int,int,java.lang.String,long)throwsjavax.ejb.CreateException,org.cesecore.authorization.AuthorizationDeniedException:javax.ejb.EJBTransactionRolledbackException:Transactionrolledbackatorg.jboss.as.ejb3.tx.CMTTxInterceptor.handleEndTransactionException(CMTTxInterceptor.java:115)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:95)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:232)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:328)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:192)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.cesecore.certificates.certificate.CertificateStoreSessionLocal$$$view33.checkForUniqueCertificateSerialNumberIndexInTransaction(UnknownSource)[cesecore-ejb-interface.jar:]atorg.cesecore.certificates.certificate.CertificateStoreSessionBean.isUniqueCertificateSerialNumberIndex(CertificateStoreSessionBean.java:1144)[cesecore-ejb.jar:]atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)[rt.jar:1.7.0_65]atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[rt.jar:1.7.0_65]atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[rt.jar:1.7.0_65]atjava.lang.reflect.Method.invoke(Method.java:606)[rt.jar:1.7.0_65]atorg.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)[jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:365)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:194)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.cesecore.certificates.certificate.CertificateStoreSessionLocal$$$view33.isUniqueCertificateSerialNumberIndex(UnknownSource)[cesecore-ejb-interface.jar:]atorg.cesecore.certificates.certificate.CertificateCreateSessionBean.isUniqueCertificateSerialNumberIndex(CertificateCreateSessionBean.java:703)[cesecore-ejb.jar:]atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)[rt.jar:1.7.0_65]atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[rt.jar:1.7.0_65]atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[rt.jar:1.7.0_65]atjava.lang.reflect.Method.invoke(Method.java:606)[rt.jar:1.7.0_65]atorg.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)[jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]atorg.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]atorg.cesecore.certificates.certificate.CertificateCreateSessionLocal$$$view36.isUniqueCertificateSerialNumberIndex(UnknownSource)[cesecore-ejb-interface.jar:]atorg.ejbca.ui.web.admin.configuration.StartServicesServlet.ejbcaInit(StartServicesServlet.java:286)atorg.ejbca.ui.web.admin.configuration.StartServicesServlet.init(StartServicesServlet.java:141)atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:3873)atorg.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)atorg.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)atorg.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_65]atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_65]atjava.lang.Thread.run(Thread.java:745)[rt.jar:1.7.0_65]Causedby:javax.transaction.RollbackException:ARJUNA016053:Couldnotcommittransaction.atcom.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1177)atcom.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)atcom.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)atorg.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]...113moreCausedby:javax.persistence.PersistenceException:org.hibernate.exception.ConstraintViolationException:ORA-00001:uniqueconstraint(EJBCA.CERTIFICATEDATA_IDX12)violatedatorg.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atcom.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)atcom.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:273)atcom.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:93)atcom.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)atcom.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)...116moreCausedby:org.hibernate.exception.ConstraintViolationException:ORA-00001:uniqueconstraint(EJBCA.CERTIFICATEDATA_IDX12)violatedatorg.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:74)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atcom.sun.proxy.$Proxy80.executeUpdate(UnknownSource)atorg.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:56)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2849)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]atorg.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:104)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]...122moreCausedby:java.sql.SQLIntegrityConstraintViolationException:ORA-00001:uniqueconstraint(EJBCA.CERTIFICATEDATA_IDX12)violatedatoracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)atoracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)atoracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:951)atoracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:513)atoracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:227)atoracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)atoracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208)atoracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1046)atoracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)atoracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3613)atoracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3694)atoracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1354)atorg.jboss.jca.adapters.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:115)atorg.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)[rt.jar:1.7.0_65]atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[rt.jar:1.7.0_65]atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[rt.jar:1.7.0_65]atjava.lang.reflect.Method.invoke(Method.java:606)[rt.jar:1.7.0_65]atorg.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]...136more06:43:01,297INFO[org.cesecore.certificates.certificate.CertificateStoreSessionBean](MSCservicethread1-2)certificateStoreSession.checkForUniqueCertificateSerialNumberIndexInTransactionthrewThrowable(normalifthereisauniqueissuerDN/serialNumberindex):Transactionrolledback06:43:01,297INFO[org.cesecore.certificates.certificate.CertificateStoreSessionBean](MSCservicethread1-2)UniqueindexinCertificateDatatableforcertificateserialnumber06:43:01,317INFO[org.cesecore.certificates.ocsp.OcspResponseGeneratorSessionBean](MSCservicethread1-2)NoOcspKeyBindingsfound.Processingocsp.propertiestoseeifweneedtoperformconversion.06:43:01,317INFO[org.cesecore.certificates.ocsp.OcspResponseGeneratorSessionBean](MSCservicethread1-2)NotinitingOCSPreloadtimers,therearealreadysome.06:43:01,328INFO[org.jboss.web](MSCservicethread1-2)JBAS018210:Registeringwebcontext:/ejbca/adminweb06:43:01,329INFO[org.jboss.as](MSCservicethread1-1)JBAS015951:Adminconsolelisteningonhttp://127.0.0.1:999006:43:01,329INFO[org.jboss.as](MSCservicethread1-1)JBAS015874:JBossAS7.1.1.Final"Brontes"startedin19505ms-Started2245of2350services(104servicesarepassiveoron-demand)06:43:01,394INFO[org.jboss.as.server](DeploymentScanner-threads-2)JBAS018559:Deployed"ejbca.ear"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is only during startup right? So it only happens once. This is normal and due to the fact that it is not possible to hide this message, which is the result of EJBCA testing for a unique constraint in the database.
You can see it from the final message "Unique index in CertificateData table for certificate serial number".
Hello
After I upgraded my EJBCA CA from version 6.1.1 to 6.2.0 I see a lot of errors "ORA-00001: unique constraint (EJBCA.CERTIFICATEDATA_IDX12) violated" in error logs.
Software:
Oracle DB
jboss-as-7.1.1.Final
apache-ant-1.9.3
java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el6_5.x86_64
java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el6_5.x86_64
This is only during startup right? So it only happens once. This is normal and due to the fact that it is not possible to hide this message, which is the result of EJBCA testing for a unique constraint in the database.
You can see it from the final message "Unique index in CertificateData table for certificate serial number".
Cheers,
Tomas
Save time and money with an Enterprise support subscription. Please see www.primekey.se for more information.
http://www.primekey.se/Products/EJBCA+PKI/
http://www.primekey.se/Services/Support/