InvalidXUIDException when trying to retrieve a ClipId
I am trying to use RetrieveContent.java to retreive a document stored via Centera SDK. I provide a ClipID at the Promt for "XUID to retrieve", and get the InvaildXUIDException:
C:\CenteraXAM\Samples>java RetrieveContent Address of XSystem[snia-xam://centera_vim!167.113.250.232?merged-imgidb03_profil e.pea]: Connecting to XSystem(snia-xam://centera_vim!167.113.250.232?merged-imgidb03_pro file.pea) XUID to retrieve: 1N09U2NBIDG4De4M4PD20VT3JQAG4149KSC1DV007LN9VEMVDENAB XAM Error occured: null(0) org.snia.xam.InvalidXUIDException at org.snia.xam.toolkit.XAMXUID. (Unknown Source) at RetrieveContent.retrieveFile(RetrieveContent.java:46) at RetrieveContent.main(RetrieveContent.java:111)
Within a XAM application, ideally you should not do anything that is Centera specific. However, if you require to pull back "traditional" Centera Content Address data, then you can use the CenteraXUID to do this.
The Centera Content Address is a 27 or 53 character string, with the 14th character always being being 'e' e.g.
0RLBIE2MP79JQe11RBFG9NCEP46
A XUID is a binary / byte sequence value which can also be represented as a Base 64 encoded string e.g.
Testing for the length of the data and the presence of the 'e' will let you know if it is a ClipID rather than a XUID if your application does not store any other form of indicator within your database.
Be aware that when you open a Centera clip using XAM, you will get back a "translated" representation of the Clip as an XSet. Also, if you commit this XSet representation (even without making any changes) then this will resuly in this new XSet representation being persisted on the Centera XSystem Centera i.e. a new XSet s created and any underlting content is now protected by the old Clip and the new XSet. Both would have to be deleted before the content would become eligible for Garbage Collection.
I am using the .Net wrapper for RetrieveContent, and I have the ClipId, is there a way I can map this ClipID to XUID? Using XUID the retrieval of image is faster.
AartiSheth
19 Posts
525
0
Posted July 31st, 2009 11:00
I've resolved this by instantiating CenteraXUID instead of XUID.
Now the question is how do I determine programmatically whether to instantiate a CenteraXUID or XAMXUID? What is the difference between the 2?
We are going to have a documents stored via Centera SDK and via XAM, and wil need to retrieve both via the same application.