0 Replies Latest reply on Jun 6, 2009 8:18 PM by Bernhard Hurzeler

    CMS Portlet does not persist new content after restart of AS

    Bernhard Hurzeler Novice

      I have a critical issue that all the uploaded content (as admin) in the CMS gets lost after restarting JBoss.

      JBoss Portal Version: 2.7.2
      I downloaded it?
      JBoss AS Version: 4.2.3
      Database Vendor and Version: Postgres 8.3
      JDBC Connector and Version: postgresql-8.3-604.jdbc4.jar
      OS Platform: WinXP 32

      Is there perhaps a hibernat setting missing?

      I also get the following warn and error messages but the files from the archive are then visible anyhow.

      ...
      ache] node /wsp_node/98b32c61-831a-47dd-b018-ca03a105b021 not found
      ache] node /wsp_prop/98b32c61-831a-47dd-b018-ca03a105b021__http___www.jcp.org_jcr_1.0_created not found
      ache] node /wsp_prop/98b32c61-831a-47dd-b018-ca03a105b021__http___jboss.org_jcr_portalcms_lastmodified not found
      ache] node /wsp_prop/98b32c61-831a-47dd-b018-ca03a105b021__http___www.jcp.org_jcr_1.0_primaryType not found
      ache] node /wsp_prop/98b32c61-831a-47dd-b018-ca03a105b021__http___jboss.org_jcr_portalcms_description not found
      S] org.jboss.portal.cms.impl.jcr.JCRCMS@18cfd79
      kException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] C
      ransaction is in aborted state
      .internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1401)
      .internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
      .jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
      al.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:511)
      tiveMethodAccessorImpl.invoke0(Native Method)
      tiveMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      legatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      ect.Method.invoke(Method.java:597)
      nterceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      erver.Invocation.dispatch(Invocation.java:94)
      nterceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      erver.Invocation.invoke(Invocation.java:88)
      nterceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      erver.Invocation.invoke(Invocation.java:88)
      erver.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      erver.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      til.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
      ute(Unknown Source)
      al.cms.impl.jcr.command.AsyncStoreArchiveCommand$AsyncProcessor.run(AsyncStoreArchiveCommand.java:162)
      ad.run(Thread.java:619)
      SessionException: Session is closed!
      impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
      impl.SessionImpl.getJDBCContext(SessionImpl.java:1854)
      event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:305)
      event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
      impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
      impl.SessionImpl.list(SessionImpl.java:1114)
      impl.QueryImpl.list(QueryImpl.java:79)
      al.cms.hibernate.state.PortalCMSCacheLoader.loadManagedNode(PortalCMSCacheLoader.java:751)
      al.cms.hibernate.state.PortalCMSCacheLoader.saveVersionPropNodeEntry(PortalCMSCacheLoader.java:589)
      al.cms.hibernate.state.PortalCMSCacheLoader.put(PortalCMSCacheLoader.java:317)
      al.cms.hibernate.state.PortalCMSCacheLoader.put(PortalCMSCacheLoader.java:393)
      al.cms.hibernate.state.PortalCMSCacheLoader.prepare(PortalCMSCacheLoader.java:484)
      e.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:258)
      e.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:131)
      e.interceptors.Interceptor.invoke(Interceptor.java:68)
      e.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:887)
      e.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1170)
      e.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:75)
      .internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
      .arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:247)
      .arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
      .arjuna.AtomicAction.commit(AtomicAction.java:177)
      .internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1389)
      
      S] org.jboss.portal.cms.impl.jcr.JCRCMS@18cfd79
      eption: Transaction not active
      al.cms.impl.jcr.JackRabbitTransaction.rollback(JackRabbitTransaction.java:165)
      al.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:522)
      tiveMethodAccessorImpl.invoke0(Native Method)
      tiveMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      legatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      ect.Method.invoke(Method.java:597)
      nterceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      erver.Invocation.dispatch(Invocation.java:94)
      nterceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      erver.Invocation.invoke(Invocation.java:88)
      nterceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      erver.Invocation.invoke(Invocation.java:88)
      erver.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      erver.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      til.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
      ute(Unknown Source)
      al.cms.impl.jcr.command.AsyncStoreArchiveCommand$AsyncProcessor.run(AsyncStoreArchiveCommand.java:162)
      ad.run(Thread.java:619)
      S] org.jboss.portal.cms.impl.jcr.JCRCMS@18cfd79
      eption: BaseTransaction.rollback - [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no t
      
      .internal.jta.transaction.arjunacore.BaseTransaction.rollback(BaseTransaction.java:158)
      .jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:126)
      al.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:534)
      tiveMethodAccessorImpl.invoke0(Native Method)
      tiveMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      legatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      ect.Method.invoke(Method.java:597)
      nterceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      erver.Invocation.dispatch(Invocation.java:94)
      nterceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      erver.Invocation.invoke(Invocation.java:88)
      nterceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      erver.Invocation.invoke(Invocation.java:88)
      erver.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      erver.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      til.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
      ute(Unknown Source)
      al.cms.impl.jcr.command.AsyncStoreArchiveCommand$AsyncProcessor.run(AsyncStoreArchiveCommand.java:162)
      ad.run(Thread.java:619)
      StoreArchiveCommand] Asynchronous Processing of archive failed------------------------------------
      StoreArchiveCommand] org.jboss.portal.cms.impl.jcr.command.AsyncStoreArchiveCommand$AsyncProcessor@1cb7af5
      xception: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transact
      aborted] Can't commit because the transaction is in aborted state
      al.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:552)
      tiveMethodAccessorImpl.invoke0(Native Method)
      tiveMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      legatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      ect.Method.invoke(Method.java:597)
      nterceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      erver.Invocation.dispatch(Invocation.java:94)
      nterceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      erver.Invocation.invoke(Invocation.java:88)
      nterceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      erver.Invocation.invoke(Invocation.java:88)
      erver.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      erver.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      til.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
      ute(Unknown Source)
      al.cms.impl.jcr.command.AsyncStoreArchiveCommand$AsyncProcessor.run(AsyncStoreArchiveCommand.java:162)
      ad.run(Thread.java:619)
      ion.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhe
      cause the transaction is in aborted state
      .internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1401)
      .internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
      .jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
      al.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:511)
      
      SessionException: Session is closed!
      impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
      impl.SessionImpl.getJDBCContext(SessionImpl.java:1854)
      event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:305)
      event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
      impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
      impl.SessionImpl.list(SessionImpl.java:1114)
      impl.QueryImpl.list(QueryImpl.java:79)
      al.cms.hibernate.state.PortalCMSCacheLoader.loadManagedNode(PortalCMSCacheLoader.java:751)
      al.cms.hibernate.state.PortalCMSCacheLoader.saveVersionPropNodeEntry(PortalCMSCacheLoader.java:589)
      al.cms.hibernate.state.PortalCMSCacheLoader.put(PortalCMSCacheLoader.java:317)
      al.cms.hibernate.state.PortalCMSCacheLoader.put(PortalCMSCacheLoader.java:393)
      al.cms.hibernate.state.PortalCMSCacheLoader.prepare(PortalCMSCacheLoader.java:484)
      e.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:258)
      e.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:131)
      e.interceptors.Interceptor.invoke(Interceptor.java:68)
      e.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:887)
      e.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1170)
      e.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:75)
      .internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
      .arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:247)
      .arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
      .arjuna.AtomicAction.commit(AtomicAction.java:177)
      .internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1389)
      
      StoreArchiveCommand] -----------------------------------------------------------------------------