Uploaded image for project: 'Tuigwaa'
  1. Tuigwaa
  2. TUIGWAA-140

Slide のトランザクションでロックが取得できずにページの作成が出来ない事がある

XMLWordPrintable

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major Major
    • None
    • Affects Version/s: None
    • Component/s: cms
    • None

      再現手順はまだ正しく判明していないが、以下のように TxFileContentStore でロックを取得できずにページの保存が出来ない事がある。
      以下スタックトレース。(ファイルへのパス等は例)
      この状態になると、そのページ名でのページ作成はアプリケーションサーバを再起動するまでは行う事が出来なくなる。

      16 Nov 2006 11:56:53 - file-content-store - CRITICAL - Thread Thread[TP-Processor12,5,main] failed to prepare transaction branch [B@2e60ec56
      org.apache.commons.transaction.file.ResourceManagerException: [B@2e60ec56: Could not upgrade to commit lock for resource at '/webfile/testsite/users/register_staffaccount_finish.html_1.0' (ERR_NO_LOCK)
      at org.apache.commons.transaction.file.FileResourceManager$TransactionContext.upgradeLockToCommit(FileResourceManager.java:1400)
      at org.apache.commons.transaction.file.FileResourceManager.prepareTransaction(FileResourceManager.java:542)
      at org.apache.slide.store.txfile.AbstractTxFileStoreService.prepare(AbstractTxFileStoreService.java:200)
      at org.apache.slide.transaction.SlideTransaction.commit(SlideTransaction.java:251)
      at org.apache.slide.transaction.SlideTransactionManager.commit(SlideTransactionManager.java:186)
      at org.apache.slide.common.NamespaceAccessTokenImpl.commit(NamespaceAccessTokenImpl.java:423)
      at com.isenshi.util.extlib.SlideRequiredInterceptor.commit(SlideRequiredInterceptor.java:59)
      at com.isenshi.util.extlib.SlideRequiredInterceptor.invoke(SlideRequiredInterceptor.java:84)
      at org.seasar.tuigwaa.cms.ContentsStoreServiceSlideImpl$$EnhancedByS2AOP$$7a8d0b0f$$MethodInvocation$$createPage16.proceed(MethodInvocationClassGenerator.java)
      at org.seasar.tuigwaa.cms.ContentsStoreServiceSlideImpl$$EnhancedByS2AOP$$7a8d0b0f.createPage(ContentsStoreServiceSlideImpl$$EnhancedByS2AOP$$7a8d0b0f.java)
      at org.seasar.tuigwaa.cms.ContentsServiceImpl.savePage(ContentsServiceImpl.java:141)

      16 Nov 2006 11:56:53 - org.apache.slide.transaction.SlideTransaction - WARNING - Prepare failure: Resource manager TxContentFileStore at /app/tomcat/webapps/tuigwaa/WEB-INF/classes/webdav/content/ working on
      /app/tomcat/webapps/tuigwaa/WEB-INF/classes/work/content/ Error code UNKNOWN in Transaction 1530 xid TP-Processor12-1163645572974-1530- in thread TP-Processor12
      javax.transaction.xa.XAException: org.apache.commons.transaction.file.ResourceManagerException: [B@2e60ec56: Could not upgrade to commit lock for resource at '/webfile/p/users/register_staffaccount_finish.html_1.0' (ERR_NO_LOCK)
      at org.apache.slide.store.txfile.AbstractTxFileStoreService.createXAException(AbstractTxFileStoreService.java:451)
      at org.apache.slide.store.txfile.AbstractTxFileStoreService.prepare(AbstractTxFileStoreService.java:215)
      at org.apache.slide.transaction.SlideTransaction.commit(SlideTransaction.java:251)
      at org.apache.slide.transaction.SlideTransactionManager.commit(SlideTransactionManager.java:186)
      at org.apache.slide.common.NamespaceAccessTokenImpl.commit(NamespaceAccessTokenImpl.java:423)
      at com.isenshi.util.extlib.SlideRequiredInterceptor.commit(SlideRequiredInterceptor.java:59)
      at com.isenshi.util.extlib.SlideRequiredInterceptor.invoke(SlideRequiredInterceptor.java:84)
      at org.seasar.tuigwaa.cms.ContentsStoreServiceSlideImpl$$EnhancedByS2AOP$$7a8d0b0f$$MethodInvocation$$createPage16.proceed(MethodInvocationClassGenerator.java)
      at org.seasar.tuigwaa.cms.ContentsStoreServiceSlideImpl$$EnhancedByS2AOP$$7a8d0b0f.createPage(ContentsStoreServiceSlideImpl$$EnhancedByS2AOP$$7a8d0b0f.java)
      at org.seasar.tuigwaa.cms.ContentsServiceImpl.savePage(ContentsServiceImpl.java:141)
      at org.seasar.tuigwaa.controller.PageAction.doPageSave(PageAction.java:217)
      at org.seasar.tuigwaa.controller.PageAction.save(PageAction.java:131)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      このような状態になると、アプリケーションサーバ停止時にも以下のように正しくサービスを停止出来ない。

      16 Nov 2006 12:07:20 - org.apache.slide.common.Namespace - INFO - Shutting down service filestore(org.apache.slide.s
      tore.ExtendedStore)
      16 Nov 2006 12:07:20 - org.apache.commons.transaction.file.FileResourceManager - INFO - Stopping RM at '/app/tomcat/webapps/cn-tuigwaa/WEB-INF/classes/webdav/metadata/' / '/app/tomca
      t/webapps/cn-tuigwaa/WEB-INF/classes/work/metadata/'
      16 Nov 2006 12:07:20 - org.apache.commons.transaction.file.FileResourceManager - INFO - Waiting for tx 10eeb35b8c8 t
      o finish for 240000 milli seconds
      16 Nov 2006 12:11:20 - org.apache.commons.transaction.file.FileResourceManager - WARNING - Tx 10eeb35b8c8 failed to
      finish in given time
      16 Nov 2006 12:11:20 - org.apache.commons.transaction.file.FileResourceManager - WARNING - Failed to stop RM
      16 Nov 2006 12:11:20 - org.apache.slide.common.Domain - WARNING - Service TxXMLFileDescriptorsStore at /app/tomcat/webapps/cn-tuigwaa/WEB-INF/classes/webdav/metadata/ working on /ap
      p/tomcat/webapps/cn-tuigwaa/WEB-INF/classes/work/metadata/ disconnection failed : Shut down timed out
      16 Nov 2006 12:11:20 - org.apache.slide.common.Namespace - INFO - Shutting down service users(com.isenshi.util.extli
      b.TgwExtendedStore)
      16 Nov 2006 12:11:20 - org.apache.slide.common.Namespace - INFO - Shutting down service roles(com.isenshi.util.extli
      b.TgwExtendedStore)
      Service TxXMLFileDescriptorsStore at /app/tomcat/webapps/cn-tuigwaa/WEB-INF/classes/webdav/
      metadata/ working on /app/tomcat/webapps/cn-tuigwaa/WEB-INF/classes/work/metadata/ disconn
      ection failed : Shut down timed out

      at org.apache.slide.common.Namespace.disconnectServices(Namespace.java:545)
      at org.apache.slide.common.NamespaceAccessTokenImpl.disconnect(NamespaceAccessTokenImpl.java:348)
      at org.seasar.tuigwaa.system.TgwSystemServiceImpl.destroy(TgwSystemServiceImpl.java:80)
      at org.seasar.tuigwaa.controller.TuigwaaActionServlet.destroy(TuigwaaActionServlet.java:73)
      at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1326)
      at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1654)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4345)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)
      at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)
      at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
      at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
      at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
      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:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
      2006/11/16 12:11:23 org.apache.coyote.http11.Http11BaseProtocol destroy
      情報: Coyote HTTP/1.1を http-48081 で停止します
      2006/11/16 12:11:23 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
      情報: Failed shutdown of Apache Portable Runtime

            Assignee:
            Unassigned Unassigned
            Reporter:
            someda someda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: