I'm new to MediaBin, and I'm trying to simply connect to MediaBin and pull out various information (using Java) as a proof of concept.
I've connected ok and can successfully pull out the user and server I've connected to using:
mMediaBinServer.getMediaBinServerName();
mMediaBinServer.validateCurrentUser();
But when I try to access a container or asset, I get an exception.
When I try to access a particular asset (I got the ID from viewing the asset preview HTML souce - is this wrong?) using this code:
String id = "9599D4D2-7E90-486B-81B0-2998C0D1BD7F";
byte[] buffer = null;
buffer = mMediaBinServer.getPreview(id, -1, -1, MBPreviewType.Preview_128x128);
I get this error:
[7/29/05 8:13:48:511 EDT] 77ae77ae SystemOut O MediaBin.mediaBinTest(): RemoteException: Server was unable to process request. --> MBException: The requested container is unavailable. (0x80040500): Server was unable to process request. --> MBException: The requested container is unavailable. (0x80040500)
AND
When I try to access the root using this code:
MBContainer container = mMediaBinServer.getRootContainer();
I get this error:
[7/29/05 8:53:59:888 EDT] 26172617 SystemOut O MediaBin.mediaBinTest(): RemoteException: org.xml.sax.SAXException: Invalid element in com.mediabin.
www.MBContainer - mChildContainerCount: ; nested exception is:
org.xml.sax.SAXException: Invalid element in com.mediabin.
www.MBContainer - mChildContainerCount
I'm obviously missing something. I am able to pull out a list of all the retrieval tasks, so I'm pretty sure I'm connected fine. Any ideas?
Thanks in advance,
Faith
Edited by foiplus on 07/29/05 05:54 AM (server time).