02-04-2008 07:32 AM
20:15:23,299 http-8080-Processor22 INFO [org.alfresco.jcr.session.SessionImpl.init(SessionImpl.java:191)] 18c0e26b-d30a-11dc-97ba-415da2aefe8f
20:15:23,303 http-8080-Processor22 INFO [org.alfresco.jcr.session.SessionImpl$OuterTransaction.begin(SessionImpl.java:923)] relying on existing
20:15:24,457 http-8080-Processor22 INFO [org.plutext.server.io.ChunkingSaveToJCR.save(ChunkingSaveToJCR.java:158)] Wrote out:
<?xml version="1.0" encoding="UTF-8"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
:
<Override PartName="/skeleton.xml" ContentType="application/plutext-skeleton"/>
:
</Types>
20:15:24,475 http-8080-Processor22 INFO [org.docx4j.openpackaging.io.SaveToJCR.saveRawXmlPart(SaveToJCR.java:277)] made mix:versionable
20:15:24,527 http-8080-Processor22 INFO [org.alfresco.jcr.session.SessionImpl.save(SessionImpl.java:449)] save() ..
20:15:24,528 http-8080-Processor22 INFO [org.alfresco.jcr.session.SessionImpl$OuterTransaction.begin(SessionImpl.java:923)] relying on existing
20:15:24,592 http-8080-Processor22 INFO [org.alfresco.repo.version.VersionServiceImpl.createVersion(VersionServiceImpl.java:299)] Creating version.. using$Proxy3
20:15:24,819 http-8080-Processor22 INFO [org.alfresco.repo.node.db.DbNodeServiceImpl.createAssociation(DbNodeServiceImpl.java:1384)] creating assocs
20:15:24,994 http-8080-Processor22 INFO [org.docx4j.openpackaging.io.SaveToJCR.saveRawXmlPart(SaveToJCR.java:360)] PUT SUCCESS: [Content_Types].xml(/app:company_home/app:user_homes/sys:Jason_x0027_s_x0020_Home_x0020_Space/cm:FEB27.docx/cm:_x005b_Content_Types_x005d_.xml) VERSION 1.0
20:15:25,575 http-8080-Processor22 INFO [org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.flush(HibernateNodeDaoServiceImpl.java:340)] flushing
20:15:34,713 http-8080-Processor22 INFO [org.plutext.server.io.ChunkingLoadFromJCR.deprecatedGetDocumentFromJCRPart(ChunkingLoadFromJCR.java:258)] Fetching cm:_x005b_Content_Types_x005d_.xml
20:15:34,724 http-8080-Processor22 INFO [org.docx4j.JcrNodeMapper.AlfrescoJcrNodeMapper.getJcrData(AlfrescoJcrNodeMapper.java:50)] getting {http://www.alfresco.org/model/content/1.0}content
getting {http://www.alfresco.org/model/content/1.0}content
20:15:34,730 http-8080-Processor22 WARN [org.docx4j.openpackaging.io.Load.debugPrint(Load.java:54)] <?xml version="1.0" encoding="UTF-8"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
:
<Override ContentType="application/plutext-skeleton" PartName="/skeleton.xml"/>
:
</Types>
20:15:37,478 http-8080-Processor24 INFO [org.alfresco.jcr.session.SessionImpl.init(SessionImpl.java:191)] 2138b389-d30a-11dc-97ba-415da2aefe8f
20:15:37,699 http-8080-Processor24 WARN [org.docx4j.openpackaging.io.Load.debugPrint(Load.java:54)] <?xml version="1.0" encoding="UTF-8"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
:
// Where is my data?!
:
</Types>
20:16:06,168 http-8080-Processor24 INFO [org.alfresco.jcr.session.SessionImpl.init(SessionImpl.java:191)] 324f657a-d30a-11dc-97ba-415da2aefe8f
20:16:06,304 http-8080-Processor24 INFO [org.alfresco.repo.webdav.plutext.GetMethod.executeImpl(GetMethod.java:300)] 1.0
20:16:06,312 http-8080-Processor24 INFO [org.alfresco.repo.webdav.plutext.GetMethod.executeImpl(GetMethod.java:301)] <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels" />
:
<Override ContentType="application/plutext-skeleton" PartName="/skeleton.xml" />
:
</Types>
02-06-2008 11:00 AM
02-07-2008 08:43 AM
The first and second transactions appear to be accessing the content from a different (JCR) API compared to the third transaction (WebDAV).
Is the second transaction running synchronously after the first?
If you put a pause in the second transaction, does the data become available?
What version of the product are you developing against?
Are the different access methods going against the same machine?
Switch on debugging for:
log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction
02-08-2008 04:57 AM
.. today I'm having trouble replicating the behaviour. This is a bit of a surprise, because previously, the behaviour happened consistently.
Otherwise, I guess I'll leave that debugging on, and wait to see whether it happens again. I'm going to install things on another server tomorrow, so it will be interesting to see whether the problem shows up there.
02-08-2008 05:16 AM
I imagine putting the delay in the second transaction would amount to the same thing.Could you verify that the data is not there immediately after saving the JCR session using another JCR session.
02-08-2008 08:37 AM
can you go through the logs and locate the start of the JCR save and locate the transaction begin and end that apply to it?
If you can verify that a second sequential JCR session doesn't see the first's data, then we probably have an issue in the JCR save code.
12:37:37,231 http-8080-Processor23 INFO [org.alfresco.repo.webdav.WebDAVMethod$1.execute(WebDAVMethod.java:146)] .executeImpl() returned.
12:37:37,231 http-8080-Processor23 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:305)] Completing transaction for [UserTransaction]
12:37:44,532 http-8080-Processor23 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:457)] Committed user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@1ed2fe7 <——- end of first transaction!
12:37:44,539 http-8080-Processor23 INFO [org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:156)] .. doInTransaction() returned.
12:37:44,540 http-8080-Processor23 DEBUG [org.alfresco.repo.webdav.plutext.WebDAVServlet.service(WebDAVServlet.java:221)] GET took 27452ms to execute
13:16:36,833 http-8080-Processor24 INFO [org.alfresco.repo.webdav.plutext.WebDAVServlet.createMethod(WebDAVServlet.java:235)] createMethod invoked.
13:16:36,835 http-8080-Processor24 INFO [org.alfresco.repo.webdav.plutext.WebDAVServlet.createMethod(WebDAVServlet.java:241)] WebDAV request GET on path /alfresco/plutextwebdav/User%20Homes/jason/SEC7.docx
13:16:36,835 http-8080-Processor24 INFO [org.alfresco.repo.webdav.plutext.WebDAVServlet.createMethod(WebDAVServlet.java:270)] invoking setDetails.
13:16:36,836 http-8080-Processor24 INFO [org.alfresco.repo.webdav.plutext.WebDAVMethod.setDetails(WebDAVMethod.java:65)] m_davHelper set; org.alfresco.repo.webdav.plutext.WebDAVHelper
13:16:36,836 http-8080-Processor24 INFO [org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:154)] about to invoke doInTransaction() ..
13:16:36,837 http-8080-Processor24 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.prepareTransactionInfo(TransactionAspectSupport.java:275)] Getting transaction for [UserTransaction]
13:16:36,838 http-8080-Processor24 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.begin(SpringAwareUserTransaction.java:378)] Began user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@491682
13:16:36,838 http-8080-Processor24 INFO [org.alfresco.repo.webdav.WebDAVMethod$1.execute(WebDAVMethod.java:144)] about to invoke executeImpl() ..
13:16:36,838 http-8080-Processor24 INFO [org.alfresco.repo.webdav.plutext.GetMethod.executeImpl(GetMethod.java:207)] Executing GET ..
:
:
13:16:51,531 http-8080-Processor24 INFO [org.alfresco.repo.webdav.WebDAVMethod$1.execute(WebDAVMethod.java:146)] .executeImpl() returned.
13:16:51,531 http-8080-Processor24 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:305)] Completing transaction for [UserTransaction]
13:16:54,312 Thread-25 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.prepareTransactionInfo(TransactionAspectSupport.java:275)] Getting transaction for [UserTransaction]
13:16:54,313 Thread-25 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.begin(SpringAwareUserTransaction.java:378)] Began user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@28fa5f
13:16:54,315 Thread-25 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:305)] Completing transaction for [UserTransaction]
13:16:54,316 Thread-25 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:457)] Committed user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@28fa5f
13:16:54,883 http-8080-Processor24 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:457)] Committed user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@491682
13:16:54,883 http-8080-Processor24 INFO [org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:156)] .. doInTransaction() returned.
13:16:54,884 http-8080-Processor24 DEBUG [org.alfresco.repo.webdav.plutext.WebDAVServlet.service(WebDAVServlet.java:221)] GET took 18051ms to execute
Are you using JCR-RMI?
# First "transaction" with client
12:37:17,088 http-8080-Processor23 INFO [org.alfresco.repo.webdav.plutext.WebDAVServlet.createMethod(WebDAVServlet.java:235)] createMethod invoked.
12:37:17,089 http-8080-Processor23 INFO [org.alfresco.repo.webdav.plutext.WebDAVServlet.createMethod(WebDAVServlet.java:241)] WebDAV request GET on path /alfresco/plutextwebdav/User%20Homes/jason/TIMING8.docx
12:37:17,092 http-8080-Processor23 INFO [org.alfresco.repo.webdav.plutext.WebDAVServlet.createMethod(WebDAVServlet.java:270)] invoking setDetails.
12:37:17,092 http-8080-Processor23 INFO [org.alfresco.repo.webdav.plutext.WebDAVMethod.setDetails(WebDAVMethod.java:65)] m_davHelper set; org.alfresco.repo.webdav.plutext.WebDAVHelper
12:37:17,093 http-8080-Processor23 INFO [org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:154)] about to invoke doInTransaction() ..
12:37:17,094 http-8080-Processor23 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.prepareTransactionInfo(TransactionAspectSupport.java:275)] Getting transaction for [UserTransaction]
12:37:17,094 http-8080-Processor23 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.begin(SpringAwareUserTransaction.java:378)] Began user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@1ed2fe7 <—— start of first transaction
12:37:17,095 http-8080-Processor23 INFO [org.alfresco.repo.webdav.WebDAVMethod$1.execute(WebDAVMethod.java:144)] about to invoke executeImpl() ..
12:37:17,095 http-8080-Processor23 INFO [org.alfresco.repo.webdav.plutext.GetMethod.executeImpl(GetMethod.java:207)] Executing GET ..
12:37:17,113 http-8080-Processor23 INFO [org.alfresco.repo.webdav.plutext.GetMethod.executeImpl(GetMethod.java:227)] its a docx which needs to be zipped up ..
12:37:17,113 http-8080-Processor23 INFO [org.alfresco.repo.webdav.plutext.Helper.getJcrSession(Helper.java:42)] Getting JCR Repository and Session
12:37:17,114 http-8080-Processor23 INFO [org.alfresco.repo.webdav.plutext.Helper.getJcrSession(Helper.java:55)] JCR Repository and Session .. SUCCESS .. returning Session
:
12:37:37,230 http-8080-Processor23 INFO [org.plutext.server.io.ChunkingSaveToZipFile.save(ChunkingSaveToZipFile.java:156)] …Done!
12:37:37,231 http-8080-Processor23 INFO [org.alfresco.repo.webdav.WebDAVMethod$1.execute(WebDAVMethod.java:146)] .executeImpl() returned.
12:37:37,231 http-8080-Processor23 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:305)] Completing transaction for [UserTransaction] <—– but, it doesn't commit until 12:37:44,532 (ie 7.3 sec later!)
# Second "transaction" with client (comprising two SOAP requests, which both use JCR)
12:37:39,096 http-8080-Processor22 DEBUG [org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:266)] Enter: JavaProvider::invoke (org.alfresco.repo.webservice.axis.SpringBeanRPCProvider@a10a6b)
12:37:39,297 http-8080-Processor22 DEBUG [org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:352)] Exit: JavaProvider::invoke (org.alfresco.repo.webservice.axis.SpringBeanRPCProvider@a10a6b)
12:37:39,735 http-8080-Processor22 DEBUG [org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:107)] WSDoAllReceiver: enter invoke() with msg type: null
12:37:39,742 http-8080-Processor22 DEBUG [org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:137)] Received SOAP request:
12:37:39,762 Thread-25 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.prepareTransactionInfo(TransactionAspectSupport.java:275)] Getting transaction for [UserTransaction]
12:37:39,763 Thread-25 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.begin(SpringAwareUserTransaction.java:378)] Began user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@8303e5
:
12:37:39,810 http-8080-Processor22 INFO [org.alfresco.repo.webservice.PlutextWebService.getJcrSession(PlutextWebService.java:152)] Getting JCR Repository and Session
12:37:39,811 http-8080-Processor22 INFO [org.alfresco.repo.webservice.PlutextWebService.getJcrSession(PlutextWebService.java:165)] JCR Repository and Session .. SUCCESS .. returning Session
:
12:37:40,659 Thread-25 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:457)] Committed user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@8303e5
12:37:41,166 http-8080-Processor25 DEBUG [org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:266)] Enter: JavaProvider::invoke
(org.alfresco.repo.webservice.axis.SpringBeanRPCProvider@a10a6b)
12:37:41,174 http-8080-Processor25 DEBUG [org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:352)] Exit: JavaProvider::invoke (org.alfresco.repo.webservice.axis.SpringBeanRPCProvider@a10a6b)
12:37:41,564 http-8080-Processor25 DEBUG [org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:107)] WSDoAllReceiver: enter invoke() with msg type: null
12:37:41,569 http-8080-Processor25 DEBUG [org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:137)] Received SOAP request:
12:37:41,606 http-8080-Processor25 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.prepareTransactionInfo(TransactionAspectSupport.java:275)] Getting transaction for [UserTransaction]
12:37:41,607 http-8080-Processor25 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.begin(SpringAwareUserTransaction.java:378)] Began user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@950fe4
12:37:41,607 http-8080-Processor25 INFO [org.alfresco.repo.webservice.PlutextWebService.getJcrSession(PlutextWebService.java:152)] Getting JCR Repository and Session
12:37:41,608 http-8080-Processor25 INFO [org.alfresco.repo.webservice.PlutextWebService.getJcrSession(PlutextWebService.java:165)] JCR Repository and Session .. SUCCESS .. returning Session
:
12:37:41,695 http-8080-Processor25 DEBUG [org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:305)] Completing transaction for [UserTransaction]
12:37:41,697 http-8080-Processor25 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:457)] Committed user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@950fe4
12:37:41,697 http-8080-Processor25 DEBUG [org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:352)] Exit: JavaProvider::invoke (org.alfresco.repo.webservice.axis.SpringBeanRPCProvider@a8d1a4)
# Only after the second "transaction" completes, does the first one (1ed2fe7)
12:37:44,532 http-8080-Processor23 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:457)] Committed user transaction: org.alfresco.util.transaction.SpringAwareUserTransaction@1ed2fe7 <——- end of first transaction!
12:37:44,539 http-8080-Processor23 INFO [org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:156)] .. doInTransaction() returned.
12:37:44,540 http-8080-Processor23 DEBUG [org.alfresco.repo.webdav.plutext.WebDAVServlet.service(WebDAVServlet.java:221)] GET took 27452ms to execute
04-14-2008 08:03 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.