1

Windows 上の PostgreSQL 9.2 で Spring を使用してアプリケーションを作成しています。このアプリケーションを Windows 32 ビット OS で正常に実行しています。しかし、同じアプリケーションを Windows 64 ビット OS で実行しようとすると、次の例外が発生します。

Caused by: org.springframework.transaction.HeuristicCompletionException: Heuristic completion: outcome state is mixed; nested exception is javax.transaction.HeuristicMixedException: Heuristic Exception
    at org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1016)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
    at com.kensho.common.UIbundlDAOImpl$$EnhancerByCGLIB$$ca55a3ce.findAll(<generated>)
    at com.kensho.common.UIToolKitAdminBBean.getAllBundleItems(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:299)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:132)
    ... 38 more
Caused by: javax.transaction.HeuristicMixedException: Heuristic Exception
    at com.atomikos.icatch.jta.TransactionImp.rethrowAsJtaHeuristicMixedException(TransactionImp.java:77)
    at com.atomikos.icatch.jta.TransactionImp.commit(TransactionImp.java:238)
    at com.atomikos.icatch.jta.TransactionManagerImp.commit(TransactionManagerImp.java:498)
    at com.atomikos.icatch.jta.UserTransactionImp.commit(UserTransactionImp.java:129)
    at org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1009)
    ... 53 more
Caused by: com.atomikos.icatch.HeurHazardException: Heuristic Exception
    at com.atomikos.icatch.imp.CoordinatorStateHandler.rollback(CoordinatorStateHandler.java:802)
    at com.atomikos.icatch.imp.ActiveStateHandler.prepare(ActiveStateHandler.java:223)
    at com.atomikos.icatch.imp.CoordinatorImp.prepare(CoordinatorImp.java:833)
    at com.atomikos.icatch.imp.CoordinatorImp.terminate(CoordinatorImp.java:1160)
    at com.atomikos.icatch.imp.CompositeTerminatorImp.commit(CompositeTerminatorImp.java:92)
    at com.atomikos.icatch.jta.TransactionImp.commit(TransactionImp.java:236)

.... なぜこの問題が発生するのですか?

4

1 に答える 1

2

PostgreSQL 9.x および 10.x と組み合わせて、この問題は Seam および Apache JCR と組み合わせて発生し、PostgreSQL 構成の値が低すぎmax_connectionますmax_prepared_transactions

于 2018-11-07T15:27:36.057 に答える