Question
Ford Motor Company
US
Last activity: 6 Apr 2018 19:26 EDT
Getting IllegalResourceIn2PCTransactionException after 7.2 upgrade
Hi All,
We have upgrade our application from PRPC 6.2 sp2 into Pega 7.2 with split schema approach.
After the upgrade, when we try to execute/save any rule getting the below error on the two phase commit.
2016-10-20 15:38:39,015 [ TP_http : 43] [TABTHREAD0] [App:01.01.05] ( WBSave._baseclass.Action) ERROR wwwdev.......com| - Error in commit()
com.pega.pegarules.pub.database.ConnectionException: Database-General Problem clearing out old indexes for instance DATA-ADMIN-OPERATOR-ID , purpose RuleReference 0 enlist: caught Exception
DatabaseException caused by prior exception: java.sql.SQLException: enlist: caught Exception
| SQL Code: 0 | SQL State: null
From: (H08729E85A432EF49C9D8020350584723: Proprietary information hidden)
SQL: delete from Rules.pr_index_reference where pxInsIndexedKey = ? and pxIndexPurpose = ?
Hi All,
We have upgrade our application from PRPC 6.2 sp2 into Pega 7.2 with split schema approach.
After the upgrade, when we try to execute/save any rule getting the below error on the two phase commit.
2016-10-20 15:38:39,015 [ TP_http : 43] [TABTHREAD0] [App:01.01.05] ( WBSave._baseclass.Action) ERROR wwwdev.......com| - Error in commit()
com.pega.pegarules.pub.database.ConnectionException: Database-General Problem clearing out old indexes for instance DATA-ADMIN-OPERATOR-ID , purpose RuleReference 0 enlist: caught Exception
DatabaseException caused by prior exception: java.sql.SQLException: enlist: caught Exception
| SQL Code: 0 | SQL State: null
From: (H08729E85A432EF49C9D8020350584723: Proprietary information hidden)
SQL: delete from Rules.pr_index_reference where pxInsIndexedKey = ? and pxIndexPurpose = ?
Caused by SQL Problems.
Problem #1, SQLState null, Error code 0: java.sql.SQLException: enlist: caught Exception
at com.pega.pegarules.data.internal.access.ExceptionInformation.createExceptionDueToDBFailure(ExceptionInformation.java:256)
at com.pega.pegarules.data.internal.access.Indexer.clearIndexesForPurpose(Indexer.java:1379)
at com.pega.pegarules.data.internal.access.Committer.performOps(Committer.java:162)
at com.pega.pegarules.data.internal.access.DatabaseImpl.attemptToProcessUpdates(DatabaseImpl.java:2751)
at com.pega.pegarules.data.internal.access.DatabaseImpl.processUpdates(DatabaseImpl.java:2400)
at com.pega.pegarules.data.internal.access.DatabaseImpl.commit(DatabaseImpl.java:2127)
at com.pegarules.generated.activity.ra_action_wbsave_e5084315e488b7e6a97b8fcc7c0c5bf9.step5_circum0(ra_action_wbsave_e5084315e488b7e6a97b8fcc7c0c5bf9.java:738)
at com.pegarules.generated.activity.ra_action_wbsave_e5084315e488b7e6a97b8fcc7c0c5bf9.perform(ra_action_wbsave_e5084315e488b7e6a97b8fcc7c0c5bf9.java:140)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)
at com.pegarules.generated.activity.ra_action_rmactionsave_16cfff2a41335510d8b2f9f7f80c171c.step4_circum0(ra_action_rmactionsave_16cfff2a41335510d8b2f9f7f80c171c.java:374)
at com.pegarules.generated.activity.ra_action_rmactionsave_16cfff2a41335510d8b2f9f7f80c171c.perform(ra_action_rmactionsave_16cfff2a41335510d8b2f9f7f80c171c.java:120)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)
at com.pegarules.generated.activity.ra_action_processrmaction_695ef285353bd79e399d8d2de12e0017.step6_circum0(ra_action_processrmaction_695ef285353bd79e399d8d2de12e0017.java:697)
at com.pegarules.generated.activity.ra_action_processrmaction_695ef285353bd79e399d8d2de12e0017.perform(ra_action_processrmaction_695ef285353bd79e399d8d2de12e0017.java:158)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)
at com.pegarules.generated.activity.ra_action_pzruleformtoolbaraction_92e3dff3a770b8ae9e3f0d83f3cb2fbf.step4_circum0(ra_action_pzruleformtoolbaraction_92e3dff3a770b8ae9e3f0d83f3cb2fbf.java:416)
at com.pegarules.generated.activity.ra_action_pzruleformtoolbaraction_92e3dff3a770b8ae9e3f0d83f3cb2fbf.perform(ra_action_pzruleformtoolbaraction_92e3dff3a770b8ae9e3f0d83f3cb2fbf.java:121)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pegarules.generated.activity.ra_action_pzrunactionwrapper_056ec03796d8a13802f156886066036d.step1_circum0(ra_action_pzrunactionwrapper_056ec03796d8a13802f156886066036d.java:318)
at com.pegarules.generated.activity.ra_action_pzrunactionwrapper_056ec03796d8a13802f156886066036d.perform(ra_action_pzrunactionwrapper_056ec03796d8a13802f156886066036d.java:69)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:466)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3093)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:390)
at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1277)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1015)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:848)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:331)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:817)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:327)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl$4.run(EngineImpl.java:275)
at java.security.AccessController.doPrivileged(AccessController.java:338)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:272)
at com.pega.pegarules.session.internal.engineinterface.etier.ejb.EngineBean.invokeEngine(EngineBean.java:225)
at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingException(AppServerBridgeToPega.java:246)
at com.pega.pegarules.internal.etier.ejb.EngineBeanBoot.invokeEngine(EngineBeanBoot.java:168)
at com.pega.pegarules.internal.etier.interfaces.EJSLocalStatelessEngineBMT_f2439d86.invokeEngine(Unknown Source)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223)
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:574)
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:374)
at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1111)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:914)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:456)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:518)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:309)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:280)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1720)
Caused by:
java.sql.SQLException: enlist: caught Exception
at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java:1703)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:802)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:2786)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:2739)
at com.pega.pegarules.data.internal.access.DatabaseConnectionImpl.prepareStatement(DatabaseConnectionImpl.java:578)
at com.pega.pegarules.data.internal.access.Indexer.clearIndexesForPurpose(Indexer.java:1358)
... 81 more
Caused by:
javax.resource.ResourceException: enlist: caught Exception
at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(LocalTransactionWrapper.java:710)
at com.ibm.ejs.j2c.ConnectionManager.lazyEnlist(ConnectionManager.java:2755)
at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.lazyEnlist(WSRdbManagedConnectionImpl.java:2596)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:732)
... 85 more
Caused by:
com.ibm.ws.Transaction.IllegalResourceIn2PCTransactionException: Illegal attempt to enlist multiple 1PC XAResources
at com.ibm.ws.tx.jta.RegisteredResources.enlistResource(RegisteredResources.java:871)
at com.ibm.ws.tx.jta.TransactionImpl.enlistResource(TransactionImpl.java:1849)
at com.ibm.tx.jta.impl.EmbeddableTranManagerSet.enlistOnePhase(EmbeddableTranManagerSet.java:195)
at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(LocalTransactionWrapper.java:607)
I have tried the below option mentioned in the PDN,
1. Disabled the LPS on the Websphere
2. Removed the 2 datasource on the PegaData and maintain one Datasource for Rules and Data, as both schema on the same database
3. Verified the JNDI binding on the schema details.
Can you please someone face this issue? How did resolved?
Regards,
Anandh
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.