Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Question

Status
Not open for further replies.

dmarandola

Programmer
Oct 24, 2013
5
CA
Hi All,

I am running the SampleClient from the document

Open Text Enterprise Library Services
Programming Guide for the Metadata Services API
ELWS100200-PGD-EN-1
Rev.: 2010-Nov-05


When I run the SampleClient, things get as far as trying to create a base folder i.e.

private static void createBaseFolder()
throws ELServiceFault_Exception
{
println();
println("Going to create a base subfolder ...");

//--------------------------------------------------------
// We attach a time stamp to the folder's display name.
// This allows us to run this program again and again
// without deletion of the folder hierarchy that was
// created in a previous run.
//--------------------------------------------------------

String baseFolderName =
"Java Tutorial ClientExample " + getDateTimeAsString(new Date());

//--------------------------------------------------------
// Create the Folder instance.
//--------------------------------------------------------
// We use utility method prepareFolder() to create a Folder
// instance and to set the most important attributes.
//--------------------------------------------------------
baseFolder = prepareFolder(
primaryClassification,
ManageDocModelExample.TYPE_FOLDER_GENERIC,
rootFolder.getId(),
baseFolderName);
// </sampleSection

//--------------------------------------------------------
// Set property Comment on the Folder instance.
//--------------------------------------------------------
// We use utility method addProperty() to create a Property
// instance and add it to the property set of the Folder.
//--------------------------------------------------------
addProperty(
baseFolder,
ManageDocModelExample.PROP_COMMENT,
new String[] {"Base folder for ClientExample run."});

String baseFolderId = elService.createFolder(baseFolder);

baseFolder.setId(baseFolderId);



It throws the following exception on the line that is bolded above

Going to create a base subfolder ...
Got ELServiceFault_Exception with message: Creating element failed!
com.opentext.ecm.services.elib.ELServiceFault_Exception: Creating element failed!
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:141)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119) cause message : DocumentManagement.CreateNode() failed on the Livelink Server. No results were returned. Check the Livelink Server thread logs.|

at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
at com.sun.proxy.$Proxy36.createFolder(Unknown Source)
at com.opentext.ecm.elib.client.tutorial.ClientExample.createBaseFolder(ClientExample.java:808)
at com.opentext.ecm.elib.client.tutorial.ClientExample.doActions(ClientExample.java:385)
at com.opentext.ecm.elib.client.tutorial.ClientExample.main(ClientExample.java:187)


Can someone shed some light as to why this is occurring ? thanks.
 
From what I know about that line of code you might be doing nothing wrong but maybe running int some expectational/operational problems
The full plumbing of the ELIB API is like this
RCS(Your code is calling java classes/interfaces) in this product.This will run in a Tomcat Server
ELS(Enterprise stands for the real place where the folder/document/metadat is going to this is Livelink server or Content Server)
Simply put the Elib API is used by SAP programmers(or any programmer) so that they can create objects in livelink from SAP thru RCS
So client(SAP,your code etc)<------>RCS<-------->Livelink(Content Server),sometimes an Archive Server is also involved)
So to truly see any output from that tutorial you should check if you have RCS and a Livelink configured to talk to each other.
The easiest way is to use the Admin Client and see if any "Applications" are defined.Applications are nothing but livelink volumes that you create with the
admin client.If it works then your written code will also work.Currently if your code tries to access/create objects there probably is nothing really
on the other side to do what you are aksing it to do.
ELIB has a lot of moving parts to its architecture so do be prepared to understand it


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
BTW seeing this I have a feeling that there is alivelink server
ause message : DocumentManagement.CreateNode() failed on the Livelink Server
so I could be wrong

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
appair, thank you for your response. You were correct, it was an expectational issue. I needed to have a "selectable" classification kicking around.

Thank you again.
 
After banging my head on the desk, I realize the question I should be asking is, what is required in terms of CM provisioning to get this Sample App to work ? The 'ManageDocModelExample' code is clearly not enough.

thanks
 
I have only been successful in a setting where I could play with RCS and livelink.In my case I had both RCS & Livelink in my laptop.
Are you a programmer who is trying to add/enhance anything to the ELS code because that code is only presently used by some integrations like
SAP.For programming in livelink it has its own webservices that does not need the RCS layer and most people only have the need for that.
I wrote a very simple overview in my blog here about ELS since about 3 years back I did my first ELS project(did not need to write any code,but wanted to see
how to go about it). The architecture of the product is very confusing/demanding.OT and SAP are trying to stream line it.At one point they may do away with RCS layer.



You should open a ticket with OT and try your luck there or a SAP message if you go thru them

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top