jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milindain <milind...@aol.com>
Subject DataStoreException: Record not found while exporting data as xml
Date Fri, 02 Nov 2012 10:04:14 GMT
Hi All,
I am using Jackrabbit-1.6.4 and created a sample program to export the
contents from the repository.
I am getting following exception when I call
session.exportSystemView("firm10", outStream, false, false);
I have tested the same program with almost 4-5 repositories and its working
without any isssue but for one of the repositories, I am getting following
exception. Attaching repository.xml 
repository.xml
<http://jackrabbit.510166.n4.nabble.com/file/n4656921/repository.xml>  

Am I missing anything? If yes then why the same program works for other
repositories?
Is it like my database is corrupted and if yes then how to recover it? I
have back up of repository database and jackrabbit workspace as well. Any
help is appreciated..

[java] DEBUG | core.state.CacheManager | L:167 | resizeAll size=6
[java] DEBUG | core.state.CacheManager | L:167 |
org.apache.jackrabbit.core.state.MLRUItemStateCache@6a0da90c now:131072
used:0 access:0 new:131072
[java] DEBUG | core.state.CacheManager | L:167 |
org.apache.jackrabbit.core.state.MLRUItemStateCache@6c1989b5 now:131072
used:664 access:0 new:131072
[java] DEBUG | core.state.CacheManager | L:167 |
org.apache.jackrabbit.core.state.MLRUItemStateCache@48e29820 now:131072
used:664 access:0 new:131072
[java] DEBUG | core.state.CacheManager | L:167 |
org.apache.jackrabbit.core.state.MLRUItemStateCache@26afa68a now:8126464
used:420066 access:122 new:420066
[java] DEBUG | core.state.CacheManager | L:167 |
org.apache.jackrabbit.core.state.MLRUItemStateCache@13b33a0e now:131072
used:664 access:0 new:131072
[java] DEBUG | core.state.CacheManager | L:167 |
org.apache.jackrabbit.core.state.MLRUItemStateCache@1664023c now:8126464
used:418128 access:127 new:418128
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}GeneratedOn
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}ReportTitle
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}entityName
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}ReportCategory
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}ReportDesign
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}publicAccess
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}accessControlList
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}GeneratedBy
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}entityEditAuthorization
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.jcp.org/jcr/1.0}primaryType
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}entityDeleteAuthorization
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
d29d6f26-5daf-4eb4-88b2-0d401301e651/{http://www.mycompany.com/ppp/1.0}firm
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
ec5b4118-4a34-4304-941e-66cda0687d09/{http://www.jcp.org/jcr/1.0}uuid
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
ec5b4118-4a34-4304-941e-66cda0687d09/{http://www.jcp.org/jcr/1.0}data
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
ec5b4118-4a34-4304-941e-66cda0687d09/{http://www.jcp.org/jcr/1.0}encoding
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
ec5b4118-4a34-4304-941e-66cda0687d09/{http://www.jcp.org/jcr/1.0}mimeType
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
ec5b4118-4a34-4304-941e-66cda0687d09/{http://www.jcp.org/jcr/1.0}lastModified
[java] DEBUG | jackrabbit.core.ItemManager | L:167 | caching item
ec5b4118-4a34-4304-941e-66cda0687d09/{http://www.jcp.org/jcr/1.0}primaryType
[java] org.apache.jackrabbit.core.data.DataStoreException: Record not found:
aa4de350d5ceeeacd341206492e9982809c640af
[java] 	at
org.apache.jackrabbit.core.data.FileDataStore.getRecord(FileDataStore.java:162)
[java] 	at
org.apache.jackrabbit.core.value.BLOBInDataStore.getDataRecord(BLOBInDataStore.java:144)
[java] 	at
org.apache.jackrabbit.core.value.BLOBInDataStore.getStream(BLOBInDataStore.java:104)
[java] 	at
org.apache.jackrabbit.core.value.BinaryValueImpl.<init>(BinaryValueImpl.java:37)
[java] 	at
org.apache.jackrabbit.core.value.InternalValue.toJCRValue(InternalValue.java:380)
[java] 	at
org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:485)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.exportProperty(Exporter.java:363)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.exportProperties(Exporter.java:268)
[java] 	at
org.apache.jackrabbit.commons.xml.SystemViewExporter.exportNode(SystemViewExporter.java:77)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:297)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.exportNodes(Exporter.java:213)
[java] 	at
org.apache.jackrabbit.commons.xml.SystemViewExporter.exportNode(SystemViewExporter.java:78)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:294)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.exportNodes(Exporter.java:213)
[java] 	at
org.apache.jackrabbit.commons.xml.SystemViewExporter.exportNode(SystemViewExporter.java:78)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:294)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.exportNodes(Exporter.java:213)
[java] 	at
org.apache.jackrabbit.commons.xml.SystemViewExporter.exportNode(SystemViewExporter.java:78)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:294)
[java] 	at
org.apache.jackrabbit.commons.xml.Exporter.export(Exporter.java:143)
[java] 	at
org.apache.jackrabbit.commons.AbstractSession.export(AbstractSession.java:467)
[java] 	at
org.apache.jackrabbit.commons.AbstractSession.exportSystemView(AbstractSession.java:267)
[java] 	at
org.apache.jackrabbit.commons.AbstractSession.exportSystemView(AbstractSession.java:321)
[java] 	at com.test.TestJackrabbit.testExportFirm(TestJackrabbit.java:68)
[java] 	at com.test.TestJackrabbit.main(TestJackrabbit.java:40)




-----
Thanks

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/DataStoreException-Record-not-found-while-exporting-data-as-xml-tp4656921.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Mime
View raw message