As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
String trxId = AlfrescoTransactionSupport.getTransactionId(); if (trxId == null) { throw new RepositoryException("Session must be used within the context of a transaction."); }
Hi Russ,We've yet to try out JCR-RMI in-house, so you're leading the way here!How are you managing the transaction on your side?Thanks
Changes have been made to the way we integrate transactions into our JCR layer. I haven't tried the RMI layer against it yet, but it may now behave.
Exception in thread "main" java.lang.RuntimeException: UserTransaction may not be accessed by multiple threads at org.alfresco.util.transaction.SpringAwareUserTransaction.getTransactionInfo(SpringAwareUserTransaction.java:234) at org.alfresco.util.transaction.SpringAwareUserTransaction.rollback(SpringAwareUserTransaction.java:435) at org.alfresco.jcr.session.SessionImpl$InnerTransaction.rollback(SessionImpl.java:965) at org.alfresco.jcr.session.SessionImpl.logout(SessionImpl.java:654) 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.alfresco.jcr.util.JCRProxyFactory$SessionContextInvocationHandler.invoke(JCRProxyFactory.java:154) at $Proxy62.logout(Unknown Source) at org.apache.jackrabbit.rmi.server.ServerSession.logout(ServerSession.java:229)