Hi..........................!
package com.local;
import com.documentum.com.DfClientX;
import com.documentum.com.IDfClientX;
import com.documentum.fc.client.*;
import com.documentum.fc.common.DfException;
import com.documentum.fc.common.IDfLoginInfo;
public class Connection {
public static void main(String args[]) throws Exception,DfException,DfIdentityException
{
System.out.println(" 1 ");
IDfClientX cx = new DfClientX();
System.out.println(" 2 "+cx);
IDfClient c = cx.getLocalClient();
IDfSessionManager sm = c.newSessionManager();
System.out.println(" 3 "+sm);
String docbase=c.getDocbaseNameFromDocbaseId(2000);
System.out.println(" 4 ");
IDfSession s = sm.getSession(docbase);
System.out.println(" 5 "+docbase);
IDfLoginInfo loginfo=s.getLoginInfo();
loginfo.setUser("docdev");
loginfo.setPassword("dctm2011");
loginfo.setDomain("");
sm.setIdentity("MyLocalRepo",loginfo);
try
{
System.out.println("Hai....! Welcome to Docuemntum world");
System.out.println("The DFC Version is:"+cx.getDFCVersion());
}
finally
{
sm.release(s);
}
}
}
My out put is:
Exception in thread "main" DfIdentityException:: THREAD: main; MSG: [DFC_BOF_WRONG_IDENTITY] LoginInfo and Principal for "MyLocalRepo" docbase are not defined or wrong.; ERRORCODE: 1906; NEXT: null
at com.documentum.fc.client.impl.session.SessionManager.getSessionFromFactory(SessionManager.java:96)
at com.documentum.fc.client.impl.session.SessionManager.newSession(SessionManager.java:64)
at com.documentum.fc.client.impl.session.SessionManager.getSession(SessionManager.java:168)
at com.local.Connection.main(Connection.java:20)
My Environment is:
we have two content servers one is my lap( os is vista) and other one is my company server i.e windows server 2003 system
and client app like webtop and da in another system (i.e Company win server 2003) which are deployed in apache,
in my local system (i.e my own laptop)installed process builder
My problem is:
if my lap is connected (i mean my lap )to domain network i not able to access my local repository through process builder
if i disconnected my lap to domain network and restart the docbroker and my local repository i am able to connected to my local repository
second case:
i am wrote above dfc code in composer i am getting above error or exceptions
we checked every thing i.e server log and docbroker log files and dm_bof_global registry
but what happedn i don't know?
third case:
i copied my local dfc propertiesin to applcation server(Which is another domain system ) i.e webtop and da client applcations
My docbroker and Repository is running successfully but if i am not able to login to the client applicaion it's showing docbroker excetpions
and finally i am not able to fix the problem i thought that is there any N/W issue or some My applicaion but tell me .
plz help me out ASAP..................................................!