What version of Jackrabbit are you using (jackrabbit-core-....jar)?
Looks like it is the same or a similar issue as discussed in this
thread: http://markmail.org/message/wbgj5om5ec5o4v3s The underlying
problem should have been resolved already. If you can reproduce it
with the latest 1.4.5 core, you might have found a bug.
Regards,
Alex
On Thu, Sep 25, 2008 at 4:21 AM, kenclark <[EMAIL PROTECTED]> wrote:
>
>
> Next update: I converted the code to version the jcr:content child node
> rather than the nt:file node.
>
> I still see the same issue -- the version jcr:data is always empty, whereas
> the underlying node jcr:data is intact and usable.
>
> Interestingly, I am seeing the below exception in the log file. Even with
> this exception though, the nt:file is stored (updated). Its hard to tell if
> this exception is related to the version -- that apparent uuid does not
> match up to the main node or any version.
>
> This is a bit frustrating.
>
> Thanks,
> ken
>
> 22:11:40,187 WARN [BundleBinding] Blob has negative size. Potential loss of
> data. id=e2eaaa6d-dccd-4f7f-bb24-7bcb1e164798/{http://www.jcp.o
> rg/jcr/1.0}data idx=0
> 22:11:40,187 ERROR [BundleDbPersistenceManager] failed to write bundle:
> e2eaaa6d-dccd-4f7f-bb24-7bcb1e164798
> java.lang.NullPointerException
> at
> org.apache.jackrabbit.core.value.BLOBInTempFile.delete(BLOBInTempFile.java:119)
> at
> org.apache.jackrabbit.core.value.BLOBInTempFile.discard(BLOBInTempFile.java:129)
> at
> org.apache.jackrabbit.core.persistence.bundle.util.BundleBinding.writeState(BundleBinding.java:586)
> at
> org.apache.jackrabbit.core.persistence.bundle.util.BundleBinding.writeBundle(BundleBinding.java:273)
> at
> org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.storeBundle(BundleDbPersistenceManager.java:1028)
> at
> org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.putBundle(AbstractBundlePersistenceManager.java:70
> 3)
> at
> org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.store(AbstractBundlePersistenceManager.java:643)
> at
> org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.store(BundleDbPersistenceManager.java:524)
> at
> org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:688)
> at
> org.apache.jackrabbit.core.state.XAItemStateManager.commit(XAItemStateManager.java:162)
> at
> org.apache.jackrabbit.core.version.XAVersionManager.commit(XAVersionManager.java:476)
> at
> org.apache.jackrabbit.core.TransactionContext.commit(TransactionContext.java:189)
> at
> org.apache.jackrabbit.core.XASessionImpl.commit(XASessionImpl.java:339)
> at
> org.apache.jackrabbit.jca.TransactionBoundXAResource.commit(TransactionBoundXAResource.java:39)
> at
> org.jboss.resource.connectionmanager.xa.JcaXAResourceWrapper.commit(JcaXAResourceWrapper.java:53)
> at
> com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelCommit(XAResourceRecord.java:487)
> at
> com.arjuna.ats.arjuna.coordinator.BasicAction.doCommit(BasicAction.java:3107)
>
> --
> View this message in context:
> http://www.nabble.com/jcr%3Adata-property-of-Version-copy-empty-tp19641177p19661972.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>
--
Alexander Klimetschek
[EMAIL PROTECTED]