hi,
i can create the custom type using the below Dfcprogram but i got the Exception
public class CreateCustomType {
public static void main(String[] args) throws DfException {
// TODO Auto-generated method stub
IDfClientX clientx=new DfClientX();
IDfClient client=new DfClient();
IDfSessionManager smgr=client.newSessionManager();
IDfLoginInfo info=clientx.getLoginInfo();
info.setUser("someuserName");
info.setPassword("somePassword");
smgr.setIdentity("flower",info);
IDfSession session=smgr.getSession("flower");
IDfType typeobj=(IDfType)session.getType("dm_type");
System.out.println("type Object:"+typeobj);
typeobj.setString("super_name","dm_document");
typeobj.setString("name","Mytype_test"); //upto this line executing fine
typeobj.save();
}
}
//Exception Details
Exception in thread "main" UnknownServerResponseException:: THREAD: main; MSG: [DFC_SESSION_UNKNOWN_SERVER_RESPONSE] A server request failed but the server did not provide an error message. Method=SAVE, ObjectId=0301e24080000001, Arguments=DynamicallyTypedData@1578aab{readOnly=false, autoFill=true, fetchTimestamp=0, values={name=Mytype_test, super_name=dm_document, OBJECT_TYPE=dm_type, IS_NEW_OBJECT=F, i_vstamp=0, TYPE_VERSION=0, CACHE_VSTAMP=3636}}; ERRORCODE: ff; NEXT: null
Any one Please Help To me
Thanks&Regards,
venkat.