dmarandola
Programmer
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.
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.